-- Table structure for table `erp_purchasing_debit_note_addition`
--

CREATE TABLE `erp_purchasing_debit_note_addition` (
  `id` int(11) NOT NULL,
  `purchasing_debit_note_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchasing_debit_note_deduction`
--

CREATE TABLE `erp_purchasing_debit_note_deduction` (
  `id` int(11) NOT NULL,
  `purchasing_debit_note_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchasing_debit_note_item`
--

CREATE TABLE `erp_purchasing_debit_note_item` (
  `id` int(11) NOT NULL,
  `purchasing_debitnote_id` varchar(255) NOT NULL,
  `product_id` int(11) NOT NULL,
  `purchased_quantity` decimal(15,3) NOT NULL,
  `unit` int(11) NOT NULL,
  `description` varchar(255) NOT NULL,
  `rate` decimal(15,6) NOT NULL,
  `returned_quantity` decimal(15,3) NOT NULL,
  `net_amount` decimal(15,4) NOT NULL,
  `purchasing_materialreceipt_id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `tax_vat_percentage` decimal(15,2) NOT NULL,
  `tax_vat_amount` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `returned_unit_id` int(11) NOT NULL,
  `unit_factor` decimal(10,6) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_debit_note_item`
--

INSERT INTO `erp_purchasing_debit_note_item` (`id`, `purchasing_debitnote_id`, `product_id`, `purchased_quantity`, `unit`, `description`, `rate`, `returned_quantity`, `net_amount`, `purchasing_materialreceipt_id`, `warehouse_id`, `tax_vat_percentage`, `tax_vat_amount`, `created_by`, `created_datetime`, `updated_by`, `updated_datetime`, `returned_unit_id`, `unit_factor`) VALUES
(1, '80001', 1, 4.000, 1, 'A1001 Item', 150.000000, 2.000, 300.0000, 65008, 0, 5.00, 15.0000, 2, '2025-12-19 17:00:09', 0, '0000-00-00 00:00:00', 1, 1.000000),
(2, '80001', 4, 1000.000, 4, 'B1001 RM', 10.000000, 10.000, 100.0000, 65008, 0, 5.00, 5.0000, 2, '2025-12-19 17:00:09', 0, '0000-00-00 00:00:00', 4, 1.000000),
(3, '80002', 9, 10.000, 9, 'Stock Item', 10.000000, 2.000, 20.0000, 65009, 0, 5.00, 1.0000, 1, '2025-12-23 15:18:56', 0, '0000-00-00 00:00:00', 9, 1.000000),
(4, '80002', 10, 10.000, 10, 'Raw Material', 12.000000, 2.000, 24.0000, 65009, 0, 5.00, 1.2000, 1, '2025-12-23 15:18:56', 0, '0000-00-00 00:00:00', 10, 1.000000);

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

--
-- Table structure for table `erp_purchasing_enquiry`
--

CREATE TABLE `erp_purchasing_enquiry` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `vendor_id` varchar(500) NOT NULL,
  `send_email` enum('Y','N') NOT NULL,
  `requisition_id` varchar(255) NOT NULL COMMENT 'foreign key reference to requisition',
  `enquiry_date` date NOT NULL,
  `required_date` datetime NOT NULL,
  `title` varchar(255) NOT NULL,
  `note` varchar(255) NOT NULL,
  `start_text` text NOT NULL,
  `reference` varchar(255) NOT NULL,
  `project_id` int(11) NOT NULL,
  `requested_by` int(11) NOT NULL,
  `remarks` text NOT NULL,
  `convert_status` enum('Y','N') NOT NULL,
  `enquiry_notification` varchar(500) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `movement_analysis_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_enquiry`
--

INSERT INTO `erp_purchasing_enquiry` (`id`, `file_id`, `crm_user_id`, `vendor_id`, `send_email`, `requisition_id`, `enquiry_date`, `required_date`, `title`, `note`, `start_text`, `reference`, `project_id`, `requested_by`, `remarks`, `convert_status`, `enquiry_notification`, `isActive`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `movement_analysis_id`) VALUES
(85001, 1003, 2, '2001', 'Y', '75001', '2025-12-19', '2025-12-25 12:00:00', '', '', '', 'R1', 25001, 16, '', 'Y', '', 'Y', 2, 2, '2025-12-18 18:22:28', '2025-12-19 10:31:41', 0),
(85002, 1011, 2, '2001,2002', 'Y', '75002', '2025-12-19', '2025-12-26 12:00:00', '', '', '', 'Test 1', 25002, 16, 'Remarks', 'Y', '', 'Y', 2, 2, '2025-12-19 09:04:51', '2025-12-19 10:30:23', 0),
(85003, 1018, 2, '2001', 'Y', '75004', '2025-12-19', '2025-12-26 12:00:00', '', '', '', 'R1', 25001, 16, '', 'Y', '', 'Y', 2, 2, '2025-12-19 12:20:59', '2025-12-19 12:20:59', 0),
(85004, 1020, 1, '2003', 'Y', '', '2025-12-19', '2025-12-26 12:00:00', '', '', '', '', 0, 0, '', 'Y', '', 'Y', 1, 1, '2025-12-19 14:21:51', '2025-12-19 02:21:51', 0),
(85005, 1024, 2, '2001,2002', 'Y', '75005', '2025-12-19', '2025-12-26 12:00:00', '', '', '', 'R1`', 25001, 2, '', 'Y', '', 'Y', 2, 2, '2025-12-19 14:52:54', '2025-12-19 02:52:54', 0),
(85006, 1025, 2, '2001,2002', 'Y', '75005', '2025-12-19', '2025-12-26 12:00:00', '', '', '', 'R1`', 25001, 2, '', 'Y', '', 'Y', 2, 2, '2025-12-19 14:55:02', '2025-12-19 02:55:21', 0),
(85007, 1028, 2, '2001', 'Y', '75006', '2025-12-19', '2025-12-26 12:00:00', '', '', '', 'S1', 25001, 2, '', 'Y', '', 'Y', 2, 2, '2025-12-19 15:02:20', '2025-12-19 03:02:20', 0),
(85008, 1041, 2, '2001,2002', 'Y', '75007', '2025-12-23', '2025-12-29 12:00:00', '', '', '', 'Test Ref1', 25001, 16, 'Test Ref1 Remarks', 'Y', '', 'Y', 2, 2, '2025-12-22 08:40:17', '2025-12-23 10:28:27', 0);

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

--
-- Table structure for table `erp_purchasing_enquiry_non_stock_item`
--

CREATE TABLE `erp_purchasing_enquiry_non_stock_item` (
  `id` int(11) NOT NULL,
  `purchasing_enquiry_id` int(11) NOT NULL COMMENT 'foreign key reference to enquiry table',
  `non_stock_item_name` varchar(255) NOT NULL,
  `non_stock_item_description` varchar(255) NOT NULL,
  `non_stock_item_unit` varchar(255) NOT NULL,
  `non_stock_item_quantity` decimal(15,3) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchasing_enquiry_stock_item`
--

CREATE TABLE `erp_purchasing_enquiry_stock_item` (
  `id` int(11) NOT NULL,
  `purchasing_enquiry_id` int(11) NOT NULL COMMENT 'foreign key reference to enquiry table',
  `stock_item_id` int(11) NOT NULL COMMENT '(item:the product to be purchased,foreign key reference to inventory item table)',
  `stock_item_name` varchar(255) NOT NULL,
  `stock_item_description` varchar(255) NOT NULL,
  `stock_item_unit` int(11) NOT NULL,
  `stock_item_quantity` decimal(15,3) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_enquiry_stock_item`
--

INSERT INTO `erp_purchasing_enquiry_stock_item` (`id`, `purchasing_enquiry_id`, `stock_item_id`, `stock_item_name`, `stock_item_description`, `stock_item_unit`, `stock_item_quantity`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(28, 85002, 4, 'B1001', 'B1001 RM', 4, 100.000, 2, 2, '2025-12-19 10:30:23', '2025-12-19 10:30:23'),
(29, 85002, 5, 'B1002', 'B1002 RM', 5, 100.000, 2, 2, '2025-12-19 10:30:23', '2025-12-19 10:30:23'),
(30, 85002, 6, 'B1003', 'B1003 RM', 6, 100.000, 2, 2, '2025-12-19 10:30:23', '2025-12-19 10:30:23'),
(31, 85001, 1, 'A1001', 'A1001 Item', 1, 100.000, 2, 2, '2025-12-19 10:31:41', '2025-12-19 10:31:41'),
(32, 85001, 2, 'A1002', 'A1002 Item', 2, 100.000, 2, 2, '2025-12-19 10:31:41', '2025-12-19 10:31:41'),
(33, 85001, 3, 'A1003', 'A1003 Item', 3, 100.000, 2, 2, '2025-12-19 10:31:41', '2025-12-19 10:31:41'),
(34, 85001, 4, 'B1001', 'B1001 RM', 4, 500.000, 2, 2, '2025-12-19 10:31:41', '2025-12-19 10:31:41'),
(35, 85001, 5, 'B1002', 'B1002 RM', 5, 500.000, 2, 2, '2025-12-19 10:31:41', '2025-12-19 10:31:41'),
(36, 85001, 6, 'B1003', 'B1003 RM', 6, 500.000, 2, 2, '2025-12-19 10:31:41', '2025-12-19 10:31:41'),
(37, 85003, 4, 'B1001', 'B1001 RM', 4, 100.000, 2, 2, '2025-12-19 12:20:59', '2025-12-19 12:20:59'),
(38, 85003, 5, 'B1002', 'B1002 RM', 5, 100.000, 2, 2, '2025-12-19 12:20:59', '2025-12-19 12:20:59'),
(39, 85003, 6, 'B1003', 'B1003 RM', 6, 100.000, 2, 2, '2025-12-19 12:20:59', '2025-12-19 12:20:59'),
(40, 85004, 1, 'A1001', 'A1001 Item', 1, 4.000, 1, 1, '2025-12-19 02:21:51', '2025-12-19 02:21:51'),
(41, 85004, 4, 'B1001', 'B1001 RM', 4, 1000.000, 1, 1, '2025-12-19 02:21:51', '2025-12-19 02:21:51'),
(42, 85005, 9, 'D1001', 'Stock Item', 9, 10.000, 2, 2, '2025-12-19 02:52:54', '2025-12-19 02:52:54'),
(43, 85005, 10, 'D1002', 'Raw Material', 10, 10.000, 2, 2, '2025-12-19 02:52:54', '2025-12-19 02:52:54'),
(46, 85006, 9, 'D1001', 'Stock Item', 9, 10.000, 2, 2, '2025-12-19 02:55:21', '2025-12-19 02:55:21'),
(47, 85006, 10, 'D1002', 'Raw Material', 10, 10.000, 2, 2, '2025-12-19 02:55:21', '2025-12-19 02:55:21'),
(48, 85007, 11, 'D1003', 'Service Item', 11, 1.000, 2, 2, '2025-12-19 03:02:20', '2025-12-19 03:02:20'),
(52, 85008, 1, 'A1001', 'A1001 Item', 1, 3333.000, 2, 2, '2025-12-23 10:28:27', '2025-12-23 10:28:27'),
(53, 85008, 5, 'B1002', 'B1002 RM', 5, 2222.000, 2, 2, '2025-12-23 10:28:27', '2025-12-23 10:28:27'),
(54, 85008, 4, 'B1001', 'B1001 RM', 4, 11111.000, 2, 2, '2025-12-23 10:28:27', '2025-12-23 10:28:27');

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

--
-- Table structure for table `erp_purchasing_invoice_addition`
--

CREATE TABLE `erp_purchasing_invoice_addition` (
  `id` int(11) NOT NULL,
  `purchasing_invoice_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `particular_vat_percent` decimal(15,3) NOT NULL,
  `particular_vat` decimal(15,3) NOT NULL,
  `tax_vat_amount` decimal(10,2) NOT NULL,
  `calculated_value` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_invoice_addition`
--

INSERT INTO `erp_purchasing_invoice_addition` (`id`, `purchasing_invoice_id`, `particular`, `particular_value`, `particular_vat_percent`, `particular_vat`, `tax_vat_amount`, `calculated_value`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 70001, '', '', 0.000, 0.000, 0.00, 0.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, 70002, '13', '50', 5.000, 2.500, 0.00, 50.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(3, 70003, '13', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(4, 70004, '13', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(5, 70005, '13', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(6, 70006, '13', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, 70007, '13', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(8, 70008, '13', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(9, 70009, '13', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(10, 70010, '13', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(11, 70011, '13', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(12, 70012, '13', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(13, 70013, '13', '200', 5.000, 10.000, 0.00, 200.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(14, 70014, '1', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(15, 70015, '13', '110', 5.000, 5.500, 0.00, 110.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(16, 70016, '2', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(17, 70016, '1', '100', 5.000, 5.000, 0.00, 100.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(18, 70017, '', '', 0.000, 0.000, 0.00, 0.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(19, 70018, '', '', 0.000, 0.000, 0.00, 0.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_purchasing_invoice_deduction`
--

CREATE TABLE `erp_purchasing_invoice_deduction` (
  `id` int(11) NOT NULL,
  `purchasing_invoice_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `particular_vat_percent` decimal(15,3) NOT NULL,
  `particular_vat` decimal(15,3) NOT NULL,
  `tax_vat_amount` decimal(10,2) NOT NULL,
  `calculated_value` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_invoice_deduction`
--

INSERT INTO `erp_purchasing_invoice_deduction` (`id`, `purchasing_invoice_id`, `particular`, `particular_value`, `particular_vat_percent`, `particular_vat`, `tax_vat_amount`, `calculated_value`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 70001, '', '', 0.000, 0.000, 0.00, 0.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, 70002, '4', '10', 5.000, 0.500, 0.00, 10.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(3, 70003, '3', '50', 5.000, 2.500, 0.00, 50.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(4, 70004, '3', '50', 5.000, 2.500, 0.00, 50.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(5, 70005, '3', '50', 5.000, 2.500, 0.00, 50.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(6, 70006, '3', '50', 5.000, 2.500, 0.00, 50.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, 70008, '3', '50', 5.000, 2.500, 0.00, 50.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(8, 70009, '3', '50', 5.000, 2.500, 0.00, 50.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(9, 70010, '3', '50', 5.000, 2.500, 0.00, 50.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(10, 70011, '3', '50', 5.000, 2.500, 0.00, 50.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(11, 70012, '3', '50', 5.000, 2.500, 0.00, 50.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(12, 70013, '3', '10', 5.000, 0.500, 0.00, 10.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(13, 70014, '3', '50', 5.000, 2.500, 0.00, 50.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(14, 70015, '3', '10', 5.000, 0.500, 0.00, 10.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(15, 70016, '3', '20', 5.000, 1.000, 0.00, 20.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(16, 70017, '', '', 0.000, 0.000, 0.00, 0.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(17, 70018, '', '', 0.000, 0.000, 0.00, 0.0000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_purchasing_invoice_landed_cost`
--

CREATE TABLE `erp_purchasing_invoice_landed_cost` (
  `id` int(11) NOT NULL,
  `purchasing_invoice_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `exchange_rate` decimal(15,6) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` decimal(15,2) NOT NULL,
  `landed_cost_type` int(11) NOT NULL COMMENT '1-Addition,2-Deduction',
  `notes` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchasing_material_receipt`
--

CREATE TABLE `erp_purchasing_material_receipt` (
  `id` int(11) NOT NULL COMMENT '(MRV number)',
  `file_id` int(11) NOT NULL COMMENT 'foreign key to master file',
  `po_id` int(11) NOT NULL COMMENT 'purchaseorder no(foreign key reference to order table)',
  `ticket_id` int(11) NOT NULL,
  `project_classification_id` int(11) NOT NULL,
  `contract_id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL COMMENT 'foreign key reference to company table',
  `batch_no` varchar(255) NOT NULL COMMENT 'batch no',
  `dly_no` varchar(255) NOT NULL COMMENT 'delivery number',
  `dly_date` date NOT NULL,
  `shipped_by` varchar(255) NOT NULL,
  `city` varchar(225) NOT NULL,
  `delivery_address` text NOT NULL,
  `delivery_conditions` text NOT NULL,
  `awb_no` varchar(255) NOT NULL,
  `bill_no` varchar(225) NOT NULL,
  `tracking_no` varchar(255) NOT NULL,
  `others` varchar(255) NOT NULL,
  `bill_type` int(11) NOT NULL,
  `storekeeper_notes` varchar(255) NOT NULL,
  `qc_checked_employee` int(11) NOT NULL,
  `qc_check_notes` text NOT NULL,
  `qc_check_date` varchar(255) NOT NULL,
  `lot_no` int(11) NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `mrv_receipt_date` date NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `invoiced` enum('Y','N') NOT NULL DEFAULT 'N',
  `qcchecked` enum('Y','N') NOT NULL DEFAULT 'N',
  `stock_updated` enum('Y','N') NOT NULL DEFAULT 'N',
  `qc_checked_employee_name` varchar(255) NOT NULL,
  `is_convertable` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isSerialupdated` enum('Y','N') NOT NULL DEFAULT 'Y',
  `mr_notification` varchar(500) NOT NULL,
  `qc_notification` varchar(500) NOT NULL,
  `posted` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_material_receipt`
--

INSERT INTO `erp_purchasing_material_receipt` (`id`, `file_id`, `po_id`, `ticket_id`, `project_classification_id`, `contract_id`, `vendor_id`, `batch_no`, `dly_no`, `dly_date`, `shipped_by`, `city`, `delivery_address`, `delivery_conditions`, `awb_no`, `bill_no`, `tracking_no`, `others`, `bill_type`, `storekeeper_notes`, `qc_checked_employee`, `qc_check_notes`, `qc_check_date`, `lot_no`, `notes`, `terms_and_conditions`, `remarks`, `mrv_receipt_date`, `crm_user_id`, `invoiced`, `qcchecked`, `stock_updated`, `qc_checked_employee_name`, `is_convertable`, `isSerialupdated`, `mr_notification`, `qc_notification`, `posted`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(65001, 1006, 60001, 0, 0, 0, 2001, '65001', 'D1', '2025-12-18', '', '', '', '', '', '', '65001', '', 1, '', 0, '', '2025-12-18', 0, '', '', '', '2025-12-18', 2, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 2, 2, '2025-12-18 18:33:55', '2025-12-18 18:34:06'),
(65002, 1007, 60002, 0, 0, 0, 2001, '65002', '', '2025-12-19', '', '', 'Suite 127899\r\nGolden Enclave', '', '', '', '65002', '', 1, '', 0, '', '2025-12-19', 0, '', '', '', '2025-12-19', 2, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'Y', 2, 2, '2025-12-19 09:05:43', '2025-12-19 09:05:51'),
(65005, 1015, 60005, 0, 0, 0, 2001, '65005', '', '2025-12-19', '', '', 'Suite 127899\r\nGolden Enclave', '', '', '', '65005', '', 1, '', 0, '', '2025-12-19', 0, '', '', '', '2025-12-19', 2, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 2, 2, '2025-12-19 11:19:37', '2025-12-19 11:20:21'),
(65006, 1014, 60004, 0, 0, 0, 2001, '65006', 'D1', '2025-12-19', '', '', 'Address1\r\nAddress 2\r\nSharjah, UAE', '', '', '', '65006', '', 1, '', 0, '', '2025-12-19', 0, '', 'Purchase Terms and Conditions come here only\r\nSecond LIne\r\n', '', '2025-12-19', 2, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 2, 2, '2025-12-19 11:44:19', '2025-12-19 11:44:41'),
(65007, 1019, 60006, 0, 0, 0, 2001, '65007', 'D1', '2025-12-19', '', '', 'Suite 127899\r\nGolden Enclave', '', '', '', '65007', '', 1, '', 0, '', '2025-12-22', 0, '', '', '', '2025-12-19', 2, 'N', 'Y', 'Y', '', 'Y', 'Y', '', '', 'N', 2, 2, '2025-12-19 12:21:59', '2025-12-22 11:07:59'),
(65008, 1021, 60007, 0, 0, 0, 2003, '65008', '', '2025-12-19', '', '', '', '', '', '', '65008', '', 1, '', 0, '', '2025-12-19', 0, '', '', '', '2025-12-19', 2, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 2, 2, '2025-12-19 14:27:25', '2025-12-19 14:27:43'),
(65009, 1026, 60008, 0, 0, 0, 2001, '65009', 'D1', '2025-12-19', '', '', 'Address1\r\nAddress 2', '', '', '', '65009', '', 1, '', 0, '', '2025-12-19', 0, '', 'Purchase Terms and Conditions come here only\r\n', '', '2025-12-19', 2, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 2, 2, '2025-12-19 14:58:06', '2025-12-19 14:58:27'),
(65010, 1029, 60009, 0, 0, 0, 2001, '65010', 'D1', '2025-12-19', '', '', 'A1\r\nA2', '', '', '', 'R1', '', 1, '', 0, '', '2025-12-19', 0, '', '', '', '2025-12-19', 2, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 2, 2, '2025-12-19 15:03:16', '2025-12-19 15:16:09'),
(65011, 1031, 60011, 0, 0, 0, 2001, '65011', '', '2025-12-19', '', '', 'Suite 127899\r\nGolden Enclave', '', '', '', '65011', '', 1, '', 0, '', '', 0, '', '', '', '2025-12-19', 2, 'N', 'N', 'N', '', 'Y', 'Y', '', '', 'N', 2, 2, '2025-12-19 15:23:33', '2025-12-19 15:23:33'),
(65012, 1042, 60012, 0, 0, 0, 2001, '65012', '145', '2025-12-22', '', '', 'PO Box: 5987\r\nSuite 127899\r\nGolden Enclave\r\nSharjah, United Arab Emirates\r\n04 569875', '', '', '', 'R142', '', 1, 'Notes 142', 0, 'QC notes1', '2025-12-22', 0, '', '', '', '2025-12-22', 2, 'N', 'Y', 'Y', '', 'N', 'Y', '', '', 'N', 2, 2, '2025-12-22 10:30:09', '2025-12-22 10:56:39'),
(65013, 1030, 60010, 0, 0, 0, 2002, '65013', '', '2025-12-23', '', '', 'Room 567\r\nDeira', '', '', '', '65013', '', 1, '', 0, '', '', 0, '', 'Purchase Terms and Conditions come here only\r\n', '', '2025-12-23', 2, 'N', 'N', 'N', '', 'Y', 'Y', '', '', 'N', 2, 2, '2025-12-23 10:22:42', '2025-12-23 10:22:42');

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

--
-- Table structure for table `erp_purchasing_material_receipt_item`
--

CREATE TABLE `erp_purchasing_material_receipt_item` (
  `id` int(11) NOT NULL,
  `purchasing_materialreceipt_id` int(11) NOT NULL COMMENT 'foreign key to material receipt table',
  `product_id` int(11) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `max_quantity` decimal(15,3) NOT NULL,
  `remaining_quantity` decimal(15,3) NOT NULL,
  `unit` varchar(255) NOT NULL,
  `rate` decimal(15,6) NOT NULL,
  `received_quantity` decimal(15,3) NOT NULL,
  `damaged_quantity` decimal(15,3) NOT NULL,
  `qc_checked_quantity` decimal(15,3) NOT NULL,
  `hsir_code` varchar(255) NOT NULL,
  `order_item_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `unit_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_material_receipt_item`
--

INSERT INTO `erp_purchasing_material_receipt_item` (`id`, `purchasing_materialreceipt_id`, `product_id`, `product_name`, `description`, `quantity`, `max_quantity`, `remaining_quantity`, `unit`, `rate`, `received_quantity`, `damaged_quantity`, `qc_checked_quantity`, `hsir_code`, `order_item_id`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `unit_id`) VALUES
(1, 65001, 1, 'A1001', 'A1001 Item', 100.000, 100.000, 100.000, 'pcs', 15.000000, 100.000, 0.000, 100.000, '', 1, 2, 2, '2025-12-18 06:33:55', '2025-12-18 06:33:55', 1),
(2, 65001, 2, 'A1002', 'A1002 Item', 100.000, 100.000, 100.000, 'pcs', 25.000000, 100.000, 0.000, 100.000, '', 2, 2, 2, '2025-12-18 06:33:55', '2025-12-18 06:33:55', 2),
(3, 65001, 3, 'A1003', 'A1003 Item', 100.000, 100.000, 100.000, 'pcs', 35.000000, 100.000, 0.000, 100.000, '', 3, 2, 2, '2025-12-18 06:33:55', '2025-12-18 06:33:55', 3),
(4, 65001, 4, 'B1001', 'B1001 RM', 500.000, 500.000, 500.000, 'pcs', 10.000000, 500.000, 0.000, 500.000, '', 4, 2, 2, '2025-12-18 06:33:55', '2025-12-18 06:33:55', 4),
(5, 65001, 5, 'B1002', 'B1002 RM', 500.000, 500.000, 500.000, 'pcs', 12.000000, 500.000, 0.000, 500.000, '', 5, 2, 2, '2025-12-18 06:33:55', '2025-12-18 06:33:55', 5),
(6, 65001, 6, 'B1003', 'B1003 RM', 500.000, 500.000, 500.000, 'pcs', 13.000000, 500.000, 0.000, 500.000, '', 6, 2, 2, '2025-12-18 06:33:55', '2025-12-18 06:33:55', 6),
(7, 65002, 1, 'A1001', 'A1001 Item', 1.000, 1.000, 1.000, 'pcs', 15.000000, 1.000, 0.000, 1.000, '', 9, 2, 2, '2025-12-19 09:05:43', '2025-12-19 09:05:43', 1),
(8, 65002, 2, 'A1002', 'A1002 Item', 1.000, 1.000, 1.000, 'pcs', 25.000000, 1.000, 0.000, 1.000, '', 10, 2, 2, '2025-12-19 09:05:43', '2025-12-19 09:05:43', 2),
(22, 65007, 6, 'B1003', 'B1003 RM', 100.000, 100.000, 100.000, 'pcs', 35.000000, 100.000, 0.000, 100.000, '', 33, 2, 2, '2025-12-19 12:21:59', '2025-12-19 12:21:59', 6),
(21, 65007, 5, 'B1002', 'B1002 RM', 100.000, 100.000, 100.000, 'pcs', 30.000000, 100.000, 0.000, 100.000, '', 32, 2, 2, '2025-12-19 12:21:59', '2025-12-19 12:21:59', 5),
(20, 65007, 4, 'B1001', 'B1001 RM', 100.000, 100.000, 100.000, 'pcs', 25.000000, 100.000, 0.000, 100.000, '', 31, 2, 2, '2025-12-19 12:21:59', '2025-12-19 12:21:59', 4),
(19, 65006, 6, 'B1003', 'B1003 RM', 100.000, 100.000, 100.000, 'pcs', 13.500000, 100.000, 0.000, 100.000, '', 30, 2, 2, '2025-12-19 11:44:19', '2025-12-19 11:44:19', 6),
(13, 65005, 1, 'A1001', 'A1001 Item', 1.000, 1.000, 1.000, 'pcs', 1500.000000, 1.000, 0.000, 1.000, '', 27, 2, 2, '2025-12-19 11:19:37', '2025-12-19 11:19:37', 1),
(23, 65008, 1, 'A1001', 'A1001 Item', 4.000, 4.000, 4.000, 'pcs', 150.000000, 4.000, 0.000, 4.000, '', 34, 2, 2, '2025-12-19 02:27:25', '2025-12-19 02:27:25', 1),
(18, 65006, 5, 'B1002', 'B1002 RM', 100.000, 100.000, 100.000, 'pcs', 17.000000, 100.000, 0.000, 100.000, '', 29, 2, 2, '2025-12-19 11:44:19', '2025-12-19 11:44:19', 5),
(17, 65006, 4, 'B1001', 'B1001 RM', 100.000, 100.000, 100.000, 'pcs', 1111.000000, 100.000, 0.000, 100.000, '', 28, 2, 2, '2025-12-19 11:44:19', '2025-12-19 11:44:19', 4),
(24, 65008, 4, 'B1001', 'B1001 RM', 1000.000, 1000.000, 1000.000, 'pcs', 10.000000, 1000.000, 0.000, 1000.000, '', 35, 2, 2, '2025-12-19 02:27:25', '2025-12-19 02:27:25', 4),
(25, 65009, 9, 'D1001', 'Stock Item', 10.000, 10.000, 10.000, 'pcs', 10.000000, 10.000, 0.000, 10.000, '', 36, 2, 2, '2025-12-19 02:58:06', '2025-12-19 02:58:06', 9),
(26, 65009, 10, 'D1002', 'Raw Material', 10.000, 10.000, 10.000, 'pcs', 12.000000, 10.000, 0.000, 10.000, '', 37, 2, 2, '2025-12-19 02:58:06', '2025-12-19 02:58:06', 10),
(27, 65010, 11, 'D1003', 'Service Item', 1.000, 1.000, 1.000, 'LS', 800.000000, 1.000, 0.000, 1.000, '', 38, 2, 2, '2025-12-19 03:03:16', '2025-12-19 03:03:16', 11),
(28, 65011, 11, 'D1003', 'Service Item', 1.000, 1.000, 1.000, 'LS', 800.000000, 1.000, 0.000, 0.000, '', 40, 2, 2, '2025-12-19 03:23:33', '2025-12-19 03:23:33', 11),
(29, 65012, 1, 'A1001', 'A1001 Item', 3.000, 3.000, 3.000, 'pcs', 10.000000, 3.000, 0.000, 3.000, '', 41, 2, 2, '2025-12-22 10:30:09', '2025-12-22 10:30:09', 1),
(30, 65012, 5, 'B1002', 'B1002 RM', 2.000, 2.000, 2.000, 'pcs', 30.000000, 2.000, 0.000, 2.000, '', 42, 2, 2, '2025-12-22 10:30:09', '2025-12-22 10:30:09', 5),
(31, 65012, 4, 'B1001', 'B1001 RM', 1.000, 1.000, 1.000, 'pcs', 40.000000, 1.000, 0.000, 1.000, '', 43, 2, 2, '2025-12-22 10:30:09', '2025-12-22 10:30:09', 4),
(32, 65013, 11, 'D1003', 'Service Item', 100.000, 100.000, 100.000, 'LS', 750.000000, 100.000, 0.000, 0.000, '', 44, 2, 2, '2025-12-23 10:22:42', '2025-12-23 10:22:42', 11);

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

--
-- Table structure for table `erp_purchasing_order`
--

CREATE TABLE `erp_purchasing_order` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `ticket_id` int(11) NOT NULL,
  `project_classification_id` int(11) NOT NULL,
  `contract_id` int(11) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `supplier_type` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL COMMENT 'foreign key relation to company table',
  `vendor_contact_id` int(11) NOT NULL,
  `enquiry_id` int(11) NOT NULL,
  `req_id` int(11) NOT NULL,
  `order_date` date NOT NULL COMMENT 'current date',
  `required_date` date NOT NULL,
  `expected_delivery_date` date NOT NULL,
  `currency` int(11) NOT NULL,
  `exchange_rate` float NOT NULL,
  `reference` varchar(255) NOT NULL,
  `notes` text NOT NULL,
  `terms_id` int(11) NOT NULL COMMENT 'primary key to masterms ',
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `payment_terms` int(11) NOT NULL,
  `stock_grand_total` decimal(15,4) NOT NULL,
  `nonstock_grandtotal` float NOT NULL,
  `total_tax_amount` decimal(15,4) NOT NULL,
  `shipping_address` text NOT NULL,
  `billing_address` text NOT NULL,
  `pricing_conditions` varchar(255) NOT NULL,
  `shipping_by` varchar(255) NOT NULL,
  `start_text` text NOT NULL,
  `template_text` text NOT NULL,
  `template_file_name` varchar(255) NOT NULL,
  `convert_status` enum('Y','N') NOT NULL,
  `completed` enum('Y','N','C','P') NOT NULL DEFAULT 'N' COMMENT 'Y- completed,N-not completed,C-canceled,P-paritaly',
  `invoice_type` int(11) NOT NULL,
  `service_invoice` enum('Y','N') NOT NULL DEFAULT 'N',
  `order_notification` varchar(500) NOT NULL,
  `order_approve_notification` varchar(500) NOT NULL,
  `approved_level` int(11) NOT NULL DEFAULT 0,
  `level1_approved_by` int(11) NOT NULL,
  `level1_approved_time` datetime NOT NULL,
  `level2_approved_by` int(11) NOT NULL,
  `level2_approved_time` datetime NOT NULL,
  `level3_approved_by` int(11) NOT NULL,
  `level3_approved_time` datetime NOT NULL,
  `project_ids` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_order`
--

INSERT INTO `erp_purchasing_order` (`id`, `file_id`, `title`, `ticket_id`, `project_classification_id`, `contract_id`, `crm_user_id`, `supplier_type`, `vendor_id`, `vendor_contact_id`, `enquiry_id`, `req_id`, `order_date`, `required_date`, `expected_delivery_date`, `currency`, `exchange_rate`, `reference`, `notes`, `terms_id`, `terms_and_conditions`, `remarks`, `payment_terms`, `stock_grand_total`, `nonstock_grandtotal`, `total_tax_amount`, `shipping_address`, `billing_address`, `pricing_conditions`, `shipping_by`, `start_text`, `template_text`, `template_file_name`, `convert_status`, `completed`, `invoice_type`, `service_invoice`, `order_notification`, `order_approve_notification`, `approved_level`, `level1_approved_by`, `level1_approved_time`, `level2_approved_by`, `level2_approved_time`, `level3_approved_by`, `level3_approved_time`, `project_ids`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(60001, 1006, '', 0, 0, 0, 2, 1, 2001, 1, 85001, 0, '2025-12-18', '2025-12-25', '2025-12-25', 1, 1, '', '', 0, '', '', 2, 26250.0000, 0, 1250.0000, '', 'A1\r\nA2\r\n', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 2, 2, '2025-12-18 18:33:28', '2025-12-18 06:33:28'),
(60002, 1007, '', 0, 0, 0, 2, 1, 2001, 1, 0, 0, '2025-12-18', '2025-12-25', '2025-12-25', 1, 1, '', '', 0, '', '', 2, 44.0000, 40, 4.0000, '', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 2, 2, '2025-12-18 19:10:41', '2025-12-19 09:05:06'),
(60003, 1013, '', 0, 0, 0, 2, 1, 2001, 1, 0, 0, '2025-12-19', '2025-12-26', '2025-12-26', 1, 1, '', '', 0, '', '', 2, 15802.5000, 0, 752.5000, '', 'Suite 127899\r\nGolden Enclave', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '25001', 2, 2, '2025-12-19 10:32:24', '2025-12-19 10:56:25'),
(60004, 1014, '', 0, 0, 0, 2, 1, 2001, 1, 85002, 0, '2025-12-19', '2025-12-26', '2025-12-26', 1, 1, '', '', 2, 'Purchase Terms and Conditions come here only\r\nSecond LIne\r\n', '', 2, 119860.0000, 50, 5710.0000, '', 'Address1\r\nAddress 2\r\nSharjah, UAE', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '25002', 2, 2, '2025-12-19 10:47:35', '2025-12-19 11:19:50'),
(60005, 1015, '', 0, 0, 0, 2, 1, 2001, 1, 0, 0, '2025-12-19', '2025-12-26', '2025-12-26', 1, 1, '', '', 0, '', '', 2, 1584.5000, 190, 84.5000, '', 'Suite 127899\r\nGolden Enclave', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 2, 2, '2025-12-19 11:18:58', '2025-12-19 11:18:58'),
(60006, 1019, '', 0, 0, 0, 2, 1, 2001, 1, 85003, 0, '2025-12-19', '2025-12-26', '2025-12-26', 1, 1, '', '', 0, '', '', 2, 9452.5000, 50, 452.5000, '', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'Y', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '25001', 2, 2, '2025-12-19 12:21:40', '2025-12-19 12:21:40'),
(60007, 1021, '', 0, 0, 0, 1, 1, 2003, 3, 85004, 0, '2025-12-19', '2025-12-26', '2025-12-19', 1, 1, '', '', 0, '', '', 2, 11135.0000, 100, 535.0000, '', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 1, 1, '2025-12-19 14:23:43', '2025-12-19 02:23:43'),
(60008, 1026, '', 0, 0, 0, 2, 1, 2001, 1, 85006, 0, '2025-12-19', '2025-12-26', '2025-12-26', 1, 1, '', '', 2, 'Purchase Terms and Conditions come here only\r\n', '', 2, 240.0000, 180, 20.0000, '', 'Address1\r\nAddress 2', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '25001', 2, 2, '2025-12-19 14:57:07', '2025-12-19 02:57:07'),
(60009, 1029, '', 0, 0, 0, 2, 1, 2001, 1, 85007, 0, '2025-12-19', '2025-12-26', '2025-12-26', 1, 1, '', '', 0, '', '', 2, 840.0000, 0, 40.0000, '', 'A1\r\nA2', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'Y', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '25001', 2, 2, '2025-12-19 15:02:53', '2025-12-19 03:02:53'),
(60010, 1030, '', 0, 0, 0, 1, 1, 2002, 2, 0, 0, '2025-12-19', '2025-12-26', '2025-12-26', 1, 1, '', '', 2, 'Purchase Terms and Conditions come here only\r\n', '', 2, 78750.0000, 0, 3750.0000, '', 'Room 567\r\nDeira', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'Y', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '25002', 2, 1, '2025-12-19 15:18:44', '2025-12-23 10:21:28'),
(60011, 1031, '', 0, 0, 0, 2, 1, 2001, 1, 0, 0, '2025-12-19', '2025-12-26', '2025-12-26', 1, 1, '', '', 0, '', '', 2, 840.0000, 0, 40.0000, '', 'Suite 127899\r\nGolden Enclave', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'Y', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 2, 2, '2025-12-19 15:23:12', '2025-12-19 03:23:12'),
(60012, 1042, '', 0, 0, 0, 2, 1, 2001, 1, 85008, 0, '2025-12-22', '2025-12-29', '2025-12-29', 1, 1, '', '', 0, '', '', 2, 136.5000, 0, 6.5000, '', 'PO Box: 5987\r\nSuite 127899\r\nGolden Enclave\r\nSharjah, United Arab Emirates\r\n04 569875', '', '6', 'Please supply the following items at the earliest.', '', '', 'N', 'Y', 4, 'N', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '25001', 2, 2, '2025-12-22 09:47:06', '2025-12-22 09:47:06'),
(60013, 1044, '', 0, 0, 0, 2, 1, 2001, 1, 0, 0, '2025-12-23', '2025-12-30', '2025-12-30', 1, 1, '', '', 0, '', '', 2, 52714.0000, 80, 2514.0000, '', 'Deira 1\r\nDubai\r\nUAE', '', '6', 'Please supply the following items at the earliest.', '', '', 'Y', 'N', 4, 'N', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '', 2, 2, '2025-12-23 10:23:58', '2025-12-23 10:27:22'),
(60014, 1045, '', 0, 0, 0, 2, 1, 2001, 1, 85008, 0, '2025-12-23', '2025-12-30', '2025-12-30', 1, 1, '', '', 0, '', '', 2, 4893010.0000, 200, 233010.0000, '', '', '', '6', 'Please supply the following items at the earliest.', '', '', 'Y', 'N', 4, 'N', '', '', 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', '25001', 2, 2, '2025-12-23 10:29:20', '2025-12-23 10:30:36');

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

--
-- Table structure for table `erp_purchasing_order_addition`
--

CREATE TABLE `erp_purchasing_order_addition` (
  `id` int(11) NOT NULL,
  `purchasing_order_id` int(11) NOT NULL,
  `particular` int(11) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,4) NOT NULL,
  `particular_vat_percent` decimal(15,3) NOT NULL,
  `particular_vat` decimal(15,3) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_order_addition`
--

INSERT INTO `erp_purchasing_order_addition` (`id`, `purchasing_order_id`, `particular`, `particular_value`, `calculated_value`, `particular_vat_percent`, `particular_vat`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(2, 60002, 13, '50', 50.0000, 5.000, 2.500, 2, 2, '2025-12-19 09:05:06', '2025-12-19 09:05:06'),
(8, 60003, 13, '100', 100.0000, 5.000, 5.000, 2, 2, '2025-12-19 10:56:25', '2025-12-19 10:56:25'),
(11, 60004, 1, '100', 100.0000, 5.000, 5.000, 2, 2, '2025-12-19 11:19:50', '2025-12-19 11:19:50'),
(10, 60005, 13, '200', 200.0000, 5.000, 10.000, 2, 2, '2025-12-19 11:18:58', '2025-12-19 11:18:58'),
(12, 60006, 13, '100', 100.0000, 5.000, 5.000, 2, 2, '2025-12-19 12:21:40', '2025-12-19 12:21:40'),
(13, 60007, 13, '110', 110.0000, 5.000, 5.500, 1, 1, '2025-12-19 02:23:43', '2025-12-19 02:23:43'),
(14, 60008, 2, '100', 100.0000, 5.000, 5.000, 2, 2, '2025-12-19 02:57:07', '2025-12-19 02:57:07'),
(15, 60008, 1, '100', 100.0000, 5.000, 5.000, 2, 2, '2025-12-19 02:57:07', '2025-12-19 02:57:07'),
(19, 60013, 1, '100', 100.0000, 5.000, 5.000, 2, 2, '2025-12-23 10:27:22', '2025-12-23 10:27:22'),
(20, 60014, 1, '1200', 1200.0000, 5.000, 60.000, 2, 2, '2025-12-23 10:30:36', '2025-12-23 10:30:36');

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

--
-- Table structure for table `erp_purchasing_order_deduction`
--

CREATE TABLE `erp_purchasing_order_deduction` (
  `id` int(11) NOT NULL,
  `purchasing_order_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `particular_vat` decimal(15,3) NOT NULL,
  `particular_vat_percent` decimal(15,3) NOT NULL,
  `calculated_value` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_order_deduction`
--

INSERT INTO `erp_purchasing_order_deduction` (`id`, `purchasing_order_id`, `particular`, `particular_value`, `particular_vat`, `particular_vat_percent`, `calculated_value`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(2, 60002, '4', '10', 0.500, 5.000, 10.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-19 09:05:06'),
(8, 60003, '3', '50', 2.500, 5.000, 50.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-19 10:56:25'),
(11, 60004, '3', '50', 2.500, 5.000, 50.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-19 11:19:50'),
(10, 60005, '3', '10', 0.500, 5.000, 10.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-19 11:18:58'),
(12, 60006, '3', '50', 2.500, 5.000, 50.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-19 12:21:40'),
(13, 60007, '3', '10', 0.500, 5.000, 10.0000, 1, 1, '0000-00-00 00:00:00', '2025-12-19 02:23:43'),
(14, 60008, '3', '20', 1.000, 5.000, 20.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-19 02:57:07'),
(18, 60013, '3', '20', 1.000, 5.000, 20.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-23 10:27:22'),
(19, 60014, '3', '1000', 50.000, 5.000, 1000.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-23 10:30:36');

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

--
-- Table structure for table `erp_purchasing_order_shipment_details`
--

CREATE TABLE `erp_purchasing_order_shipment_details` (
  `id` int(11) NOT NULL,
  `purchasing_order_id` int(11) NOT NULL,
  `source_id` int(11) NOT NULL,
  `destination_id` int(11) NOT NULL,
  `arrived_date` date NOT NULL,
  `notes` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchasing_order_shipment_document`
--

CREATE TABLE `erp_purchasing_order_shipment_document` (
  `id` int(11) NOT NULL,
  `purchasing_order_id` int(11) NOT NULL,
  `shipment_id` int(11) NOT NULL,
  `document_name` text NOT NULL,
  `document_actual_file_name` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_purchasing_order_stock_item`
--

CREATE TABLE `erp_purchasing_order_stock_item` (
  `id` int(11) NOT NULL,
  `purchasing_order_id` int(11) NOT NULL COMMENT 'foreign key reference to order table',
  `stock_item_id` int(11) NOT NULL COMMENT '(item:the product to be purchased,foreign key reference to inventory item table)',
  `stock_item_name` varchar(255) NOT NULL,
  `stock_item_description` text NOT NULL,
  `stock_item_unit` varchar(255) NOT NULL,
  `stock_item_quantity` decimal(15,3) NOT NULL,
  `stock_item_tolerance` varchar(50) NOT NULL DEFAULT '0',
  `stock_item_max_qty` decimal(15,3) NOT NULL,
  `stock_item_rate` decimal(15,6) NOT NULL,
  `stock_item_amount` decimal(15,4) NOT NULL,
  `tax_percentage` decimal(15,2) NOT NULL,
  `tax_amount` decimal(15,4) NOT NULL,
  `expected_delivery_date` date NOT NULL,
  `remaining_qty` decimal(15,3) NOT NULL DEFAULT 0.000,
  `received` decimal(15,2) NOT NULL,
  `notes` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_order_stock_item`
--

INSERT INTO `erp_purchasing_order_stock_item` (`id`, `purchasing_order_id`, `stock_item_id`, `stock_item_name`, `stock_item_description`, `stock_item_unit`, `stock_item_quantity`, `stock_item_tolerance`, `stock_item_max_qty`, `stock_item_rate`, `stock_item_amount`, `tax_percentage`, `tax_amount`, `expected_delivery_date`, `remaining_qty`, `received`, `notes`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 60001, 1, 'A1001', 'A1001 Item', '1', 100.000, '0', 100.000, 15.000000, 1500.0000, 5.00, 75.0000, '2025-12-23', 0.000, 0.00, '', 2, 2, '2025-12-18 06:33:28', '2025-12-18 06:33:28'),
(2, 60001, 2, 'A1002', 'A1002 Item', '2', 100.000, '0', 100.000, 25.000000, 2500.0000, 5.00, 125.0000, '2025-12-23', 0.000, 0.00, '', 2, 2, '2025-12-18 06:33:28', '2025-12-18 06:33:28'),
(3, 60001, 3, 'A1003', 'A1003 Item', '3', 100.000, '0', 100.000, 35.000000, 3500.0000, 5.00, 175.0000, '2025-12-23', 0.000, 0.00, '', 2, 2, '2025-12-18 06:33:28', '2025-12-18 06:33:28'),
(4, 60001, 4, 'B1001', 'B1001 RM', '4', 500.000, '0', 500.000, 10.000000, 5000.0000, 5.00, 250.0000, '2025-12-23', 0.000, 0.00, '', 2, 2, '2025-12-18 06:33:28', '2025-12-18 06:33:28'),
(5, 60001, 5, 'B1002', 'B1002 RM', '5', 500.000, '0', 500.000, 12.000000, 6000.0000, 5.00, 300.0000, '2025-12-23', 0.000, 0.00, '', 2, 2, '2025-12-18 06:33:28', '2025-12-18 06:33:28'),
(6, 60001, 6, 'B1003', 'B1003 RM', '6', 500.000, '0', 500.000, 13.000000, 6500.0000, 5.00, 325.0000, '2025-12-23', 0.000, 0.00, '', 2, 2, '2025-12-18 06:33:28', '2025-12-18 06:33:28'),
(9, 60002, 1, 'A1001', 'A1001 Item', '1', 1.000, '0', 1.000, 15.000000, 15.0000, 5.00, 0.7500, '2025-12-23', 0.000, 0.00, '', 2, 2, '2025-12-19 09:05:06', '2025-12-19 09:05:06'),
(10, 60002, 2, 'A1002', 'A1002 Item', '2', 1.000, '0', 1.000, 25.000000, 25.0000, 5.00, 1.2500, '2025-12-23', 0.000, 0.00, '', 2, 2, '2025-12-19 09:05:06', '2025-12-19 09:05:06'),
(23, 60003, 1, 'A1001', 'A1001 Item', '1', 10.000, '0', 10.000, 1500.000000, 15000.0000, 5.00, 750.0000, '2025-12-24', 0.000, 0.00, '', 2, 2, '2025-12-19 10:56:25', '2025-12-19 10:56:25'),
(27, 60005, 1, 'A1001', 'A1001 Item', '1', 1.000, '0', 1.000, 1500.000000, 1500.0000, 5.00, 75.0000, '2025-12-24', 0.000, 0.00, '', 2, 2, '2025-12-19 11:18:58', '2025-12-19 11:18:58'),
(28, 60004, 4, 'B1001', 'B1001 RM', '4', 100.000, '0', 100.000, 1111.000000, 111100.0000, 5.00, 5555.0000, '2025-12-24', 0.000, 0.00, '', 2, 2, '2025-12-19 11:19:50', '2025-12-19 11:19:50'),
(29, 60004, 5, 'B1002', 'B1002 RM', '5', 100.000, '0', 100.000, 17.000000, 1700.0000, 5.00, 85.0000, '2025-12-24', 0.000, 0.00, '', 2, 2, '2025-12-19 11:19:50', '2025-12-19 11:19:50'),
(30, 60004, 6, 'B1003', 'B1003 RM', '6', 100.000, '0', 100.000, 13.500000, 1350.0000, 5.00, 67.5000, '2025-12-24', 0.000, 0.00, '', 2, 2, '2025-12-19 11:19:50', '2025-12-19 11:19:50'),
(31, 60006, 4, 'B1001', 'B1001 RM', '4', 100.000, '0', 100.000, 25.000000, 2500.0000, 5.00, 125.0000, '2025-12-24', 0.000, 0.00, '', 2, 2, '2025-12-19 12:21:40', '2025-12-19 12:21:40'),
(32, 60006, 5, 'B1002', 'B1002 RM', '5', 100.000, '0', 100.000, 30.000000, 3000.0000, 5.00, 150.0000, '2025-12-24', 0.000, 0.00, '', 2, 2, '2025-12-19 12:21:40', '2025-12-19 12:21:40'),
(33, 60006, 6, 'B1003', 'B1003 RM', '6', 100.000, '0', 100.000, 35.000000, 3500.0000, 5.00, 175.0000, '2025-12-24', 0.000, 0.00, '', 2, 2, '2025-12-19 12:21:40', '2025-12-19 12:21:40'),
(34, 60007, 1, 'A1001', 'A1001 Item', '1', 4.000, '0', 4.000, 150.000000, 600.0000, 5.00, 30.0000, '2025-12-24', 0.000, 0.00, '', 1, 1, '2025-12-19 02:23:43', '2025-12-19 02:23:43'),
(35, 60007, 4, 'B1001', 'B1001 RM', '4', 1000.000, '0', 1000.000, 10.000000, 10000.0000, 5.00, 500.0000, '2025-12-24', 0.000, 0.00, '', 1, 1, '2025-12-19 02:23:43', '2025-12-19 02:23:43'),
(36, 60008, 9, 'D1001', 'Stock Item', '9', 10.000, '0', 10.000, 10.000000, 100.0000, 5.00, 5.0000, '2025-12-24', 0.000, 0.00, '', 2, 2, '2025-12-19 02:57:07', '2025-12-19 02:57:07'),
(37, 60008, 10, 'D1002', 'Raw Material', '10', 10.000, '0', 10.000, 12.000000, 120.0000, 5.00, 6.0000, '2025-12-24', 0.000, 0.00, '', 2, 2, '2025-12-19 02:57:07', '2025-12-19 02:57:07'),
(38, 60009, 11, 'D1003', 'Service Item', '11', 1.000, '0', 1.000, 800.000000, 800.0000, 5.00, 40.0000, '2025-12-24', 0.000, 0.00, '', 2, 2, '2025-12-19 03:02:53', '2025-12-19 03:02:53'),
(40, 60011, 11, 'D1003', 'Service Item', '11', 1.000, '0', 1.000, 800.000000, 800.0000, 5.00, 40.0000, '2025-12-24', 0.000, 0.00, '', 2, 2, '2025-12-19 03:23:12', '2025-12-19 03:23:12'),
(41, 60012, 1, 'A1001', 'A1001 Item', '1', 3.000, '0', 3.000, 10.000000, 30.0000, 5.00, 1.5000, '2025-12-27', 0.000, 0.00, '', 2, 2, '2025-12-22 09:47:06', '2025-12-22 09:47:06'),
(42, 60012, 5, 'B1002', 'B1002 RM', '5', 2.000, '0', 2.000, 30.000000, 60.0000, 5.00, 3.0000, '2025-12-27', 0.000, 0.00, '', 2, 2, '2025-12-22 09:47:06', '2025-12-22 09:47:06'),
(43, 60012, 4, 'B1001', 'B1001 RM', '4', 1.000, '0', 1.000, 40.000000, 40.0000, 5.00, 2.0000, '2025-12-27', 0.000, 0.00, '', 2, 2, '2025-12-22 09:47:06', '2025-12-22 09:47:06'),
(44, 60010, 11, 'D1003', 'Service Item', '11', 100.000, '0', 100.000, 750.000000, 75000.0000, 5.00, 3750.0000, '2025-12-24', 0.000, 0.00, '', 1, 1, '2025-12-23 10:21:28', '2025-12-23 10:21:28'),
(51, 60013, 1, 'A1001', 'A1001 Item', '1', 10.000, '0', 10.000, 1010.000000, 10100.0000, 5.00, 505.0000, '2025-12-28', 0.000, 0.00, '', 2, 2, '2025-12-23 10:27:22', '2025-12-23 10:27:22'),
(52, 60013, 2, 'A1002', 'A1002 Item', '2', 20.000, '0', 20.000, 2005.000000, 40100.0000, 5.00, 2005.0000, '2025-12-28', 0.000, 0.00, '', 2, 2, '2025-12-23 10:27:22', '2025-12-23 10:27:22'),
(59, 60014, 1, 'A1001', 'A1001 Item', '1', 1000.000, '0', 1000.000, 300.000000, 300000.0000, 5.00, 15000.0000, '2025-12-28', 0.000, 0.00, '', 2, 2, '2025-12-23 10:30:36', '2025-12-23 10:30:36'),
(60, 60014, 5, 'B1002', 'B1002 RM', '5', 2000.000, '0', 2000.000, 2000.000000, 4000000.0000, 5.00, 200000.0000, '2025-12-28', 0.000, 0.00, '', 2, 2, '2025-12-23 10:30:36', '2025-12-23 10:30:36'),
(61, 60014, 4, 'B1001', 'B1001 RM', '4', 3000.000, '0', 3000.000, 120.000000, 360000.0000, 5.00, 18000.0000, '2025-12-28', 0.000, 0.00, '', 2, 2, '2025-12-23 10:30:36', '2025-12-23 10:30:36');

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

--
-- Table structure for table `erp_purchasing_order_stock_item_temp`
--

CREATE TABLE `erp_purchasing_order_stock_item_temp` (
  `id` int(11) NOT NULL,
  `purchasing_order_id` int(11) NOT NULL COMMENT 'foreign key reference to order table',
  `stock_item_id` int(11) NOT NULL COMMENT '(item:the product to be purchased,foreign key reference to inventory item table)',
  `stock_item_name` varchar(255) NOT NULL,
  `stock_item_description` varchar(255) NOT NULL,
  `stock_item_unit` varchar(255) NOT NULL,
  `stock_item_quantity` decimal(15,3) NOT NULL,
  `stock_item_rate` decimal(15,3) NOT NULL,
  `stock_item_amount` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_order_stock_item_temp`
--

INSERT INTO `erp_purchasing_order_stock_item_temp` (`id`, `purchasing_order_id`, `stock_item_id`, `stock_item_name`, `stock_item_description`, `stock_item_unit`, `stock_item_quantity`, `stock_item_rate`, `stock_item_amount`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 1, 1, 'A1001', 'A1001 Item', 'pcs', 4.000, 150.000, 600.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, 1, 4, 'B1001', 'B1001 RM', 'pcs', 1000.000, 10.000, 10000.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_purchasing_order_temp`
--

CREATE TABLE `erp_purchasing_order_temp` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `crm_user_id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL COMMENT 'foreign key relation to company table',
  `project` int(11) NOT NULL,
  `connected_file_id` varchar(255) NOT NULL COMMENT '????',
  `contact_id` int(11) NOT NULL COMMENT 'foreign key reference to contact details table',
  `enquiry_id` int(11) NOT NULL,
  `order_date` date NOT NULL COMMENT 'current date',
  `required_date` date NOT NULL,
  `expected_delivery_date` date NOT NULL,
  `currency` int(11) NOT NULL,
  `exchange_rate` float NOT NULL,
  `reference` varchar(255) NOT NULL,
  `notes` text NOT NULL,
  `terms_and_conditions` text NOT NULL,
  `remarks` text NOT NULL,
  `first_party` int(11) NOT NULL,
  `second_party` int(11) NOT NULL,
  `verified_by` int(11) NOT NULL,
  `payment_terms` int(11) NOT NULL,
  `stock_grand_total` float NOT NULL,
  `nonstock_grandtotal` float NOT NULL,
  `shipping_address` text NOT NULL,
  `pricing_conditions` varchar(255) NOT NULL,
  `shipping_by` varchar(255) NOT NULL,
  `start_text` text NOT NULL,
  `convert_status` enum('Y','N') NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_order_temp`
--

INSERT INTO `erp_purchasing_order_temp` (`id`, `file_id`, `title`, `crm_user_id`, `vendor_id`, `project`, `connected_file_id`, `contact_id`, `enquiry_id`, `order_date`, `required_date`, `expected_delivery_date`, `currency`, `exchange_rate`, `reference`, `notes`, `terms_and_conditions`, `remarks`, `first_party`, `second_party`, `verified_by`, `payment_terms`, `stock_grand_total`, `nonstock_grandtotal`, `shipping_address`, `pricing_conditions`, `shipping_by`, `start_text`, `convert_status`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 0, '', 1, 2003, 0, '', 0, 85004, '2025-12-19', '2025-12-26', '2025-12-19', 23, 1, '', '', '', '', 0, 0, 0, 0, 10600, 0, '', '', '', '', 'Y', 1, 0, '2025-12-19 02:22:27', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_purchasing_requisition`
--

CREATE TABLE `erp_purchasing_requisition` (
  `id` int(11) NOT NULL,
  `file_id` bigint(20) NOT NULL,
  `crm_user_id` int(11) NOT NULL COMMENT '(employee id)Logined user id,has foreign key relation to user table',
  `file_title` varchar(255) NOT NULL,
  `requisition_date` date NOT NULL,
  `required_date` date NOT NULL,
  `status` enum('P','C','D','E') NOT NULL DEFAULT 'P' COMMENT 'p-processing,c-cancelled,E-Enquiry',
  `remarks` text NOT NULL,
  `convert_status` enum('0','1','2') NOT NULL COMMENT '0=>closed,1=>new items,3=>stocks',
  `requisition_notification` varchar(500) NOT NULL,
  `project_id` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `requisition_status` enum('-','O','C') NOT NULL DEFAULT '-',
  `reference` varchar(255) NOT NULL,
  `requested_by` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_requisition`
--

INSERT INTO `erp_purchasing_requisition` (`id`, `file_id`, `crm_user_id`, `file_title`, `requisition_date`, `required_date`, `status`, `remarks`, `convert_status`, `requisition_notification`, `project_id`, `isActive`, `requisition_status`, `reference`, `requested_by`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(75001, 1002, 2, '', '2025-12-18', '2025-12-25', 'P', '', '1', '', 25002, 'Y', '-', 'R1', 17, 2, 2, '2025-12-18 18:22:10', '2025-12-19 09:29:35'),
(75002, 1010, 2, '', '2025-12-19', '2025-12-26', 'P', '', '1', '', 25001, 'Y', '-', 'Test 1', 16, 2, 2, '2025-12-19 08:58:56', '2025-12-19 09:21:07'),
(75003, 1012, 2, '', '2025-12-19', '2025-12-26', 'P', 'T1 Remarks', '1', '', 25002, 'Y', '-', 'T1', 17, 2, 2, '2025-12-19 09:44:45', '2025-12-19 09:44:45'),
(75004, 1017, 2, '', '2025-12-19', '2025-12-26', 'P', '', '1', '', 25001, 'Y', '-', '', 16, 2, 2, '2025-12-19 12:20:36', '2025-12-19 12:20:36'),
(75005, 1022, 2, '', '2025-12-19', '2025-12-26', 'P', '', '1', '', 25001, 'Y', '-', 'R1`', 2, 2, 2, '2025-12-19 14:52:24', '2025-12-19 02:52:24'),
(75006, 1027, 2, '', '2025-12-19', '2025-12-26', 'P', '', '1', '', 25001, 'Y', '-', 'S1', 2, 2, 2, '2025-12-19 15:02:06', '2025-12-19 03:02:06'),
(75007, 1040, 2, '', '2025-12-22', '2025-12-29', 'P', 'Test Ref1 Remarks', '1', '', 25001, 'Y', '-', 'Test Ref1', 16, 2, 2, '2025-12-22 08:07:36', '2025-12-22 08:35:21');

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

--
-- Table structure for table `erp_purchasing_requisition_non_stock_item`
--

CREATE TABLE `erp_purchasing_requisition_non_stock_item` (
  `id` int(11) NOT NULL,
  `purchasing_requisition_id` int(11) NOT NULL COMMENT 'foreign key reference to enquiry table',
  `non_stock_item_name` varchar(255) NOT NULL,
  `non_stock_item_description` varchar(255) NOT NULL,
  `non_stock_item_brand` varchar(255) NOT NULL,
  `non_stock_item_unit` varchar(255) NOT NULL,
  `non_stock_item_quantity` decimal(15,3) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_requisition_non_stock_item`
--

INSERT INTO `erp_purchasing_requisition_non_stock_item` (`id`, `purchasing_requisition_id`, `non_stock_item_name`, `non_stock_item_description`, `non_stock_item_brand`, `non_stock_item_unit`, `non_stock_item_quantity`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(6, 75002, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(8, 75001, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(9, 75003, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(10, 75004, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(11, 75005, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(12, 75006, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(14, 75007, '', '', '', '', 0.000, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_purchasing_requisition_stock_item`
--

CREATE TABLE `erp_purchasing_requisition_stock_item` (
  `id` int(11) NOT NULL,
  `purchasing_requisition_id` int(11) NOT NULL COMMENT 'foreign key reference to enquiry table',
  `stock_item_id` int(11) NOT NULL COMMENT '(item:the product to be purchased,foreign key reference to inventory item table)',
  `stock_item_name` varchar(255) NOT NULL,
  `stock_item_description` varchar(255) NOT NULL,
  `stock_item_unit` int(11) NOT NULL,
  `stock_item_quantity` decimal(15,3) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_purchasing_requisition_stock_item`
--

INSERT INTO `erp_purchasing_requisition_stock_item` (`id`, `purchasing_requisition_id`, `stock_item_id`, `stock_item_name`, `stock_item_description`, `stock_item_unit`, `stock_item_quantity`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(19, 75002, 4, 'B1001', 'B1001 RM', 4, 100.000, 2, 2, '2025-12-19 09:21:07', '2025-12-19 09:21:07'),
(20, 75002, 5, 'B1002', 'B1002 RM', 5, 100.000, 2, 2, '2025-12-19 09:21:07', '2025-12-19 09:21:07'),
(21, 75002, 6, 'B1003', 'B1003 RM', 6, 100.000, 2, 2, '2025-12-19 09:21:07', '2025-12-19 09:21:07'),
(28, 75001, 1, 'A1001', 'A1001 Item', 1, 100.000, 2, 2, '2025-12-19 09:29:35', '2025-12-19 09:29:35'),
(29, 75001, 2, 'A1002', 'A1002 Item', 2, 100.000, 2, 2, '2025-12-19 09:29:35', '2025-12-19 09:29:35'),
(30, 75001, 3, 'A1003', 'A1003 Item', 3, 100.000, 2, 2, '2025-12-19 09:29:35', '2025-12-19 09:29:35'),
(31, 75001, 4, 'B1001', 'B1001 RM', 4, 500.000, 2, 2, '2025-12-19 09:29:35', '2025-12-19 09:29:35'),
(32, 75001, 5, 'B1002', 'B1002 RM', 5, 500.000, 2, 2, '2025-12-19 09:29:35', '2025-12-19 09:29:35'),
(33, 75001, 6, 'B1003', 'B1003 RM', 6, 500.000, 2, 2, '2025-12-19 09:29:35', '2025-12-19 09:29:35'),
(34, 75003, 1, 'A1001', 'A1001 Item', 1, 23.000, 2, 2, '2025-12-19 09:44:45', '2025-12-19 09:44:45'),
(35, 75003, 2, 'A1002', 'A1002 Item', 2, 17.000, 2, 2, '2025-12-19 09:44:45', '2025-12-19 09:44:45'),
(36, 75004, 4, 'B1001', 'B1001 RM', 4, 100.000, 2, 2, '2025-12-19 12:20:36', '2025-12-19 12:20:36'),
(37, 75004, 5, 'B1002', 'B1002 RM', 5, 100.000, 2, 2, '2025-12-19 12:20:36', '2025-12-19 12:20:36'),
(38, 75004, 6, 'B1003', 'B1003 RM', 6, 100.000, 2, 2, '2025-12-19 12:20:36', '2025-12-19 12:20:36'),
(39, 75005, 9, 'D1001', 'Stock Item', 9, 10.000, 2, 2, '2025-12-19 02:52:24', '2025-12-19 02:52:24'),
(40, 75005, 10, 'D1002', 'Raw Material', 10, 10.000, 2, 2, '2025-12-19 02:52:24', '2025-12-19 02:52:24'),
(41, 75005, 11, 'D1003', 'Service Item', 11, 1.000, 2, 2, '2025-12-19 02:52:24', '2025-12-19 02:52:24'),
(42, 75006, 11, 'D1003', 'Service Item', 11, 1.000, 2, 2, '2025-12-19 03:02:06', '2025-12-19 03:02:06'),
(45, 75007, 1, 'A1001', 'A1001 Item', 1, 3.000, 2, 2, '2025-12-22 08:35:21', '2025-12-22 08:35:21'),
(46, 75007, 5, 'B1002', 'B1002 RM', 5, 2.000, 2, 2, '2025-12-22 08:35:21', '2025-12-22 08:35:21'),
(47, 75007, 4, 'B1001', 'B1001 RM', 4, 1.000, 2, 2, '2025-12-22 08:35:21', '2025-12-22 08:35:21');

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

--
-- Table structure for table `erp_quotation_schedules`
--

CREATE TABLE `erp_quotation_schedules` (
  `id` int(11) NOT NULL,
  `quotation_id` bigint(20) NOT NULL,
  `quotation_item_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `scheduled_date` date NOT NULL,
  `description` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_quotes`
--

CREATE TABLE `erp_quotes` (
  `id` bigint(20) NOT NULL,
  `file_id` int(11) NOT NULL,
  `file_title` varchar(255) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `contact_id` int(11) NOT NULL,
  `lead_owner_id` int(11) NOT NULL,
  `qtn_start_date` date NOT NULL,
  `qtn_validity` date NOT NULL,
  `sales_group_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `exchange_rate` decimal(15,2) NOT NULL,
  `payment_terms_id` int(11) NOT NULL,
  `shipping_by` int(11) NOT NULL,
  `invoice_type_id` int(11) NOT NULL COMMENT 'refer from crm_mas_invoice_type id',
  `status` int(11) NOT NULL,
  `enq_ref` varchar(255) NOT NULL,
  `revision` varchar(255) NOT NULL,
  `billing_address` text NOT NULL,
  `qtn_close_reason` int(11) NOT NULL,
  `remarks` text NOT NULL,
  `notes` text NOT NULL,
  `terms_id` int(11) DEFAULT NULL COMMENT 'primary key to masterms ',
  `terms_and_conditions` text NOT NULL,
  `grand_total` decimal(15,2) NOT NULL,
  `total_tax_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `qtn_type` enum('sales','service','','') NOT NULL,
  `total_discount_percentage` decimal(15,2) NOT NULL DEFAULT 0.00,
  `total_discount_amount` decimal(15,2) NOT NULL,
  `ticket_id` int(11) NOT NULL,
  `job_order_id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `inco_term_id` int(11) NOT NULL,
  `ambient_scent_for` varchar(255) NOT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_date_time` datetime DEFAULT NULL,
  `updated_date_time` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_quotes`
--

INSERT INTO `erp_quotes` (`id`, `file_id`, `file_title`, `customer_id`, `contact_id`, `lead_owner_id`, `qtn_start_date`, `qtn_validity`, `sales_group_id`, `currency_id`, `exchange_rate`, `payment_terms_id`, `shipping_by`, `invoice_type_id`, `status`, `enq_ref`, `revision`, `billing_address`, `qtn_close_reason`, `remarks`, `notes`, `terms_id`, `terms_and_conditions`, `grand_total`, `total_tax_amount`, `isActive`, `qtn_type`, `total_discount_percentage`, `total_discount_amount`, `ticket_id`, `job_order_id`, `project_id`, `inco_term_id`, `ambient_scent_for`, `created_by`, `updated_by`, `created_date_time`, `updated_date_time`) VALUES
(10001, 1005, '', 1001, 1, 2, '2025-12-18', '2026-01-17', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 1051050.00, 50050.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, '', 2, 2, '2025-12-18 18:31:39', '2025-12-19 08:12:40'),
(10002, 1008, '', 1001, 1, 2, '2025-12-19', '2026-01-18', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'Building 870\r\nBusiness Bay\r\nP.O Box 58974\r\nDubai , United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here\r\nMore Conditions can be entered in T&C Master also', 18690.00, 890.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, '', 2, 2, '2025-12-19 08:23:16', '2025-12-19 11:44:07'),
(10003, 1009, '', 1002, 2, 2, '2025-12-19', '2025-12-19', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'P.O Box : 87954\r\nBuilding 1\r\nIndustrial Area 2\r\nSharjah, United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here\r\nMore Conditions can be entered in T&C Master also', 12915.00, 615.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, '', 2, 2, '2025-12-19 08:26:17', '2025-12-19 10:18:16'),
(10004, 1016, '', 1001, 1, 2, '2025-12-19', '2026-01-18', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'Building 870\r\nBusiness Bay\r\nP.O Box 58974\r\nDubai , United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 10752.00, 512.00, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, '', 2, NULL, '2025-12-19 12:13:04', NULL),
(10005, 1035, '', 1001, 1, 2, '2025-12-20', '2026-01-19', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'P.O Box : 58974\r\nBuilding 870\r\nBusiness Bay\r\nDubai, United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here', 4882.50, 232.50, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, '', 2, 2, '2025-12-20 09:28:27', '2025-12-20 09:28:51'),
(10006, 1037, '', 1001, 1, 2, '2025-12-20', '2026-01-19', 1, 1, 1.00, 2, 2, 1, 1, '', '1', 'PO Box 58974\r\nBuilding 870\r\nBusiness Bay\r\nDubai, United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here\r\nNext Line', 5827.50, 277.50, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, '', 2, 2, '2025-12-20 13:16:35', '2025-12-20 13:18:40'),
(10007, 1038, '', 1002, 2, 2, '2025-12-20', '2026-01-19', 1, 1, 1.00, 2, 2, 1, 1, '', '', 'PO Box 87954\r\nBuilding 1\r\nIndustrial Area 2\r\nSharjah, United Arab Emirates', 0, '', '', 1, 'Sales Terms and Conditions come here\r\nNext Line', 2992.50, 142.50, 'Y', 'sales', 0.00, 0.00, 0, 0, 0, 1, '', 2, NULL, '2025-12-20 13:22:57', NULL);

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

--
-- Table structure for table `erp_quotes_addition`
--

CREATE TABLE `erp_quotes_addition` (
  `id` int(11) NOT NULL,
  `quotes_id` int(11) NOT NULL,
  `particular` int(11) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `calculated_value` decimal(15,4) NOT NULL,
  `particular_vat_percent` decimal(15,3) NOT NULL,
  `particular_vat` decimal(15,3) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_quotes_addition`
--

INSERT INTO `erp_quotes_addition` (`id`, `quotes_id`, `particular`, `particular_value`, `calculated_value`, `particular_vat_percent`, `particular_vat`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(7, 10001, 13, '20', 20.0000, 5.000, 1.000, 2, 2, '2025-12-19 08:12:40', '2025-12-19 08:12:40'),
(19, 10002, 1, '300', 300.0000, 5.000, 15.000, 2, 2, '2025-12-19 11:44:07', '2025-12-19 11:44:07'),
(18, 10003, 1, '300', 300.0000, 5.000, 15.000, 2, 2, '2025-12-19 10:18:16', '2025-12-19 10:18:16'),
(20, 10004, 13, '100', 100.0000, 5.000, 5.000, 2, 2, '2025-12-19 12:13:04', '2025-12-19 12:13:04'),
(22, 10005, 8, '100', 100.0000, 5.000, 5.000, 2, 2, '2025-12-20 09:28:51', '2025-12-20 09:28:51'),
(25, 10006, 5, '100', 100.0000, 5.000, 5.000, 2, 2, '2025-12-20 01:18:40', '2025-12-20 01:18:40'),
(26, 10007, 5, '100', 100.0000, 5.000, 5.000, 2, 2, '2025-12-20 01:22:57', '2025-12-20 01:22:57');

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

--
-- Table structure for table `erp_quotes_contract_item`
--

CREATE TABLE `erp_quotes_contract_item` (
  `id` int(11) NOT NULL,
  `quotes_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `brand_class_id` int(11) NOT NULL,
  `unit_id` int(11) NOT NULL,
  `quantity` decimal(15,6) NOT NULL,
  `contract_month` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_quotes_contract_item`
--

INSERT INTO `erp_quotes_contract_item` (`id`, `quotes_id`, `product_id`, `part_number`, `description`, `brand_class_id`, `unit_id`, `quantity`, `contract_month`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(6, 10084, 667, 'IMP001', 'Shipping Charges', 0, 2, 1.000000, '1', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, 10084, 666, 'IMP002', 'Duty Charges', 0, 2, 110.000000, '2', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(14, 10085, 667, 'IMP001', 'Shipping Charges', 0, 2, 100.000000, '1', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(15, 10085, 666, 'IMP002', 'Duty Charges', 0, 2, 100.000000, '2', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(24, 10086, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(28, 10088, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(30, 10079, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(32, 10089, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(34, 10090, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(36, 10091, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(38, 10087, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(41, 10092, 686, 'P30004', 'Product 3', 0, 1, 1.000000, '11', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(43, 10093, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(45, 10094, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(47, 10095, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(49, 10096, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(51, 10097, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(53, 10098, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(55, 10099, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(57, 10100, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(60, 10101, 685, 'product 0002', 'product 0001', 0, 1, 1.000000, '11', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(62, 10102, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(64, 10103, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(66, 10104, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(68, 10105, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(70, 10106, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(72, 10107, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(74, 10108, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(76, 10109, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(79, 10110, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(84, 10111, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(86, 10112, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(90, 10076, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(92, 10113, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(101, 10058, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(102, 10016, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(104, 10114, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(105, 10060, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(106, 10115, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(109, 10116, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(114, 10064, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(115, 10117, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(124, 10034, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(126, 10119, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(127, 10118, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(129, 10120, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(136, 10001, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(145, 1, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(146, 2, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(147, 3, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(156, 10003, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(157, 10002, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(158, 10004, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(160, 10005, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(163, 10006, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(164, 10007, 0, '', '', 0, 0, 0.000000, '', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_quotes_deduction`
--

CREATE TABLE `erp_quotes_deduction` (
  `id` int(11) NOT NULL,
  `quotes_id` int(11) NOT NULL,
  `particular` varchar(255) NOT NULL,
  `particular_value` varchar(50) NOT NULL,
  `particular_vat` decimal(15,3) NOT NULL,
  `particular_vat_percent` decimal(15,3) NOT NULL,
  `calculated_value` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_quotes_deduction`
--

INSERT INTO `erp_quotes_deduction` (`id`, `quotes_id`, `particular`, `particular_value`, `particular_vat`, `particular_vat_percent`, `calculated_value`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(7, 10001, '4', '10', 0.500, 5.000, 10.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-19 08:12:40'),
(19, 10002, '3', '40', 2.000, 5.000, 40.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-19 11:44:07'),
(18, 10003, '3', '50', 2.500, 5.000, 50.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-19 10:18:16'),
(20, 10004, '3', '50', 2.500, 5.000, 50.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-19 12:13:04'),
(22, 10005, '9', '50', 2.500, 5.000, 50.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-20 09:28:51'),
(25, 10006, '9', '50', 2.500, 5.000, 50.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-20 01:18:40'),
(26, 10007, '9', '50', 2.500, 5.000, 50.0000, 2, 2, '0000-00-00 00:00:00', '2025-12-20 01:22:57');

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

--
-- Table structure for table `erp_quotes_item`
--

CREATE TABLE `erp_quotes_item` (
  `id` int(11) NOT NULL,
  `quotes_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `brand_class_id` int(11) NOT NULL,
  `unit_id` int(11) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `rate` decimal(15,3) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `addition_percentage` varchar(50) NOT NULL DEFAULT '0',
  `addition_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `deduction_percentage` varchar(50) NOT NULL DEFAULT '0',
  `deduction_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `tax_vat_percentage` decimal(15,2) NOT NULL,
  `tax_vat_amount` decimal(15,2) NOT NULL,
  `net_amount` decimal(15,2) NOT NULL,
  `cost_rate` decimal(15,2) NOT NULL,
  `actual_cost_rate` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `checked` int(11) NOT NULL,
  `image_file_name` varchar(255) NOT NULL,
  `alternate_id` varchar(255) NOT NULL,
  `ticket_material_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_quotes_item`
--

INSERT INTO `erp_quotes_item` (`id`, `quotes_id`, `product_id`, `part_number`, `description`, `brand_class_id`, `unit_id`, `quantity`, `rate`, `amount`, `addition_percentage`, `addition_amount`, `deduction_percentage`, `deduction_amount`, `tax_vat_percentage`, `tax_vat_amount`, `net_amount`, `cost_rate`, `actual_cost_rate`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`, `checked`, `image_file_name`, `alternate_id`, `ticket_material_id`) VALUES
(14, 10001, 2, '', 'A1002 Item', 0, 2, 1000.000, 1000.000, 1000000.00, '', 0.00, '0', 0.00, 5.00, 50000.00, 1000000.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '2', 0),
(13, 10001, 1, '', 'A1001 Item', 0, 1, 1.000, 1000.000, 1000.00, '0', 0.00, '0', 0.00, 5.00, 50.00, 1000.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '1', 0),
(38, 10002, 2, '', 'A1002 Item', 0, 2, 2.000, 1520.000, 3040.00, '', 0.00, '', 0.00, 5.00, 152.00, 3040.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '2', 0),
(37, 10002, 1, '', 'A1001 Item', 0, 1, 2.000, 7250.000, 14500.00, '0', 0.00, '0', 0.00, 5.00, 725.00, 14500.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '1', 0),
(36, 10003, 2, '', 'A1002 Item', 0, 2, 3.000, 1600.000, 4800.00, '', 0.00, '', 0.00, 5.00, 240.00, 4800.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '2', 0),
(35, 10003, 1, '', 'A1001 Item', 0, 1, 1.000, 7250.000, 7250.00, '0', 0.00, '0', 0.00, 5.00, 362.50, 7250.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '1', 0),
(39, 10004, 1, '', 'A1001 Item', 0, 1, 5.000, 1258.000, 6290.00, '0', 0.00, '0', 0.00, 5.00, 314.50, 6290.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '1', 0),
(40, 10004, 2, '', 'A1002 Item', 0, 2, 5.000, 780.000, 3900.00, '', 0.00, '', 0.00, 5.00, 195.00, 3900.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '', 0),
(44, 10005, 2, '', 'A1002 Item', 0, 2, 2.000, 500.000, 1000.00, '', 0.00, '', 0.00, 5.00, 50.00, 1000.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '2', 0),
(43, 10005, 1, '', 'A1001 Item', 0, 1, 2.000, 1800.000, 3600.00, '0', 0.00, '0', 0.00, 5.00, 180.00, 3600.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '1', 0),
(50, 10006, 2, '', 'A1002 Item', 0, 2, 2.000, 1450.000, 2900.00, '', 0.00, '', 0.00, 5.00, 145.00, 2900.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '2', 0),
(49, 10006, 1, '', 'A1001 Item', 0, 1, 2.000, 1300.000, 2600.00, '0', 0.00, '0', 0.00, 5.00, 130.00, 2600.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '1', 0),
(51, 10007, 1, '', 'A1001 Item', 0, 1, 1.000, 1300.000, 1300.00, '0', 0.00, '0', 0.00, 5.00, 65.00, 1300.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '1', 0),
(52, 10007, 2, '', 'A1002 Item', 0, 2, 1.000, 1500.000, 1500.00, '', 0.00, '', 0.00, 5.00, 75.00, 1500.00, 0.00, 0.00, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, '', '2', 0);

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

--
-- Table structure for table `erp_quotes_item_changed`
--

CREATE TABLE `erp_quotes_item_changed` (
  `id` int(11) NOT NULL,
  `quotes_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `description` text NOT NULL,
  `product_generic_name` varchar(255) NOT NULL,
  `brand_class_id` int(11) NOT NULL,
  `unit_id` int(11) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `bonus_qty` decimal(15,3) NOT NULL,
  `rate` decimal(15,3) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `addition_percentage` varchar(50) NOT NULL DEFAULT '0',
  `addition_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `deduction_percentage` varchar(50) NOT NULL DEFAULT '0',
  `deduction_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `tax_vat_percentage` decimal(15,2) NOT NULL,
  `tax_vat_amount` decimal(15,2) NOT NULL,
  `net_amount` decimal(15,2) NOT NULL,
  `cost_rate` decimal(15,2) NOT NULL,
  `actual_cost_rate` decimal(15,2) NOT NULL,
  `cost_price1` decimal(15,2) NOT NULL,
  `cost_price2` decimal(15,2) NOT NULL,
  `cost_price3` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `checked` int(11) NOT NULL,
  `code` varchar(20) NOT NULL,
  `image_file_name` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_quotes_item_test`
--

CREATE TABLE `erp_quotes_item_test` (
  `id` int(11) NOT NULL,
  `quotes_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `description` text NOT NULL,
  `product_generic_name` varchar(255) NOT NULL,
  `brand_class_id` int(11) NOT NULL,
  `unit_id` int(11) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `bonus_qty` decimal(15,3) NOT NULL,
  `rate` decimal(15,3) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `addition_percentage` varchar(50) NOT NULL DEFAULT '0',
  `addition_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `deduction_percentage` varchar(50) NOT NULL DEFAULT '0',
  `deduction_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `tax_vat_percentage` decimal(15,2) NOT NULL,
  `tax_vat_amount` decimal(15,2) NOT NULL,
  `net_amount` decimal(15,2) NOT NULL,
  `cost_rate` decimal(15,2) NOT NULL,
  `actual_cost_rate` decimal(15,2) NOT NULL,
  `cost_price1` decimal(15,2) NOT NULL,
  `cost_price2` decimal(15,2) NOT NULL,
  `cost_price3` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL,
  `checked` int(11) NOT NULL,
  `code` varchar(20) NOT NULL,
  `image_file_name` varchar(255) NOT NULL,
  `margin` varchar(10) NOT NULL,
  `alternate_id` decimal(15,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_quotes_revision_history`
--

CREATE TABLE `erp_quotes_revision_history` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `quotes_id` int(11) NOT NULL,
  `file_name` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_sales_man_target`
--

CREATE TABLE `erp_sales_man_target` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `target_master_id` int(11) NOT NULL,
  `target_type` enum('C','V') NOT NULL,
  `target_daily` decimal(15,2) NOT NULL,
  `target_weekly` decimal(15,2) NOT NULL,
  `target_monthly` decimal(15,2) NOT NULL,
  `target_quarterly` decimal(15,2) NOT NULL,
  `target_yearly` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_sales_price_group`
--

CREATE TABLE `erp_sales_price_group` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `pricing_group_id` int(11) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `sales_price` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_sales_price_group_name`
--

CREATE TABLE `erp_sales_price_group_name` (
  `id` int(11) NOT NULL,
  `pricing_group_name` varchar(255) NOT NULL,
  `default_pricing_group` enum('Y','N') NOT NULL DEFAULT 'N',
  `pricing_group_file_name` varchar(255) NOT NULL,
  `uploaded_by` int(11) NOT NULL,
  `upload_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_sales_repair_request_item`
--

CREATE TABLE `erp_sales_repair_request_item` (
  `id` int(11) NOT NULL,
  `machine_id` int(11) NOT NULL,
  `serial_no` varchar(225) NOT NULL,
  `status_id` int(11) NOT NULL,
  `date` date NOT NULL,
  `fragrance_id` int(11) NOT NULL,
  `new_fragrance_id` int(11) NOT NULL,
  `service_id` int(11) NOT NULL,
  `service_type` int(11) NOT NULL,
  `liquid_id` int(11) NOT NULL,
  `issue_item_id` int(11) NOT NULL,
  `old_volume` int(11) NOT NULL,
  `new_volume` int(11) NOT NULL,
  `header_id` int(11) NOT NULL,
  `before_image` varchar(256) NOT NULL,
  `file_name` varchar(256) NOT NULL,
  `sign` varchar(256) NOT NULL,
  `remark` text NOT NULL,
  `maintenance_id` int(11) NOT NULL,
  `activity_changed` enum('N','Y') NOT NULL,
  `scanned_type` enum('Y','N') NOT NULL DEFAULT 'N',
  `location_id` int(11) NOT NULL,
  `is_completed` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_sales_repair_request_item`
--

INSERT INTO `erp_sales_repair_request_item` (`id`, `machine_id`, `serial_no`, `status_id`, `date`, `fragrance_id`, `new_fragrance_id`, `service_id`, `service_type`, `liquid_id`, `issue_item_id`, `old_volume`, `new_volume`, `header_id`, `before_image`, `file_name`, `sign`, `remark`, `maintenance_id`, `activity_changed`, `scanned_type`, `location_id`, `is_completed`) VALUES
(15, 687, 'X2003', 2, '0000-00-00', 0, 0, 1, 0, 0, 18, 0, 0, 4, '', '', '', '', 0, 'N', 'N', 14, 'N'),
(14, 687, 'Z12', 2, '0000-00-00', 0, 0, 1, 0, 0, 17, 0, 0, 3, '', '', '', '', 0, 'N', 'N', 10, 'N'),
(13, 687, 'X2001', 2, '0000-00-00', 0, 0, 1, 0, 0, 16, 0, 0, 3, '', '', '', '', 0, 'N', 'N', 9, 'N'),
(6, 685, 'A2001', 2, '2025-10-30', 0, 0, 1, 0, 0, 0, 0, 0, 2, '', '', '', 'q', 0, 'N', 'N', 14, 'Y'),
(7, 685, 'A2006', 2, '2025-10-30', 0, 0, 17, 0, 0, 0, 0, 0, 2, '', '', '', 'q', 0, 'N', 'N', 13, 'Y'),
(8, 685, 'A2009', 3, '2025-10-30', 0, 0, 11, 0, 0, 0, 0, 0, 1, '', '', '', 'ww', 0, 'N', 'N', 7, 'N'),
(9, 685, 'A2010', 3, '2025-10-30', 0, 0, 11, 0, 0, 0, 0, 0, 1, '', '', '', 'qw', 0, 'N', 'N', 8, 'N'),
(10, 685, 'A2011', 3, '2025-10-30', 0, 0, 11, 0, 0, 0, 0, 0, 1, '', '', '', 'wqw', 0, 'N', 'N', 6, 'N'),
(11, 685, 'A2012', 3, '2025-10-30', 0, 0, 11, 0, 0, 0, 0, 0, 1, '', '', '', 'wqw', 0, 'N', 'N', 11, 'N'),
(12, 683, 'P0001', 3, '2025-10-30', 0, 0, 11, 0, 0, 0, 0, 0, 1, '', '', '', 'qw', 0, 'N', 'N', 11, 'N'),
(16, 687, 'X2004', 2, '0000-00-00', 0, 0, 1, 0, 0, 19, 0, 0, 5, '', '', '', '', 0, 'N', 'N', 5, 'N'),
(26, 687, 'X2001', 2, '2025-10-30', 0, 0, 12, 0, 0, 0, 0, 0, 6, '', '', '', '', 0, 'N', 'N', 9, 'Y'),
(18, 685, 'A2001', 2, '2025-11-01', 0, 0, 16, 0, 0, 0, 0, 0, 8, '', '', '', 'we', 0, 'N', 'N', 14, 'Y'),
(19, 685, 'A2006', 2, '2025-11-01', 0, 0, 16, 0, 0, 0, 0, 0, 8, '', '', '', 'er', 0, 'N', 'N', 13, 'Y'),
(20, 687, 'X2003', 2, '2025-11-01', 0, 0, 16, 0, 0, 0, 0, 0, 8, '', '', '', 'ewr', 0, 'N', 'N', 14, 'Y'),
(21, 687, 'X2004', 2, '2025-11-01', 0, 0, 16, 0, 0, 0, 0, 0, 8, '', '', '', 'wer', 0, 'N', 'N', 5, 'Y'),
(22, 685, 'A2001', 2, '2025-11-25', 0, 0, 11, 0, 0, 0, 0, 0, 7, '', '', '', '', 0, 'N', 'N', 14, 'Y'),
(23, 685, 'A2006', 2, '2025-11-25', 0, 0, 11, 0, 0, 0, 0, 0, 7, '', '', '', '', 0, 'N', 'N', 13, 'Y'),
(24, 687, 'X2003', 2, '2025-11-25', 0, 0, 11, 0, 0, 0, 0, 0, 7, '', '', '', '', 0, 'N', 'N', 14, 'Y'),
(25, 687, 'X2004', 2, '2025-11-25', 0, 0, 11, 0, 0, 0, 0, 0, 7, '', '', '', '', 0, 'N', 'N', 5, 'Y'),
(27, 687, 'Z12', 2, '2025-10-30', 0, 0, 12, 0, 0, 0, 0, 0, 6, '', '', '', '', 0, 'N', 'N', 10, 'Y'),
(110, 688, 'AB028', 2, '0000-00-00', 0, 0, 1, 0, 0, 29, 0, 0, 30, '', '', '', '', 0, 'N', 'N', 18, 'N'),
(109, 689, 'Y2004', 2, '0000-00-00', 0, 0, 1, 0, 0, 28, 0, 0, 29, '', '', '', '', 0, 'N', 'N', 18, 'N'),
(94, 687, 'X2003', 2, '2025-11-25', 0, 0, 1, 0, 0, 0, 0, 0, 18, '', '', '', '', 0, 'N', 'N', 0, 'Y'),
(95, 685, 'A2006', 2, '2025-11-25', 0, 0, 1, 0, 0, 0, 0, 0, 18, '', '', '', '', 0, 'N', 'N', 0, 'Y'),
(84, 687, 'X2004', 2, '2025-11-14', 0, 0, 11, 0, 0, 0, 0, 0, 16, '', '', '', '', 0, 'N', 'N', 5, 'Y'),
(83, 687, 'X2003', 2, '2025-11-14', 0, 0, 11, 0, 0, 0, 0, 0, 16, '', '', '', '', 0, 'N', 'N', 14, 'Y'),
(82, 685, 'A2006', 2, '2025-11-14', 0, 0, 11, 0, 0, 0, 0, 0, 16, '', '', '', '', 0, 'N', 'N', 13, 'Y'),
(81, 685, 'A2001', 2, '2025-11-14', 0, 0, 11, 0, 0, 0, 0, 0, 16, '', '', '', '', 0, 'N', 'N', 14, 'Y'),
(39, 685, 'A2001', 2, '2025-11-25', 0, 0, 0, 0, 0, 0, 0, 0, 9, '', '', '', '', 0, 'N', 'N', 14, 'Y'),
(40, 685, 'A2006', 2, '2025-11-25', 0, 0, 0, 0, 0, 0, 0, 0, 9, '', '', '', '', 0, 'N', 'N', 13, 'Y'),
(41, 687, 'X2003', 2, '2025-11-25', 0, 0, 0, 0, 0, 0, 0, 0, 9, '', '', '', '', 0, 'N', 'N', 14, 'Y'),
(42, 687, 'X2004', 2, '2025-11-25', 0, 0, 0, 0, 0, 0, 0, 0, 9, '', '', '', '', 0, 'N', 'N', 5, 'Y'),
(108, 689, 'Y2001', 2, '0000-00-00', 0, 0, 1, 0, 0, 27, 0, 0, 29, '', '', '', '', 0, 'N', 'N', 17, 'N'),
(107, 688, 'AB005', 2, '0000-00-00', 0, 0, 1, 0, 0, 26, 0, 0, 28, '', '', '', '', 0, 'N', 'N', 14, 'Y'),
(93, 687, 'X2004', 2, '2025-11-25', 0, 0, 1, 0, 0, 0, 0, 0, 18, '', '', '', '', 0, 'N', 'N', 0, 'Y'),
(89, 685, 'A2001', 2, '2025-11-25', 0, 0, 11, 0, 0, 0, 0, 0, 17, '', '', '', 'wew', 0, 'N', 'N', 14, 'Y'),
(90, 685, 'A2006', 2, '2025-11-25', 0, 0, 11, 0, 0, 0, 0, 0, 17, '', '', '', 'ewwqe', 0, 'N', 'N', 13, 'Y'),
(91, 687, 'X2003', 2, '2025-11-25', 0, 0, 11, 0, 0, 0, 0, 0, 17, '', '', '', 'weqw', 0, 'N', 'N', 14, 'Y'),
(92, 687, 'X2004', 2, '2025-11-25', 0, 0, 11, 0, 0, 0, 0, 0, 17, '', '', '', 'weqwe', 0, 'N', 'N', 5, 'Y'),
(96, 685, 'A2001', 2, '2025-11-25', 0, 0, 1, 0, 0, 0, 0, 0, 18, '', '', '', '', 0, 'N', 'N', 0, 'Y'),
(97, 687, 'X2004', 3, '2025-11-25', 0, 0, 1, 0, 0, 0, 0, 0, 19, '', '', '', 'Maintance', 0, 'N', 'N', 5, 'N'),
(98, 687, 'X2003', 3, '2025-11-25', 0, 0, 1, 0, 0, 0, 0, 0, 19, '', '', '', 'Maintance Work', 0, 'N', 'N', 14, 'N'),
(99, 685, 'A2006', 3, '2025-11-25', 0, 0, 1, 0, 0, 0, 0, 0, 19, '', '', '', '', 0, 'N', 'N', 13, 'N'),
(100, 685, 'A2001', 3, '2025-11-25', 0, 0, 1, 0, 0, 0, 0, 0, 19, '', '', '', '', 0, 'N', 'N', 14, 'N'),
(101, 0, 'X2005', 2, '0000-00-00', 0, 0, 1, 0, 0, 20, 0, 0, 24, '', '', '', '', 0, 'N', 'N', 14, 'N'),
(102, 0, 'Z13', 2, '0000-00-00', 0, 0, 1, 0, 0, 21, 0, 0, 25, '', '', '', '', 0, 'N', 'N', 8, 'N'),
(103, 0, 'X2002', 2, '0000-00-00', 0, 0, 1, 0, 0, 22, 0, 0, 25, '', '', '', '', 0, 'N', 'N', 7, 'N'),
(104, 686, 'Z11', 2, '0000-00-00', 0, 0, 1, 0, 0, 23, 0, 0, 26, '', '', '', '', 0, 'N', 'N', 7, 'N'),
(105, 686, 'Z14', 2, '0000-00-00', 0, 0, 1, 0, 0, 24, 0, 0, 27, '', '', '', '', 0, 'N', 'N', 7, 'N'),
(106, 686, 'Z15', 2, '0000-00-00', 0, 0, 1, 0, 0, 25, 0, 0, 27, '', '', '', '', 0, 'N', 'N', 8, 'N'),
(111, 690, 'CMA001', 2, '0000-00-00', 0, 0, 1, 0, 0, 30, 0, 0, 31, '', '', '', '', 0, 'N', 'N', 19, 'N'),
(112, 691, 'CMB012', 2, '0000-00-00', 0, 0, 1, 0, 0, 31, 0, 0, 31, '', '', '', '', 0, 'N', 'N', 21, 'N'),
(113, 690, 'CMA003', 2, '0000-00-00', 0, 0, 1, 0, 0, 32, 0, 0, 32, '', '', '', '', 0, 'N', 'N', 10, 'N'),
(114, 691, 'CMB013', 2, '0000-00-00', 0, 0, 1, 0, 0, 33, 0, 0, 32, '', '', '', '', 0, 'N', 'N', 9, 'N'),
(115, 690, 'CMA004', 2, '0000-00-00', 0, 0, 1, 0, 0, 34, 0, 0, 33, '', '', '', '', 0, 'N', 'N', 23, 'N'),
(116, 691, 'CMB015', 2, '0000-00-00', 0, 0, 1, 0, 0, 35, 0, 0, 33, '', '', '', '', 0, 'N', 'N', 22, 'N'),
(117, 685, 'A2009', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 7, 'N'),
(118, 685, 'A2010', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 8, 'N'),
(119, 685, 'A2011', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 6, 'N'),
(120, 685, 'A2012', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 11, 'N'),
(121, 683, 'P0001', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 11, 'N'),
(122, 687, 'X2001', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 9, 'N'),
(123, 687, 'Z12', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 10, 'N'),
(124, 0, 'Z13', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 8, 'N'),
(125, 0, 'X2002', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 7, 'N'),
(126, 686, 'Z11', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 7, 'N'),
(127, 686, 'Z14', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 7, 'N'),
(128, 686, 'Z15', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 8, 'N'),
(129, 690, 'CMA003', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 10, 'N'),
(130, 691, 'CMB013', 3, '2025-11-05', 0, 0, 3, 0, 0, 0, 0, 0, 34, '', '', '', '', 0, 'N', 'N', 9, 'N'),
(131, 690, 'CMA003', 2, '2025-11-05', 0, 0, 1, 1, 0, 0, 0, 0, 35, '', '', '', '', 0, 'N', 'N', 10, 'Y'),
(132, 691, 'CMB013', 3, '2025-11-05', 0, 0, 1, 1, 0, 0, 0, 0, 35, '', '', '', '', 0, 'N', 'N', 9, 'N'),
(133, 688, 'AB005', 2, '2025-11-05', 0, 0, 1, 1, 0, 0, 0, 0, 36, '', '', '', '', 0, 'N', 'N', 14, 'Y'),
(134, 688, 'AB028', 3, '2025-11-05', 0, 0, 1, 1, 0, 0, 0, 0, 37, '', '', '', '', 0, 'N', 'N', 18, 'N'),
(135, 690, 'CMA004', 3, '2025-11-05', 0, 0, 1, 0, 0, 0, 0, 0, 38, '', '', '', '', 0, 'N', 'N', 23, 'N'),
(136, 691, 'CMB015', 3, '2025-11-05', 0, 0, 4, 0, 0, 0, 0, 0, 38, '', '', '', '', 0, 'N', 'N', 22, 'N'),
(137, 689, 'Y2002', 2, '0000-00-00', 0, 0, 2, 0, 0, 36, 0, 0, 39, '', '', '', '', 0, 'N', 'N', 19, 'N'),
(138, 689, 'Y2003', 2, '0000-00-00', 0, 0, 2, 0, 0, 37, 0, 0, 39, '', '', '', '', 0, 'N', 'N', 24, 'N'),
(144, 686, 'Z18', 2, '0000-00-00', 0, 0, 2, 0, 0, 38, 0, 0, 42, '', '', '', '', 0, 'N', 'N', 14, 'N'),
(141, 689, 'Y2002', 2, '2025-11-06', 0, 0, 3, 0, 0, 0, 0, 0, 40, '', '', '', '', 0, 'N', 'N', 19, 'Y'),
(143, 689, 'Y2002', 3, '2025-11-06', 0, 0, 1, 1, 0, 0, 0, 0, 41, '', '', '', '', 0, 'N', 'N', 19, 'N'),
(145, 686, 'Z16', 2, '0000-00-00', 0, 0, 2, 0, 0, 39, 0, 0, 43, '', '', '', '', 0, 'N', 'N', 5, 'N'),
(146, 691, 'CMB019', 2, '0000-00-00', 0, 0, 2, 0, 0, 40, 0, 0, 44, '', '', '', '', 0, 'N', 'N', 30, 'N'),
(147, 690, 'CMA008', 2, '0000-00-00', 0, 0, 2, 0, 0, 41, 0, 0, 44, '', '', '', '', 0, 'N', 'N', 31, 'N'),
(148, 694, 'CMC0011', 2, '0000-00-00', 0, 0, 2, 0, 0, 42, 0, 0, 45, '', '', '', '', 0, 'N', 'N', 34, 'N'),
(149, 695, 'CMD0005', 2, '0000-00-00', 0, 0, 2, 0, 0, 43, 0, 0, 45, '', '', '', '', 0, 'N', 'N', 33, 'N'),
(150, 694, 'CMC0012', 2, '0000-00-00', 0, 0, 2, 0, 0, 44, 0, 0, 46, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(151, 687, 'X2007', 2, '0000-00-00', 0, 0, 2, 0, 0, 45, 0, 0, 47, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(152, 690, 'CMA005', 2, '0000-00-00', 0, 0, 2, 0, 0, 46, 0, 0, 48, '', '', '', '', 0, 'N', 'N', 23, 'N'),
(153, 690, 'CMA009', 2, '0000-00-00', 0, 0, 2, 0, 0, 47, 0, 0, 49, '', '', '', '', 0, 'N', 'N', 22, 'N'),
(154, 691, 'CMB018', 2, '0000-00-00', 0, 0, 2, 0, 0, 48, 0, 0, 49, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(155, 690, 'CMA006', 2, '0000-00-00', 0, 0, 2, 0, 0, 49, 0, 0, 50, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(156, 690, 'CMA002', 2, '0000-00-00', 0, 0, 2, 0, 0, 50, 0, 0, 51, '', '', '', '', 0, 'N', 'N', 23, 'N'),
(157, 685, 'A2001', 3, '2025-11-07', 0, 0, 2, 0, 0, 0, 0, 0, 52, '', '', '', '', 0, 'N', 'N', 14, 'N'),
(158, 685, 'A2006', 3, '2025-11-07', 0, 0, 2, 0, 0, 0, 0, 0, 52, '', '', '', '', 0, 'N', 'N', 13, 'N'),
(159, 687, 'X2004', 3, '2025-11-07', 0, 0, 2, 0, 0, 0, 0, 0, 52, '', '', '', '', 0, 'N', 'N', 5, 'N'),
(160, 686, 'Z18', 3, '2025-11-07', 0, 0, 2, 0, 0, 0, 0, 0, 52, '', '', '', '', 0, 'N', 'N', 14, 'N'),
(161, 686, 'Z16', 3, '2025-11-07', 0, 0, 2, 0, 0, 0, 0, 0, 52, '', '', '', '', 0, 'N', 'N', 5, 'N'),
(162, 690, 'CMA001', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 53, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(163, 691, 'CMB012', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 53, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(164, 690, 'CMA004', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 53, '', '', '', '', 0, 'N', 'N', 23, 'N'),
(165, 691, 'CMB015', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 53, '', '', '', '', 0, 'N', 'N', 22, 'N'),
(166, 689, 'Y2002', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 53, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(167, 689, 'Y2003', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 53, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(168, 694, 'CMC0012', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 53, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(170, 690, 'CMA009', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 53, '', '', '', '', 0, 'N', 'N', 22, 'N'),
(171, 691, 'CMB018', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 53, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(174, 690, 'CMA001', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 54, '', '', '', 'test', 0, 'N', 'N', 23, 'N'),
(173, 690, 'CMA002', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 53, '', '', '', '', 0, 'N', 'N', 23, 'N'),
(175, 691, 'CMB012', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 54, '', '', '', '', 0, 'N', 'N', 23, 'N'),
(176, 690, 'CMA004', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 54, '', '', '', '', 0, 'N', 'N', 23, 'N'),
(177, 691, 'CMB015', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 54, '', '', '', '', 0, 'N', 'N', 22, 'N'),
(178, 689, 'Y2003', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 54, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(179, 694, 'CMC0012', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 54, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(180, 690, 'CMA005', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 54, '', '', '', '', 0, 'N', 'N', 23, 'N'),
(181, 690, 'CMA009', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 54, '', '', '', '', 0, 'N', 'N', 22, 'N'),
(182, 691, 'CMB018', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 54, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(183, 690, 'CMA006', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 54, '', '', '', '', 0, 'N', 'N', 0, 'N'),
(184, 694, 'CMC0011', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 55, '', '', '', '', 0, 'N', 'N', 34, 'N'),
(185, 695, 'CMD0005', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 55, '', '', '', '', 0, 'N', 'N', 33, 'N'),
(186, 685, 'A2001', 3, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 56, '', '', '', 'one', 0, 'N', 'N', 14, 'N'),
(187, 686, 'Z18', 2, '2025-11-07', 0, 0, 0, 0, 0, 0, 0, 0, 56, '', '', '', 'Two', 0, 'N', 'N', 14, 'Y'),
(188, 685, 'A2001', 2, '2025-11-07', 0, 84, 0, 0, 0, 0, 0, 0, 57, '', '', '', 'fill', 0, 'N', 'N', 14, 'Y'),
(189, 687, 'X2004', 2, '2025-11-07', 0, 69, 0, 0, 0, 0, 0, 0, 57, '', '', '', 'Fill', 0, 'N', 'N', 5, 'Y'),
(190, 685, 'A2001', 2, '2025-11-07', 0, 219, 0, 0, 0, 0, 0, 0, 58, '', '', '', '', 0, 'N', 'N', 14, 'Y'),
(191, 700, 'DBAC0028', 2, '0000-00-00', 0, 0, 2, 0, 0, 112, 0, 0, 59, '', '', '', '', 0, 'N', 'N', 23, 'N'),
(192, 700, 'DBAC0030', 2, '0000-00-00', 0, 0, 2, 0, 0, 113, 0, 0, 60, '', '', '', '', 0, 'N', 'N', 22, 'N'),
(193, 698, 'ABCD0002', 2, '0000-00-00', 0, 0, 2, 0, 0, 114, 0, 0, 61, '', '', '', '', 0, 'N', 'N', 22, 'N'),
(194, 699, 'DCBA0011', 2, '0000-00-00', 0, 0, 2, 0, 0, 115, 0, 0, 61, '', '', '', '', 0, 'N', 'N', 25, 'N'),
(195, 699, 'DCBA0012', 2, '0000-00-00', 0, 0, 2, 0, 0, 116, 0, 0, 62, '', '', '', '', 0, 'N', 'N', 31, 'N'),
(196, 700, 'DBAC0021', 2, '0000-00-00', 0, 0, 2, 0, 0, 117, 0, 0, 62, '', '', '', '', 0, 'N', 'N', 32, 'N'),
(197, 699, 'DCBA0013', 2, '0000-00-00', 0, 0, 2, 0, 0, 118, 0, 0, 62, '', '', '', '', 0, 'N', 'N', 30, 'N'),
(198, 699, 'DCBA0014', 2, '0000-00-00', 0, 0, 2, 0, 0, 119, 0, 0, 62, '', '', '', '', 0, 'N', 'N', 31, 'N');

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

--
-- Table structure for table `erp_sales_target_master`
--

CREATE TABLE `erp_sales_target_master` (
  `id` int(11) NOT NULL,
  `target_name` varchar(255) NOT NULL,
  `activity_id` int(11) NOT NULL,
  `is_active` enum('Y','N') NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_sale_repair_request`
--

CREATE TABLE `erp_sale_repair_request` (
  `id` int(11) NOT NULL,
  `type_id` int(11) NOT NULL COMMENT '1=> repair, 2 => schedule',
  `customer_id` int(11) NOT NULL,
  `service_id` int(11) NOT NULL,
  `customer_shipping_id` int(11) NOT NULL,
  `location_id` int(11) NOT NULL,
  `request_date` date NOT NULL,
  `schedule_date` date NOT NULL,
  `status_id` int(11) NOT NULL COMMENT '3 => Pending 2=> completed, 4 => Partally Completed',
  `completed_date` date NOT NULL,
  `complete_remark` varchar(500) NOT NULL,
  `assigned_id` int(11) NOT NULL,
  `remark` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `sign` varchar(256) NOT NULL,
  `sign_person` varchar(256) NOT NULL,
  `sign_authority` varchar(100) NOT NULL,
  `submit_invoice` enum('Y','N') NOT NULL DEFAULT 'Y',
  `technician_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `start_time` datetime NOT NULL,
  `end_time` datetime NOT NULL,
  `permission_denied` enum('Y','N') NOT NULL DEFAULT 'N',
  `is_Visited` enum('N','Y') NOT NULL DEFAULT 'N',
  `is_completed` enum('Y','N') NOT NULL DEFAULT 'N',
  `remaining_ressigned` enum('N','Y') NOT NULL,
  `schedule_status` enum('S','M','C','N') NOT NULL DEFAULT 'N' COMMENT 'S-scheduled,M-maintanance,C-completed,N-nothng',
  `copy_id` int(11) NOT NULL,
  `flag_type` int(11) NOT NULL,
  `completed_by` int(11) NOT NULL,
  `completed_date_time` datetime NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `request_from` enum('MI','O') NOT NULL DEFAULT 'O' COMMENT 'MI => Machine Isse , O=> Other'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_sale_repair_request`
--

INSERT INTO `erp_sale_repair_request` (`id`, `type_id`, `customer_id`, `service_id`, `customer_shipping_id`, `location_id`, `request_date`, `schedule_date`, `status_id`, `completed_date`, `complete_remark`, `assigned_id`, `remark`, `created_by`, `sign`, `sign_person`, `sign_authority`, `submit_invoice`, `technician_status`, `start_time`, `end_time`, `permission_denied`, `is_Visited`, `is_completed`, `remaining_ressigned`, `schedule_status`, `copy_id`, `flag_type`, `completed_by`, `completed_date_time`, `created_date_time`, `updated_by`, `updated_date_time`, `request_from`) VALUES
(1, 2, 1097, 2, 4, 0, '2025-10-30', '2025-10-30', 2, '2025-10-30', '', 13, '', 1, '12636_signature.jpg', 'Bluesky', '', 'Y', 'N', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', 'Y', 'N', 'N', 'M', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'MI'),
(2, 2, 1099, 2, 1, 0, '2025-10-30', '2025-10-30', 2, '2025-11-07', '', 9, '', 1, '12636_signature.jpg', 'Bluesky', '', 'Y', 'N', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', 'Y', 'Y', 'N', 'M', 0, 0, 1, '2025-11-07 17:28:17', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'MI'),
(3, 2, 1097, 2, 6, 0, '2025-10-30', '2025-10-30', 2, '2025-10-30', '', 5, '', 1, '12636_signature.jpg', 'Bluesky', '', 'Y', 'Y', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-10-30 17:23:45', 0, '0000-00-00 00:00:00', 'MI'),
(4, 2, 1099, 2, 1, 0, '2025-10-31', '2025-10-31', 2, '2025-10-31', '', 9, '', 1, '12636_signature.jpg', 'Bluesky', '', 'Y', 'Y', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-10-31 10:31:02', 0, '0000-00-00 00:00:00', 'MI'),
(5, 2, 1099, 2, 1, 0, '2025-10-31', '2025-10-31', 2, '2025-10-31', '', 9, '', 1, '12636_signature.jpg', 'Bluesky', '', 'Y', 'Y', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-10-31 10:32:11', 0, '0000-00-00 00:00:00', 'MI'),
(6, 2, 1097, 2, 4, 0, '2025-10-31', '2025-10-30', 2, '2025-10-31', '', 5, 'Schedule Maintanance', 1, '12636_signature.jpg', 'Bluesky', '', 'N', 'N', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', 'Y', 'N', 'N', 'M', 3, 1, 0, '0000-00-00 00:00:00', '2025-10-31 12:41:29', 0, '0000-00-00 00:00:00', 'MI'),
(7, 2, 1099, 2, 1, 0, '2025-10-31', '2025-11-25', 2, '2025-10-31', '', 9, 'Schedule Maintanance', 1, '12636_signature.jpg', 'Bluesky', '', 'N', 'N', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', 'Y', 'N', 'N', 'M', 5, 1, 0, '0000-00-00 00:00:00', '2025-10-31 12:42:39', 0, '0000-00-00 00:00:00', 'MI'),
(8, 2, 1099, 2, 1, 0, '2025-10-31', '2025-11-01', 2, '2025-10-31', '', 9, '', 1, '12636_signature.jpg', 'Bluesky', '', 'Y', 'N', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', 'Y', 'N', 'N', 'M', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'MI'),
(9, 2, 1099, 2, 1, 0, '2025-10-31', '2025-11-25', 2, '2025-10-31', '', 9, 'Schedule Maintanance', 1, '12636_signature.jpg', 'Bluesky', '', 'N', 'N', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', 'Y', 'N', 'N', 'M', 8, 1, 0, '0000-00-00 00:00:00', '2025-10-31 13:24:06', 0, '0000-00-00 00:00:00', 'MI'),
(16, 2, 1099, 2, 1, 0, '2025-10-31', '2025-11-14', 2, '2025-10-31', '', 9, '', 1, '12636_signature.jpg', 'Bluesky', '', 'Y', 'N', '0000-00-00 00:00:00', '2025-10-31 15:07:44', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'MI'),
(17, 2, 1099, 2, 1, 0, '2025-10-31', '2025-11-25', 2, '2025-10-31', '', 9, 'Schedule Maintanance', 1, '12636_signature.jpg', 'Bluesky', '', 'N', 'N', '0000-00-00 00:00:00', '2025-10-31 15:17:10', 'N', 'Y', 'N', 'N', 'C', 0, 1, 0, '0000-00-00 00:00:00', '2025-10-31 15:07:51', 0, '0000-00-00 00:00:00', 'MI'),
(18, 2, 1099, 2, 1, 0, '2025-10-31', '2025-11-25', 2, '2025-10-31', '', 13, 'Schedule Maintanance', 1, '12636_signature.jpg', 'Bluesky', '', 'N', 'N', '0000-00-00 00:00:00', '2025-10-31 15:26:55', 'N', 'Y', 'N', 'N', 'C', 0, 1, 0, '0000-00-00 00:00:00', '2025-10-31 15:17:21', 0, '0000-00-00 00:00:00', 'MI'),
(19, 2, 1099, 2, 1, 0, '2025-10-31', '2025-11-25', 2, '2025-11-07', '', 9, 'Schedule Maintanance', 1, '12636_signature.jpg', 'Bluesky', '', 'N', 'N', '2025-11-03 08:52:30', '0000-00-00 00:00:00', 'N', 'Y', 'Y', 'N', 'M', 16, 1, 1, '2025-11-07 17:30:34', '2025-10-31 15:27:10', 0, '0000-00-00 00:00:00', 'MI'),
(20, 2, 1099, 2, 1, 0, '2025-11-04', '2025-11-04', 2, '2025-11-04', '', 9, '', 1, '', '', '', 'Y', 'Y', '2025-11-04 12:02:18', '2025-11-04 12:02:18', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-04 12:02:18', 0, '0000-00-00 00:00:00', 'MI'),
(21, 2, 1099, 2, 1, 0, '2025-11-04', '2025-11-04', 2, '2025-11-04', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-04 12:05:48', '2025-11-04 12:05:48', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-04 12:05:48', 0, '0000-00-00 00:00:00', 'MI'),
(22, 2, 1099, 2, 1, 0, '2025-11-04', '2025-11-04', 2, '2025-11-04', '', 9, '', 1, '', '', '', 'Y', 'Y', '2025-11-04 12:11:06', '2025-11-04 12:11:06', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-04 12:11:06', 0, '0000-00-00 00:00:00', 'MI'),
(23, 2, 1099, 2, 1, 0, '2025-11-04', '2025-11-04', 2, '2025-11-04', '', 9, '', 1, '', '', '', 'Y', 'Y', '2025-11-04 12:13:39', '2025-11-04 12:13:39', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-04 12:13:39', 0, '0000-00-00 00:00:00', 'MI'),
(24, 2, 1099, 2, 1, 0, '2025-11-04', '2025-11-04', 2, '2025-11-04', '', 9, '', 1, '', '', '', 'Y', 'Y', '2025-11-04 12:20:41', '2025-11-04 12:20:41', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-04 12:20:41', 0, '0000-00-00 00:00:00', 'MI'),
(25, 2, 1097, 2, 4, 0, '2025-11-04', '2025-11-04', 2, '2025-11-04', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-04 14:39:16', '2025-11-04 14:39:16', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-04 14:39:16', 0, '0000-00-00 00:00:00', 'MI'),
(26, 2, 1097, 2, 4, 0, '2025-11-04', '2025-11-04', 2, '2025-11-04', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-04 15:15:27', '2025-11-04 15:15:27', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-04 15:15:27', 0, '0000-00-00 00:00:00', 'MI'),
(27, 2, 1097, 2, 4, 0, '2025-11-04', '2025-11-04', 2, '2025-11-04', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-04 16:01:09', '2025-11-04 16:01:09', 'N', 'N', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-04 16:01:09', 0, '0000-00-00 00:00:00', 'MI'),
(28, 2, 1099, 2, 1, 0, '2025-11-04', '2025-11-04', 2, '2025-11-05', '', 7, '', 1, '', '', '', 'Y', 'Y', '2025-11-04 23:46:18', '2025-11-05 08:20:13', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-04 23:46:18', 0, '0000-00-00 00:00:00', 'MI'),
(29, 2, 1098, 2, 9, 0, '2025-11-05', '2025-11-05', 2, '2025-11-05', '', 4, '', 1, '', '', '', 'Y', 'Y', '2025-11-05 08:58:39', '2025-11-05 08:58:39', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-05 08:58:39', 0, '0000-00-00 00:00:00', 'MI'),
(30, 2, 1098, 2, 9, 0, '2025-11-05', '2025-11-05', 2, '2025-11-05', '', 7, '', 1, '', '', '', 'Y', 'Y', '2025-11-05 09:30:01', '2025-11-05 09:30:01', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-05 09:30:01', 0, '0000-00-00 00:00:00', 'MI'),
(31, 2, 1102, 2, 12, 0, '2025-11-05', '2025-11-05', 2, '2025-11-05', '', 14, '', 1, '', '', '', 'Y', 'Y', '2025-11-05 10:39:07', '2025-11-05 10:39:07', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-05 10:39:07', 0, '0000-00-00 00:00:00', 'MI'),
(32, 2, 1097, 2, 6, 0, '2025-11-05', '2025-11-05', 2, '2025-11-05', '', 14, '', 1, '', '', '', 'Y', 'Y', '2025-11-05 11:16:26', '2025-11-05 11:16:26', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-05 11:16:26', 0, '0000-00-00 00:00:00', 'MI'),
(33, 2, 1102, 2, 11, 0, '2025-11-05', '2025-11-05', 2, '2025-11-05', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-05 13:42:09', '2025-11-05 13:42:09', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-05 13:42:09', 0, '0000-00-00 00:00:00', 'MI'),
(34, 2, 1097, 2, 4, 0, '2025-11-05', '2025-11-05', 2, '2025-11-07', '', 5, '', 1, '', '', '', 'Y', 'N', '2025-11-05 17:19:45', '0000-00-00 00:00:00', 'N', 'Y', 'Y', 'N', 'M', 0, 0, 1, '2025-11-07 17:27:54', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'MI'),
(35, 2, 1097, 2, 6, 0, '2025-11-05', '2025-11-05', 1, '0000-00-00', '', 0, 'Schedule Maintanance', 1, '', '', '', 'N', 'N', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', 'N', 'N', 'N', 'S', 32, 1, 0, '0000-00-00 00:00:00', '2025-11-05 23:05:46', 0, '0000-00-00 00:00:00', 'MI'),
(36, 2, 1099, 2, 1, 0, '2025-11-05', '2025-11-30', 2, '2025-11-06', '', 0, 'Schedule Maintanance', 1, '', '', '', 'N', 'N', '0000-00-00 00:00:00', '2025-11-06 14:17:12', 'N', 'Y', 'N', 'N', 'C', 0, 1, 0, '0000-00-00 00:00:00', '2025-11-05 23:05:46', 0, '0000-00-00 00:00:00', 'MI'),
(37, 2, 1098, 2, 9, 0, '2025-11-05', '2025-11-05', 2, '2025-11-07', '', 0, 'Schedule Maintanance', 1, '', '', '', 'N', 'N', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', 'Y', 'Y', 'N', 'S', 30, 1, 1, '2025-11-07 17:30:26', '2025-11-05 23:05:46', 0, '0000-00-00 00:00:00', 'MI'),
(38, 2, 1102, 2, 11, 0, '2025-11-05', '2025-11-05', 2, '2025-11-07', '', 4, 'Schedule Maintanance', 1, '', '', '', 'N', 'N', '2025-11-05 23:20:08', '0000-00-00 00:00:00', 'N', 'Y', 'Y', 'N', 'M', 33, 1, 1, '2025-11-07 17:24:47', '2025-11-05 23:05:46', 0, '0000-00-00 00:00:00', 'MI'),
(39, 2, 1102, 2, 12, 0, '2025-11-06', '2025-11-06', 2, '2025-11-06', '', 14, '', 1, '', '', '', 'Y', 'Y', '2025-11-06 13:47:48', '2025-11-06 13:47:48', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-06 13:47:48', 0, '0000-00-00 00:00:00', 'MI'),
(40, 2, 1102, 2, 12, 0, '2025-11-06', '2025-11-06', 2, '2025-11-06', '', 14, '', 1, '', '', '', 'Y', 'N', '2025-11-06 13:52:24', '2025-11-06 13:53:54', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'MI'),
(41, 2, 1102, 2, 12, 0, '2025-11-06', '2025-11-06', 2, '2025-11-07', '', 0, 'Schedule Maintanance', 1, '', '', '', 'N', 'N', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'N', 'Y', 'Y', 'N', 'S', 40, 1, 1, '2025-11-07 17:30:10', '2025-11-06 13:55:34', 0, '0000-00-00 00:00:00', 'MI'),
(42, 2, 1099, 2, 1, 0, '2025-11-06', '2025-11-06', 2, '2025-11-06', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-06 16:19:16', '2025-11-06 16:19:16', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-06 16:19:16', 0, '0000-00-00 00:00:00', 'MI'),
(43, 2, 1099, 2, 1, 0, '2025-11-06', '2025-11-06', 2, '2025-11-06', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-06 16:20:43', '2025-11-06 16:20:43', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-06 16:20:43', 0, '0000-00-00 00:00:00', 'MI'),
(44, 2, 1089, 2, 28, 0, '2025-11-06', '2025-11-06', 2, '2025-11-06', '', 4, '', 1, '', '', '', 'Y', 'Y', '2025-11-06 17:11:49', '2025-11-06 17:11:49', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-06 17:11:49', 0, '0000-00-00 00:00:00', 'MI'),
(45, 2, 1097, 2, 7, 0, '2025-11-06', '2025-11-06', 2, '2025-11-06', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-06 18:50:17', '2025-11-06 18:50:17', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-06 18:50:17', 0, '0000-00-00 00:00:00', 'MI'),
(46, 2, 1102, 2, 12, 0, '2025-11-07', '2025-11-07', 2, '2025-11-07', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-07 08:48:26', '2025-11-07 08:48:26', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-07 08:48:26', 0, '0000-00-00 00:00:00', 'MI'),
(47, 2, 1089, 2, 27, 0, '2025-11-07', '2025-11-07', 2, '2025-11-07', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-07 08:53:35', '2025-11-07 08:53:35', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-07 08:53:35', 0, '0000-00-00 00:00:00', 'MI'),
(48, 2, 1102, 2, 11, 0, '2025-11-07', '2025-11-07', 2, '2025-11-07', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-07 09:06:32', '2025-11-07 09:06:32', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-07 09:06:32', 0, '0000-00-00 00:00:00', 'MI'),
(49, 2, 1102, 2, 11, 0, '2025-11-07', '2025-11-07', 2, '2025-11-07', '', 4, '', 1, '', '', '', 'Y', 'Y', '2025-11-07 09:26:19', '2025-11-07 09:26:19', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-07 09:26:19', 0, '0000-00-00 00:00:00', 'MI'),
(50, 2, 1102, 2, 11, 0, '2025-11-07', '2025-11-07', 2, '2025-11-07', '', 4, '', 1, '', '', '', 'Y', 'Y', '2025-11-07 10:35:06', '2025-11-07 10:35:06', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-07 10:35:06', 0, '0000-00-00 00:00:00', 'MI'),
(51, 2, 1102, 2, 11, 0, '2025-11-07', '2025-11-07', 2, '2025-11-07', '', 14, '', 1, '', '', '', 'Y', 'Y', '2025-11-07 10:56:14', '2025-11-07 10:56:14', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-07 10:56:14', 0, '0000-00-00 00:00:00', 'MI'),
(52, 2, 1099, 1, 1, 0, '2025-11-07', '2025-11-07', 2, '2025-11-07', '', 5, '', 1, '', '', '', 'Y', 'N', '2025-11-07 11:08:50', '0000-00-00 00:00:00', 'N', 'Y', 'Y', 'N', 'M', 0, 0, 1, '2025-11-07 17:22:39', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'O'),
(53, 2, 1102, 1, 11, 0, '2025-11-07', '2025-11-07', 2, '0000-00-00', '', 5, '', 1, '', '', '', 'Y', 'N', '2025-11-07 15:57:15', '0000-00-00 00:00:00', 'N', 'Y', 'Y', 'N', 'M', 0, 0, 1, '2025-11-07 17:18:52', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'O'),
(54, 2, 1102, 1, 11, 0, '2025-11-07', '2025-11-07', 2, '0000-00-00', '', 5, '', 1, '', '', '', 'Y', 'N', '2025-11-07 16:15:36', '0000-00-00 00:00:00', 'N', 'Y', 'Y', 'N', 'M', 0, 0, 1, '2025-11-07 17:18:31', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'O'),
(55, 3, 1097, 1, 7, 0, '2025-11-07', '2025-11-07', 2, '0000-00-00', '', 8, '', 1, '', '', '', 'Y', 'N', '2025-11-07 16:23:58', '0000-00-00 00:00:00', 'N', 'Y', 'Y', 'N', 'M', 0, 0, 1, '2025-11-07 16:56:00', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'O'),
(56, 2, 1099, 3, 1, 0, '2025-11-07', '2025-11-07', 2, '2025-11-07', '', 14, '', 1, '', '', '', 'Y', 'N', '2025-11-07 16:21:48', '0000-00-00 00:00:00', 'N', 'Y', 'Y', 'N', 'M', 0, 0, 1, '2025-11-07 17:23:07', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'O'),
(57, 2, 1099, 4, 1, 0, '2025-11-07', '2025-11-07', 2, '2025-11-07', '', 9, '', 1, '', '', '', 'Y', 'N', '2025-11-07 16:30:50', '2025-11-07 17:14:44', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'O'),
(58, 2, 1099, 4, 1, 0, '2025-11-07', '2025-11-07', 2, '2025-11-07', '', 8, '', 1, '', '', '', 'Y', 'N', '2025-11-07 17:12:05', '2025-11-07 17:14:20', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 'O'),
(59, 2, 1102, 2, 11, 0, '2025-11-11', '2025-11-11', 2, '2025-11-11', '', 9, '', 1, '', '', '', 'Y', 'Y', '2025-11-11 11:24:56', '2025-11-11 11:24:56', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-11 11:24:56', 0, '0000-00-00 00:00:00', 'MI'),
(60, 2, 1102, 2, 11, 0, '2025-11-11', '2025-11-11', 2, '2025-11-11', '', 9, '', 1, '', '', '', 'Y', 'Y', '2025-11-11 13:09:53', '2025-11-11 13:09:53', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-11 13:09:53', 0, '0000-00-00 00:00:00', 'MI'),
(61, 2, 1102, 2, 11, 0, '2025-11-11', '2025-11-11', 2, '2025-11-11', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-11 14:10:55', '2025-11-11 14:10:55', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-11 14:10:55', 0, '0000-00-00 00:00:00', 'MI'),
(62, 2, 1089, 2, 28, 0, '2025-11-12', '2025-11-12', 2, '2025-11-12', '', 5, '', 1, '', '', '', 'Y', 'Y', '2025-11-12 07:52:29', '2025-11-12 07:52:29', 'N', 'Y', 'N', 'N', 'C', 0, 0, 0, '0000-00-00 00:00:00', '2025-11-12 07:52:29', 0, '0000-00-00 00:00:00', 'MI');

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

--
-- Table structure for table `erp_serialno_change_history`
--

CREATE TABLE `erp_serialno_change_history` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `change_from` enum('Y','N') NOT NULL,
  `change_to` enum('Y','N') NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_serialno_change_history_details`
--

CREATE TABLE `erp_serialno_change_history_details` (
  `id` int(11) NOT NULL,
  `history_id` int(11) NOT NULL,
  `product_location` int(11) NOT NULL,
  `stock_ledger_id` int(11) NOT NULL,
  `qty` decimal(15,2) NOT NULL,
  `action` enum('U','A') NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_service_contract_details`
--

CREATE TABLE `erp_service_contract_details` (
  `id` int(11) NOT NULL,
  `order_id` bigint(20) NOT NULL,
  `contract_start_date` date NOT NULL,
  `contract_end_date` date NOT NULL,
  `description` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_service_customer_location`
--

CREATE TABLE `erp_service_customer_location` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `customer_outlet_location_id` int(11) NOT NULL,
  `location_name` varchar(255) DEFAULT NULL,
  `is_default_location` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_service_customer_location`
--

INSERT INTO `erp_service_customer_location` (`id`, `customer_id`, `customer_outlet_location_id`, `location_name`, `is_default_location`) VALUES
(4, 1099, 3, 'lOC 1', 'Y'),
(5, 1099, 1, 'lOC2', 'N'),
(6, 1097, 4, 'Reception', 'N'),
(7, 1097, 4, 'Lobby', 'N'),
(8, 1097, 4, 'Men Washroom', 'N'),
(9, 1097, 6, 'Reception', 'N'),
(10, 1097, 6, 'Lobby', 'N'),
(11, 1097, 4, 'Women Washroom', 'N'),
(12, 1097, 7, 'Reception', 'N'),
(13, 1099, 1, 'Reception', 'N'),
(14, 1099, 1, 'LoBBY', 'N'),
(15, 1098, 10, 'Reception', 'N'),
(16, 1098, 10, 'Washroom ', 'N'),
(17, 1098, 9, 'Reception', 'N'),
(18, 1098, 9, 'Parking ', 'N'),
(19, 1102, 12, 'First Floor', 'N'),
(20, 1102, 12, 'Reception', 'N'),
(21, 1102, 12, 'Lobby', 'N'),
(22, 1102, 11, 'Reception', 'N'),
(23, 1102, 11, 'Lobby', 'N'),
(24, 1102, 12, 'Washroom', 'N'),
(25, 1102, 11, 'Washroom', 'N'),
(26, 1103, 24, 'Top Section', 'N'),
(27, 1103, 24, 'Top Sections', 'N'),
(28, 1104, 29, 'Top left', 'N'),
(29, 1105, 30, 'Duabi Up', 'N'),
(30, 1089, 28, 'First Floor', 'N'),
(31, 1089, 28, 'Lobby', 'N'),
(32, 1089, 28, 'Reception', 'N'),
(33, 1097, 7, 'Men Washroom', 'N'),
(34, 1097, 7, 'Ground Floor', 'N');

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

--
-- Table structure for table `erp_service_details`
--

CREATE TABLE `erp_service_details` (
  `id` int(11) NOT NULL,
  `service_id` int(11) NOT NULL,
  `service_notes` varchar(500) NOT NULL,
  `service_cost` float NOT NULL,
  `maintainance_master_id` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_service_details`
--

INSERT INTO `erp_service_details` (`id`, `service_id`, `service_notes`, `service_cost`, `maintainance_master_id`, `updated_by`, `updated_date_time`, `created_by`, `created_date_time`) VALUES
(21, 21, 'Need More Cooling', 200, 13, 8, '2025-09-02 09:36:39', 1, '2025-08-01 13:57:02'),
(22, 21, 'New Filter Needed', 100, 3, 8, '2025-09-02 09:36:39', 1, '2025-08-01 13:57:02'),
(23, 21, 'Vehicle not starting sometimes', 300, 7, 8, '2025-09-02 09:36:39', 1, '2025-08-01 13:57:22'),
(24, 22, 'New Filter needed', 120, 4, 1, '2025-08-04 14:51:24', 1, '2025-08-01 15:01:18'),
(25, 22, 'Suspension not working', 1500, 16, 1, '2025-08-04 14:51:24', 1, '2025-08-01 15:01:18'),
(26, 23, 'Brake Loose', 256.56, 2, 8, '2025-09-02 15:31:07', 1, '2025-08-01 15:04:31'),
(27, 23, 'Battery Low', 5600.58, 7, 8, '2025-09-02 15:31:07', 1, '2025-08-01 15:04:31'),
(28, 24, 'Low cooling', 456.5, 6, 1, '2025-08-04 14:51:11', 1, '2025-08-01 15:09:37'),
(29, 24, 'Low on Oil', 450, 1, 1, '2025-08-04 14:51:11', 1, '2025-08-01 15:09:37'),
(30, 25, 'Ac', 2500, 13, 0, '0000-00-00 00:00:00', 8, '2025-09-02 12:02:09'),
(31, 25, 'NA', 1500, 7, 0, '0000-00-00 00:00:00', 8, '2025-09-02 12:02:09'),
(32, 26, 'Test', 1000, 13, 8, '2025-09-02 13:52:37', 8, '2025-09-02 13:50:53'),
(33, 27, 'TEst', 350, 3, 0, '0000-00-00 00:00:00', 8, '2025-09-02 14:08:49'),
(34, 27, 'Test1', 500, 11, 0, '0000-00-00 00:00:00', 8, '2025-09-02 14:08:49'),
(35, 1, 'Test Ac Service', 650, 13, 0, '0000-00-00 00:00:00', 8, '2025-09-03 08:17:25'),
(36, 1, 'Test Replacement', 1000, 5, 0, '0000-00-00 00:00:00', 8, '2025-09-03 08:17:25'),
(37, 2, 'Test Replacemnt', 250, 7, 0, '0000-00-00 00:00:00', 8, '2025-09-03 08:19:06'),
(38, 2, 'Test Belt', 750, 10, 0, '0000-00-00 00:00:00', 8, '2025-09-03 08:19:06'),
(39, 3, 'Test Inspection', 300, 15, 0, '0000-00-00 00:00:00', 8, '2025-09-03 08:20:31'),
(40, 3, 'Test Oil Change', 450, 1, 0, '0000-00-00 00:00:00', 8, '2025-09-03 08:20:31'),
(41, 3, 'Test Suspension check', 280, 16, 0, '0000-00-00 00:00:00', 8, '2025-09-03 08:20:31'),
(42, 4, 'Test Wheel Balanceing', 350, 18, 0, '0000-00-00 00:00:00', 8, '2025-09-03 08:23:29'),
(43, 4, 'Test coolent Chcek', 200, 6, 0, '0000-00-00 00:00:00', 8, '2025-09-03 08:23:29'),
(44, 5, 'Test Replacement', 250, 5, 0, '0000-00-00 00:00:00', 8, '2025-09-03 08:25:15'),
(45, 5, 'Test Blade Replacement', 1500, 14, 0, '0000-00-00 00:00:00', 8, '2025-09-03 08:25:15'),
(46, 5, 'Test Belt Replacemnt', 1400, 11, 0, '0000-00-00 00:00:00', 8, '2025-09-03 08:25:15');

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

--
-- Table structure for table `erp_service_employee`
--

CREATE TABLE `erp_service_employee` (
  `id` int(11) NOT NULL,
  `employee_name` varchar(255) NOT NULL,
  `designation` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_service_schedules`
--

CREATE TABLE `erp_service_schedules` (
  `id` int(11) NOT NULL,
  `order_id` bigint(20) NOT NULL,
  `order_item_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `scheduled_date` date NOT NULL,
  `employee_ids` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `status` enum('A','C') NOT NULL COMMENT '''Active'',''Complete''',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_service_status`
--

CREATE TABLE `erp_service_status` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_service_status`
--

INSERT INTO `erp_service_status` (`id`, `name`, `isActive`) VALUES
(1, 'Working', 'N'),
(2, 'Completed', 'Y'),
(3, 'Pending', 'Y');

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

--
-- Table structure for table `erp_service_store`
--

CREATE TABLE `erp_service_store` (
  `id` int(11) NOT NULL,
  `transfer_date` date NOT NULL,
  `reference` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_service_store_details`
--

CREATE TABLE `erp_service_store_details` (
  `id` int(11) NOT NULL,
  `service_store_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL COMMENT 'primary key to crm_store',
  `part_number` varchar(255) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `unit` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_service_store_material_details`
--

CREATE TABLE `erp_service_store_material_details` (
  `id` int(11) NOT NULL,
  `service_store_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `material_receipt_id` int(11) NOT NULL,
  `material_receipt_qty` decimal(15,3) NOT NULL,
  `issued_qty` decimal(15,3) NOT NULL,
  `bill_exit` varchar(255) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `rack_id` int(11) NOT NULL,
  `bin_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_stock_count_file`
--

CREATE TABLE `erp_stock_count_file` (
  `id` int(11) NOT NULL,
  `lock_transaction_date` date NOT NULL,
  `file_name` varchar(255) NOT NULL,
  `lock_flag` enum('Y','N') NOT NULL DEFAULT 'N',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `active_stock_count` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_stock_ledger`
--

CREATE TABLE `erp_stock_ledger` (
  `id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `header_id` int(11) NOT NULL,
  `header_item_id` varchar(255) NOT NULL,
  `reference_id` int(11) NOT NULL,
  `lead_owner_id` int(11) NOT NULL,
  `outlet_id` int(11) NOT NULL,
  `location_id` int(11) NOT NULL,
  `reference_no` varchar(25) NOT NULL,
  `customer_vendor_id` int(11) NOT NULL,
  `customer_vendor_name` varchar(255) NOT NULL,
  `product_id` int(11) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `product_description` text NOT NULL,
  `brand_id` int(11) NOT NULL,
  `brand_name` varchar(255) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `warehouse_name` varchar(255) NOT NULL,
  `rack_id` int(11) NOT NULL,
  `rack_name` varchar(255) NOT NULL,
  `bin_id` int(11) NOT NULL,
  `bin_name` varchar(255) NOT NULL,
  `unit_id` int(11) NOT NULL,
  `unit_name` varchar(255) NOT NULL,
  `unit_factor` decimal(15,6) NOT NULL,
  `quantity` decimal(15,3) NOT NULL,
  `available_status` enum('A','U') NOT NULL DEFAULT 'A',
  `batch_no` varchar(255) NOT NULL,
  `batch_date` date NOT NULL,
  `serial_no` varchar(255) NOT NULL,
  `manufacturing_date` date NOT NULL,
  `expiry_date` date NOT NULL,
  `buying_price` decimal(10,6) NOT NULL DEFAULT 0.000000,
  `cost_price` decimal(15,6) NOT NULL COMMENT 'Cost / Item',
  `sales_price` decimal(15,2) NOT NULL COMMENT 'Sales/Item',
  `transaction_date` date NOT NULL,
  `transaction_from` varchar(255) NOT NULL,
  `transaction_type` enum('IN','OUT') NOT NULL,
  `master_stock_ledger_id` int(11) NOT NULL,
  `remarks` varchar(255) NOT NULL,
  `stock_updated` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_stock_ledger`
--

INSERT INTO `erp_stock_ledger` (`id`, `file_id`, `header_id`, `header_item_id`, `reference_id`, `lead_owner_id`, `outlet_id`, `location_id`, `reference_no`, `customer_vendor_id`, `customer_vendor_name`, `product_id`, `product_name`, `product_description`, `brand_id`, `brand_name`, `warehouse_id`, `warehouse_name`, `rack_id`, `rack_name`, `bin_id`, `bin_name`, `unit_id`, `unit_name`, `unit_factor`, `quantity`, `available_status`, `batch_no`, `batch_date`, `serial_no`, `manufacturing_date`, `expiry_date`, `buying_price`, `cost_price`, `sales_price`, `transaction_date`, `transaction_from`, `transaction_type`, `master_stock_ledger_id`, `remarks`, `stock_updated`, `created_by`, `created_date`) VALUES
(1, 1006, 65001, '1', 70001, 0, 0, 0, 'R1', 2001, 'Supplier One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, 100.000, 'A', '65001', '2025-12-18', '', '0000-00-00', '0000-00-00', 15.000000, 15.750000, 0.00, '2025-12-18', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-18 06:34:06'),
(2, 1006, 65001, '2', 70001, 0, 0, 0, 'R1', 2001, 'Supplier One', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, 100.000, 'A', '65001', '2025-12-18', '', '0000-00-00', '0000-00-00', 25.000000, 26.250000, 0.00, '2025-12-18', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-18 06:34:06'),
(3, 1006, 65001, '3', 70001, 0, 0, 0, 'R1', 2001, 'Supplier One', 3, 'A1003', 'A1003 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 3, 'pcs', 1.000000, 100.000, 'A', '65001', '2025-12-18', '', '0000-00-00', '0000-00-00', 35.000000, 36.750000, 0.00, '2025-12-18', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-18 06:34:06'),
(4, 0, 35001, '1', 35001, 0, 0, 0, '', 0, '', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, 2000.000, 'A', '35001', '2025-12-19', '', '0000-00-00', '0000-00-00', 26.250000, 26.250000, 0.00, '2025-12-19', 'GOODS_RECEIPT', 'IN', 0, '', 'Y', 2, '2025-12-19 08:24:01'),
(5, 1005, 30001, '', 40001, 0, 0, 0, '40001', 1001, 'Customer One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -1.000, 'U', '65001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 15.750000, 1000.00, '2025-12-19', 'DELIVERY_NOTE', 'OUT', 1, '', 'Y', 2, '2025-12-19 08:25:28'),
(6, 1005, 30001, '', 40001, 0, 0, 0, '40001', 1001, 'Customer One', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, -1000.000, 'U', '35001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 26.250000, 1000.00, '2025-12-19', 'DELIVERY_NOTE', 'OUT', 4, '', 'Y', 2, '2025-12-19 08:25:28'),
(7, 1007, 65002, '7', 70002, 0, 0, 0, '11', 2001, 'Supplier One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, 1.000, 'U', '65002', '2025-12-19', '', '0000-00-00', '0000-00-00', 15.000000, 15.893182, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 09:05:51'),
(8, 1007, 65002, '8', 70002, 0, 0, 0, '11', 2001, 'Supplier One', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, 1.000, 'U', '65002', '2025-12-19', '', '0000-00-00', '0000-00-00', 25.000000, 26.271675, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 09:05:51'),
(10, 1015, 65005, '13', 70013, 0, 0, 0, '1', 2001, 'Supplier One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, 1.000, 'U', '65005', '2025-12-19', '', '0000-00-00', '0000-00-00', 1500.000000, 859.183180, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 11:20:21'),
(11, 0, 35002, '2', 35002, 0, 0, 0, '', 1001, 'Customer One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, 2.000, 'U', 'Customer One#R11', '2025-12-19', '', '0000-00-00', '0000-00-00', 859.180000, 859.183118, 0.00, '2025-12-19', 'GOODS_RECEIPT', 'IN', 0, '', 'Y', 2, '2025-12-19 11:59:33'),
(12, 0, 35002, '3', 35002, 0, 0, 0, '', 1001, 'Customer One', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, 2.000, 'U', 'Customer One#R11', '2025-12-19', '', '0000-00-00', '0000-00-00', 26.270000, 26.271672, 0.00, '2025-12-19', 'GOODS_RECEIPT', 'IN', 0, '', 'Y', 2, '2025-12-19 11:59:33'),
(13, 0, 45002, '', 0, 0, 0, 0, '', 0, '', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -1.000, 'U', '65002', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 859.183118, 0.00, '2025-12-19', 'GOODS_ISSUE', 'OUT', 7, '', 'Y', 2, '2025-12-19 12:05:23'),
(14, 0, 45002, '', 0, 0, 0, 0, '', 0, '', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -1.000, 'U', '65005', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 859.183118, 0.00, '2025-12-19', 'GOODS_ISSUE', 'OUT', 10, '', 'Y', 2, '2025-12-19 12:05:23'),
(15, 0, 45002, '', 0, 0, 0, 0, '', 0, '', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, -2.000, 'U', 'Customer One#R11', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 26.271672, 0.00, '2025-12-19', 'GOODS_ISSUE', 'OUT', 12, '', 'Y', 2, '2025-12-19 12:05:23'),
(16, 0, 1, '', 0, 0, 0, 0, '', 0, '', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -10.000, 'U', '65001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 859.183118, 0.00, '2025-12-19', 'TRANSFER_OUT', 'OUT', 1, '', 'Y', 2, '2025-12-19 12:05:59'),
(17, 0, 1, '', 0, 0, 0, 0, '', 0, '', 1, 'A1001', 'A1001 Item', 1, 'None', 3, 'Additional Warehouse', 1, 'None', 0, '', 1, 'pcs', 1.000000, 10.000, 'A', '65001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 859.183118, 0.00, '2025-12-19', 'DIRECT_TRANSFER_IN', 'IN', 16, '', 'Y', 2, '2025-12-19 12:05:59'),
(18, 1016, 30003, '', 40002, 0, 0, 0, '40002', 1001, 'Customer One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -5.000, 'U', '65001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 859.183118, 1258.00, '2025-12-19', 'DELIVERY_NOTE', 'OUT', 1, '', 'Y', 2, '2025-12-19 13:09:03'),
(19, 1016, 30003, '', 40002, 0, 0, 0, '40002', 1001, 'Customer One', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, -5.000, 'U', '35001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 26.271672, 780.00, '2025-12-19', 'DELIVERY_NOTE', 'OUT', 4, '', 'Y', 2, '2025-12-19 13:09:03'),
(20, 1009, 30002, '', 40003, 0, 0, 0, '40003', 1002, 'Customer Two', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -1.000, 'U', '65001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 859.183118, 7250.00, '2025-12-19', 'DELIVERY_NOTE', 'OUT', 1, '', 'Y', 2, '2025-12-19 13:39:15'),
(21, 1009, 30002, '', 40003, 0, 0, 0, '40003', 1002, 'Customer Two', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, -3.000, 'U', '35001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 26.271672, 1600.00, '2025-12-19', 'DELIVERY_NOTE', 'OUT', 4, '', 'Y', 2, '2025-12-19 13:39:15'),
(22, 1008, 30004, '', 40008, 0, 0, 0, '40008', 1001, 'Customer One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -2.000, 'U', 'Customer One#R11', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 859.183118, 7250.00, '2025-12-19', 'DELIVERY_NOTE', 'OUT', 11, '', 'Y', 2, '2025-12-19 13:56:11'),
(23, 1008, 30004, '', 40008, 0, 0, 0, '40008', 1001, 'Customer One', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, -1.000, 'U', '35001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 26.271672, 1520.00, '2025-12-19', 'DELIVERY_NOTE', 'OUT', 4, '', 'Y', 2, '2025-12-19 13:56:11'),
(24, 1008, 30004, '', 40008, 0, 0, 0, '40008', 1001, 'Customer One', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, -1.000, 'U', '65002', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 26.271672, 1520.00, '2025-12-19', 'DELIVERY_NOTE', 'OUT', 8, '', 'Y', 2, '2025-12-19 13:56:11'),
(25, 1021, 65008, '23', 70015, 0, 0, 0, '324', 2003, 'Test Supplier ', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, 4.000, 'A', '65008', '2025-12-19', '', '0000-00-00', '0000-00-00', 150.000000, 830.303434, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:27:43'),
(26, 1021, 65008, '24', 70015, 0, 0, 0, '324', 2003, 'Test Supplier ', 4, 'B1001', 'B1001 RM', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 4, 'pcs', 1.000000, 1000.000, 'A', '65008', '2025-12-19', '', '0000-00-00', '0000-00-00', 10.000000, 10.590052, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:27:43'),
(27, 1026, 65009, '25', 70016, 0, 0, 0, 'R1', 2001, 'Supplier One', 9, 'D1001', 'Stock Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 9, 'pcs', 1.000000, 1.000, 'A', '65009', '2025-12-19', 'D100101', '0000-00-00', '0000-00-00', 10.000000, 18.309912, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:58:27'),
(28, 1026, 65009, '25', 70016, 0, 0, 0, 'R1', 2001, 'Supplier One', 9, 'D1001', 'Stock Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 9, 'pcs', 1.000000, 1.000, 'A', '65009', '2025-12-19', 'D100102', '0000-00-00', '0000-00-00', 10.000000, 18.309912, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:58:27'),
(29, 1026, 65009, '25', 70016, 0, 0, 0, 'R1', 2001, 'Supplier One', 9, 'D1001', 'Stock Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 9, 'pcs', 1.000000, 1.000, 'A', '65009', '2025-12-19', 'D100103', '0000-00-00', '0000-00-00', 10.000000, 18.309912, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:58:27'),
(30, 1026, 65009, '25', 70016, 0, 0, 0, 'R1', 2001, 'Supplier One', 9, 'D1001', 'Stock Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 9, 'pcs', 1.000000, 1.000, 'A', '65009', '2025-12-19', 'D100104', '0000-00-00', '0000-00-00', 10.000000, 18.309912, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:58:27'),
(31, 1026, 65009, '25', 70016, 0, 0, 0, 'R1', 2001, 'Supplier One', 9, 'D1001', 'Stock Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 9, 'pcs', 1.000000, 1.000, 'A', '65009', '2025-12-19', 'D100105', '0000-00-00', '0000-00-00', 10.000000, 18.309912, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:58:27'),
(32, 1026, 65009, '25', 70016, 0, 0, 0, 'R1', 2001, 'Supplier One', 9, 'D1001', 'Stock Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 9, 'pcs', 1.000000, 1.000, 'A', '65009', '2025-12-19', 'D100106', '0000-00-00', '0000-00-00', 10.000000, 18.309912, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:58:27'),
(33, 1026, 65009, '25', 70016, 0, 0, 0, 'R1', 2001, 'Supplier One', 9, 'D1001', 'Stock Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 9, 'pcs', 1.000000, 1.000, 'A', '65009', '2025-12-19', 'D100107', '0000-00-00', '0000-00-00', 10.000000, 18.309912, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:58:27'),
(34, 1026, 65009, '25', 70016, 0, 0, 0, 'R1', 2001, 'Supplier One', 9, 'D1001', 'Stock Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 9, 'pcs', 1.000000, 1.000, 'A', '65009', '2025-12-19', 'D100108', '0000-00-00', '0000-00-00', 10.000000, 18.309912, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:58:27'),
(35, 1026, 65009, '25', 70016, 0, 0, 0, 'R1', 2001, 'Supplier One', 9, 'D1001', 'Stock Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 9, 'pcs', 1.000000, 1.000, 'A', '65009', '2025-12-19', 'D100109', '0000-00-00', '0000-00-00', 10.000000, 18.309912, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:58:27'),
(36, 1026, 65009, '25', 70016, 0, 0, 0, 'R1', 2001, 'Supplier One', 9, 'D1001', 'Stock Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 9, 'pcs', 1.000000, 1.000, 'A', '65009', '2025-12-19', 'D100110', '0000-00-00', '0000-00-00', 10.000000, 18.309912, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:58:27'),
(37, 1026, 65009, '26', 70016, 0, 0, 0, 'R1', 2001, 'Supplier One', 10, 'D1002', 'Raw Material', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 10, 'pcs', 1.000000, 10.000, 'A', '65009', '2025-12-19', 'D100111', '0000-00-00', '0000-00-00', 12.000000, 21.971898, 0.00, '2025-12-19', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-19 02:58:27'),
(38, 1032, 30005, '', 40012, 0, 0, 0, '40012', 1001, 'Customer One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -1.000, 'U', '65001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 830.303434, 1000.00, '2025-12-19', 'DELIVERY_NOTE', 'OUT', 1, '', 'Y', 2, '2025-12-19 15:50:42'),
(39, 1033, 30006, '', 40013, 0, 0, 0, '40013', 1001, 'Customer One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -1.000, 'U', '65001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 830.303434, 1000.00, '2025-12-19', 'DELIVERY_NOTE', 'OUT', 1, '', 'Y', 2, '2025-12-19 15:58:37'),
(40, 1033, 50001, '1', 50001, 0, 0, 0, '40013', 1001, 'Customer One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, 1.000, 'U', '65001', '2025-12-19', '', '0000-00-00', '0000-00-00', 1000.000000, 830.303434, 1000.00, '2025-12-19', 'CREDIT_NOTE', 'IN', 0, '', 'Y', 1, '2025-12-19 16:45:09'),
(41, 1021, 80001, '', 0, 0, 0, 0, '', 2003, 'Test Supplier ', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -2.000, 'U', '65001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 830.303434, 0.00, '2025-12-19', 'DEBIT_NOTE', 'OUT', 1, '', 'Y', 2, '2025-12-19 17:07:38'),
(42, 1021, 80001, '', 0, 0, 0, 0, '', 2003, 'Test Supplier ', 4, 'B1001', 'B1001 RM', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 4, 'pcs', 1.000000, -10.000, 'U', '65008', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 10.590052, 0.00, '2025-12-19', 'DEBIT_NOTE', 'OUT', 26, '', 'Y', 2, '2025-12-19 17:07:38'),
(43, 1035, 30007, '', 40014, 0, 0, 0, '40014', 1001, 'Customer One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -1.000, 'U', '65008', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 830.303434, 1800.00, '2025-12-20', 'DELIVERY_NOTE', 'OUT', 25, '', 'Y', 2, '2025-12-20 09:29:37'),
(44, 1035, 30007, '', 40014, 0, 0, 0, '40014', 1001, 'Customer One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -1.000, 'U', '65001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 830.303434, 1800.00, '2025-12-20', 'DELIVERY_NOTE', 'OUT', 40, '', 'Y', 2, '2025-12-20 09:29:37'),
(45, 1035, 30007, '', 40014, 0, 0, 0, '40014', 1001, 'Customer One', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, -2.000, 'U', '35001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 26.271672, 500.00, '2025-12-20', 'DELIVERY_NOTE', 'OUT', 4, '', 'Y', 2, '2025-12-20 09:29:37'),
(46, 1037, 30008, '', 40015, 0, 0, 0, '40015', 1001, 'Customer One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -2.000, 'U', '65008', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 830.303434, 1300.00, '2025-12-20', 'DELIVERY_NOTE', 'OUT', 25, '', 'Y', 2, '2025-12-20 14:17:24'),
(47, 1037, 30008, '', 40015, 0, 0, 0, '40015', 1001, 'Customer One', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, -2.000, 'U', '35001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 26.271672, 1450.00, '2025-12-20', 'DELIVERY_NOTE', 'OUT', 4, '', 'Y', 2, '2025-12-20 14:17:24'),
(48, 1035, 50003, '4', 50003, 0, 0, 0, '40014', 1001, 'Customer One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, 1.000, 'A', '65008', '2025-12-20', '', '0000-00-00', '0000-00-00', 1800.000000, 812.888669, 1800.00, '2025-12-20', 'CREDIT_NOTE', 'IN', 0, '', 'Y', 2, '2025-12-20 15:52:32'),
(49, 1042, 65012, '29', 70018, 0, 0, 0, '12345', 2001, 'Supplier One', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, 3.000, 'A', '65012', '2025-12-22', '', '0000-00-00', '0000-00-00', 10.000000, 786.436295, 0.00, '2025-12-22', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-22 10:56:39'),
(50, 1042, 65012, '30', 70018, 0, 0, 0, '12345', 2001, 'Supplier One', 5, 'B1002', 'B1002 RM', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 5, 'pcs', 1.000000, 2.000, 'A', '65012', '2025-12-22', '', '0000-00-00', '0000-00-00', 30.000000, 31.500000, 0.00, '2025-12-22', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-22 10:56:39'),
(51, 1042, 65012, '31', 70018, 0, 0, 0, '12345', 2001, 'Supplier One', 4, 'B1001', 'B1001 RM', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 4, 'pcs', 1.000000, 1.000, 'A', '65012', '2025-12-22', '', '0000-00-00', '0000-00-00', 40.000000, 10.621747, 0.00, '2025-12-22', 'QUALITY_CHECK', 'IN', 0, '', 'Y', 2, '2025-12-22 10:56:39'),
(52, 1039, 30009, '', 40016, 0, 0, 0, '40016', 1002, 'Customer Two', 1, 'A1001', 'A1001 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 1, 'pcs', 1.000000, -3.000, 'U', '65001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 812.888669, 1300.00, '2025-12-22', 'DELIVERY_NOTE', 'OUT', 1, '', 'Y', 2, '2025-12-22 11:00:41'),
(53, 1039, 30009, '', 40016, 0, 0, 0, '40016', 1002, 'Customer Two', 2, 'A1002', 'A1002 Item', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 2, 'pcs', 1.000000, -2.000, 'U', '35001', '0000-00-00', '', '0000-00-00', '0000-00-00', 0.000000, 26.255879, 1450.00, '2025-12-22', 'DELIVERY_NOTE', 'OUT', 4, '', 'Y', 2, '2025-12-22 11:00:41'),
(54, 1019, 65007, '22', 0, 0, 0, 0, '', 2001, 'Supplier One', 6, 'B1003', 'B1003 RM', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 6, 'pcs', 1.000000, 100.000, 'A', '65007', '2025-12-22', '', '0000-00-00', '0000-00-00', 35.000000, 35.000000, 0.00, '2025-12-22', 'QUALITY_CHECK', 'IN', 0, '', 'N', 2, '2025-12-22 11:07:59'),
(55, 1019, 65007, '21', 0, 0, 0, 0, '', 2001, 'Supplier One', 5, 'B1002', 'B1002 RM', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 5, 'pcs', 1.000000, 100.000, 'A', '65007', '2025-12-22', '', '0000-00-00', '0000-00-00', 30.000000, 30.000000, 0.00, '2025-12-22', 'QUALITY_CHECK', 'IN', 0, '', 'N', 2, '2025-12-22 11:07:59'),
(56, 1019, 65007, '20', 0, 0, 0, 0, '', 2001, 'Supplier One', 4, 'B1001', 'B1001 RM', 1, 'None', 1, 'Main Warehouse ', 1, 'None', 1, 'Bin A', 4, 'pcs', 1.000000, 100.000, 'A', '65007', '2025-12-22', '', '0000-00-00', '0000-00-00', 25.000000, 25.000000, 0.00, '2025-12-22', 'QUALITY_CHECK', 'IN', 0, '', 'N', 2, '2025-12-22 11:07:59');

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

--
-- Table structure for table `erp_stock_physical_quantity`
--

CREATE TABLE `erp_stock_physical_quantity` (
  `id` int(11) NOT NULL,
  `transaction_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `current_qty` decimal(15,3) NOT NULL,
  `physical_quantity` decimal(15,3) NOT NULL,
  `updated_flag` enum('Y','N') NOT NULL DEFAULT 'N',
  `uploaded_by` int(11) NOT NULL,
  `upload_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_stock_reorder_level`
--

CREATE TABLE `erp_stock_reorder_level` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `reorder_quantity` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_store`
--

CREATE TABLE `erp_store` (
  `id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `oem_number` varchar(255) NOT NULL COMMENT 'Purchasing Part No',
  `alias_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_persian_ci NOT NULL,
  `generic_id` int(11) NOT NULL,
  `brand_class_id` int(11) NOT NULL,
  `unit_id` int(11) NOT NULL,
  `item_image` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `rate` decimal(15,6) NOT NULL,
  `inventory_item_type` int(11) NOT NULL COMMENT '1 - stock item, 2- service item, 3- raw material,4-Equipments',
  `default_service_item` enum('N','Y') NOT NULL DEFAULT 'N',
  `tax_code` int(11) NOT NULL,
  `weight` decimal(15,2) NOT NULL,
  `volume` decimal(15,6) NOT NULL,
  `re_order_level` int(11) NOT NULL,
  `re_order_lot` int(11) NOT NULL,
  `hsir_code` varchar(255) NOT NULL,
  `version` varchar(255) NOT NULL,
  `bar_code` varchar(255) NOT NULL,
  `others` varchar(255) NOT NULL,
  `notes` text NOT NULL,
  `have_expiry_date` enum('Y','N') NOT NULL DEFAULT 'N',
  `have_serial_no` enum('Y','N') NOT NULL DEFAULT 'N',
  `warehouse_id` int(11) NOT NULL,
  `rack_id` int(11) NOT NULL,
  `bin_id` int(11) NOT NULL,
  `length` decimal(10,2) NOT NULL,
  `width` decimal(10,2) NOT NULL,
  `height` decimal(10,2) NOT NULL,
  `thickness` decimal(10,2) NOT NULL,
  `cubic_meter` decimal(10,2) NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `ledger_id` int(11) NOT NULL,
  `service_product_type` enum('NL','ES','NO','HO') NOT NULL COMMENT 'NL-Normal Item,ES-Employee Service,NO-Normal Overtime,HO-Holiday Overtime	',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `material` varchar(255) NOT NULL,
  `finished` varchar(255) NOT NULL,
  `markup_percent` decimal(5,2) NOT NULL,
  `mark_up_final_rate` decimal(15,6) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_store`
--

INSERT INTO `erp_store` (`id`, `part_number`, `oem_number`, `alias_name`, `generic_id`, `brand_class_id`, `unit_id`, `item_image`, `description`, `rate`, `inventory_item_type`, `default_service_item`, `tax_code`, `weight`, `volume`, `re_order_level`, `re_order_lot`, `hsir_code`, `version`, `bar_code`, `others`, `notes`, `have_expiry_date`, `have_serial_no`, `warehouse_id`, `rack_id`, `bin_id`, `length`, `width`, `height`, `thickness`, `cubic_meter`, `isActive`, `ledger_id`, `service_product_type`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`, `material`, `finished`, `markup_percent`, `mark_up_final_rate`) VALUES
(1, 'A1001', 'A1001', '', 1, 1, 1, '', 'A1001 Item', 787.227021, 1, 'N', 1, 0.00, 0.000000, 0, 0, '', '', 'A1001', '', '', 'N', 'N', 1, 1, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 'Y', 132, 'NL', 2, '2025-12-18 18:18:55', 0, '0000-00-00 00:00:00', '', '', 1.00, 0.000000),
(2, 'A1002', 'A1002', '', 1, 1, 1, '', 'A1002 Item', 26.255924, 1, 'N', 1, 0.00, 0.000000, 0, 0, '', '', 'A1002', '', '', 'N', 'N', 1, 1, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 'Y', 132, 'NL', 2, '2025-12-18 18:19:05', 0, '0000-00-00 00:00:00', '', '', 1.00, 0.000000),
(3, 'A1003', 'A1003', '', 1, 1, 1, '', 'A1003 Item', 36.750000, 1, 'N', 1, 0.00, 0.000000, 0, 0, '', '', 'A1003', '', '', 'N', 'N', 1, 1, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 'Y', 132, 'NL', 2, '2025-12-18 18:19:19', 0, '0000-00-00 00:00:00', '', '', 1.00, 0.000000),
(4, 'B1001', 'B1001', '', 1, 1, 1, '', 'B1001 RM', 10.621747, 3, 'N', 1, 0.00, 0.000000, 0, 0, '', '', 'B1001', '', '', 'N', 'N', 1, 1, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 'Y', 0, 'NL', 2, '2025-12-18 18:19:34', 0, '0000-00-00 00:00:00', '', '', 1.00, 0.000000),
(5, 'B1002', 'B1002', '', 1, 1, 1, '', 'B1002 RM', 31.500000, 3, 'N', 1, 0.00, 0.000000, 0, 0, '', '', 'B1002', '', '', 'N', 'N', 1, 1, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 'Y', 0, 'NL', 2, '2025-12-18 18:19:45', 0, '0000-00-00 00:00:00', '', '', 1.00, 0.000000),
(6, 'B1003', 'B1003', '', 1, 1, 1, '', 'B1003 RM', 0.000000, 3, 'N', 1, 0.00, 0.000000, 0, 0, '', '', 'B1003', '', '', 'N', 'N', 1, 1, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 'Y', 0, 'NL', 2, '2025-12-18 18:19:57', 0, '0000-00-00 00:00:00', '', '', 1.00, 0.000000),
(7, 'C1001', 'C1001', '', 1, 1, 1, '', 'FP C1001', 0.000000, 1, 'N', 1, 0.00, 0.000000, 0, 0, '', '', 'C1001', '', '', 'N', 'N', 1, 1, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 'Y', 132, 'NL', 2, '2025-12-18 18:20:25', 0, '0000-00-00 00:00:00', '', '', 1.00, 0.000000),
(8, 'C1002', 'C1002', '', 1, 1, 1, '', 'C1002 FP', 0.000000, 1, 'N', 1, 0.00, 0.000000, 0, 0, '', '', 'C1002', '', '', 'N', 'N', 1, 1, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 'Y', 132, 'NL', 2, '2025-12-18 18:20:40', 0, '0000-00-00 00:00:00', '', '', 1.00, 0.000000),
(9, 'D1001', 'D1001', '', 1, 1, 1, '', 'Stock Item', 18.309912, 1, 'N', 1, 0.00, 0.000000, 0, 0, '', '', 'D1001', '', '', 'N', 'Y', 1, 1, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 'Y', 132, 'NL', 2, '2025-12-19 14:31:58', 0, '0000-00-00 00:00:00', '', '', 1.00, 0.000000),
(10, 'D1002', 'D1002', '', 1, 1, 1, '', 'Raw Material', 21.971898, 3, 'N', 1, 0.00, 0.000000, 0, 0, '', '', 'D1002', '', '', 'N', 'N', 1, 1, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 'Y', 0, 'NL', 2, '2025-12-19 14:32:12', 0, '0000-00-00 00:00:00', '', '', 1.00, 0.000000),
(11, 'D1003', 'D1003', '', 1, 1, 5, '', 'Service Item', 0.000000, 2, 'N', 1, 0.00, 0.000000, 0, 0, '', '', 'D1003', '', '', 'N', 'N', 1, 1, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 'Y', 233, 'NL', 2, '2025-12-19 14:32:25', 0, '0000-00-00 00:00:00', '', '', 1.00, 0.000000);

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

--
-- Table structure for table `erp_store_rate`
--

CREATE TABLE `erp_store_rate` (
  `id` int(11) NOT NULL,
  `part_number` varchar(255) NOT NULL,
  `rate` decimal(15,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_supplier_docs`
--

CREATE TABLE `erp_supplier_docs` (
  `id` int(11) NOT NULL,
  `supplier_id` int(11) NOT NULL,
  `document_no` varchar(255) NOT NULL,
  `document_type` int(11) NOT NULL,
  `document` varchar(255) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `score` varchar(200) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_table_order`
--

CREATE TABLE `erp_table_order` (
  `id` int(11) NOT NULL,
  `item_id` int(11) NOT NULL,
  `qty` int(11) NOT NULL,
  `table_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `seat_num` int(11) NOT NULL,
  `is_billed` enum('N','Y') NOT NULL,
  `bill_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_tracking_details`
--

CREATE TABLE `erp_tracking_details` (
  `id` int(11) NOT NULL,
  `tracking_no` bigint(20) NOT NULL,
  `entry_no` int(11) NOT NULL,
  `entry_date` datetime NOT NULL,
  `comments` text NOT NULL,
  `user` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_tracking_file`
--

CREATE TABLE `erp_tracking_file` (
  `id` bigint(20) NOT NULL,
  `type` enum('PO','SO','OT','') NOT NULL,
  `order_no` bigint(20) NOT NULL,
  `start_date` datetime NOT NULL,
  `close_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `closed_by` int(11) NOT NULL,
  `closed` enum('0','1') NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_unit`
--

CREATE TABLE `erp_unit` (
  `id` int(11) NOT NULL,
  `unit_name` varchar(255) NOT NULL,
  `symbol` varchar(10) NOT NULL,
  `unit_type` int(11) NOT NULL COMMENT '1-Integer,2-Decimal',
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `is_base_unit` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_datetime` datetime NOT NULL,
  `updated_datetime` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_unit`
--

INSERT INTO `erp_unit` (`id`, `unit_name`, `symbol`, `unit_type`, `isActive`, `is_base_unit`, `created_by`, `updated_by`, `created_datetime`, `updated_datetime`) VALUES
(1, 'Pieces', 'pcs', 2, 'Y', 'Y', 1, 1, '2025-05-05 00:00:00', '2025-05-05 00:00:00'),
(2, 'Each', 'ea', 2, 'Y', 'N', 1, 1, '2025-05-05 00:00:00', '2025-05-05 00:00:00'),
(3, 'Kilogram', 'Kg', 2, 'Y', 'N', 1, 0, '2025-05-05 00:00:00', '2025-05-05 00:00:00'),
(4, 'Box', 'box', 2, 'Y', 'N', 1, 0, '2025-05-05 00:00:00', '2025-05-05 00:00:00'),
(5, 'Lump Sum', 'LS', 2, 'Y', 'N', 1, 0, '2025-05-05 00:00:00', '2025-05-05 00:00:00'),
(6, 'Pallet', 'pal', 2, 'Y', 'N', 1, 0, '2025-05-05 00:00:00', '2025-05-05 00:00:00'),
(7, 'Litre', 'L', 2, 'Y', 'N', 8, 0, '2025-05-26 12:39:44', '0000-00-00 00:00:00'),
(8, 'Cartons', 'cr', 2, 'Y', 'N', 1, 0, '2025-10-04 11:20:46', '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_unit_of_measurement`
--

CREATE TABLE `erp_unit_of_measurement` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `base_unit` int(11) NOT NULL,
  `unit_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `factor` decimal(10,6) NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `isBase` enum('Y','N') DEFAULT 'N',
  `is_secondary_unit` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `default_sales_unit` enum('Y','N') NOT NULL DEFAULT 'N',
  `default_purchase_unit` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_unit_of_measurement`
--

INSERT INTO `erp_unit_of_measurement` (`id`, `product_id`, `base_unit`, `unit_id`, `name`, `factor`, `price`, `isBase`, `is_secondary_unit`, `created_by`, `created_date_time`, `default_sales_unit`, `default_purchase_unit`) VALUES
(1, 1, 1, 1, 'pcs', 1.000000, 0.00, 'N', 'N', 2, '2025-12-18 18:18:55', 'N', 'N'),
(2, 2, 1, 1, 'pcs', 1.000000, 0.00, 'N', 'N', 2, '2025-12-18 18:19:05', 'N', 'N'),
(3, 3, 1, 1, 'pcs', 1.000000, 0.00, 'N', 'N', 2, '2025-12-18 18:19:19', 'N', 'N'),
(4, 4, 1, 1, 'pcs', 1.000000, 0.00, 'N', 'N', 2, '2025-12-18 18:19:34', 'N', 'N'),
(5, 5, 1, 1, 'pcs', 1.000000, 0.00, 'N', 'N', 2, '2025-12-18 18:19:45', 'N', 'N'),
(6, 6, 1, 1, 'pcs', 1.000000, 0.00, 'N', 'N', 2, '2025-12-18 18:19:57', 'N', 'N'),
(7, 7, 1, 1, 'pcs', 1.000000, 0.00, 'N', 'N', 2, '2025-12-18 18:20:25', 'N', 'N'),
(8, 8, 1, 1, 'pcs', 1.000000, 0.00, 'N', 'N', 2, '2025-12-18 18:20:40', 'N', 'N'),
(9, 9, 1, 1, 'pcs', 1.000000, 0.00, 'N', 'N', 2, '2025-12-19 14:31:58', 'N', 'N'),
(10, 10, 1, 1, 'pcs', 1.000000, 0.00, 'N', 'N', 2, '2025-12-19 14:32:12', 'N', 'N'),
(11, 11, 5, 5, 'LS', 1.000000, 0.00, 'N', 'N', 2, '2025-12-19 14:32:25', 'N', 'N');

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

--
-- Table structure for table `erp_upload_inventory`
--

CREATE TABLE `erp_upload_inventory` (
  `id` int(11) NOT NULL,
  `uploadfile` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_user_notification_history`
--

CREATE TABLE `erp_user_notification_history` (
  `id` int(11) NOT NULL,
  `notification_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `notif_status` enum('Y','N') NOT NULL DEFAULT 'N',
  `notes` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_user_notification_history`
--

INSERT INTO `erp_user_notification_history` (`id`, `notification_id`, `user_id`, `notif_status`, `notes`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(20, 7, 8, 'Y', '', 8, '2025-07-09 08:57:38', 0, '0000-00-00 00:00:00'),
(21, 7, 9, 'N', '', 8, '2025-07-09 08:57:38', 0, '0000-00-00 00:00:00'),
(22, 10, 8, 'Y', '', 8, '2025-07-09 08:58:00', 0, '0000-00-00 00:00:00'),
(23, 11, 5, 'Y', '', 8, '2025-07-09 08:58:11', 0, '0000-00-00 00:00:00'),
(24, 11, 8, 'Y', '', 8, '2025-07-09 08:58:11', 0, '0000-00-00 00:00:00'),
(25, 12, 5, 'Y', '', 5, '2025-07-09 09:01:58', 0, '0000-00-00 00:00:00'),
(26, 13, 5, 'Y', '', 5, '2025-07-09 09:04:30', 0, '0000-00-00 00:00:00'),
(29, 14, 5, 'N', '', 8, '2025-07-09 09:21:38', 0, '0000-00-00 00:00:00'),
(30, 14, 8, 'N', '', 8, '2025-07-09 09:21:38', 0, '0000-00-00 00:00:00'),
(31, 14, 9, 'N', '', 8, '2025-07-09 09:21:38', 0, '0000-00-00 00:00:00'),
(33, 9, 8, 'Y', '', 8, '2025-07-09 09:23:34', 0, '0000-00-00 00:00:00'),
(34, 15, 8, 'Y', '', 8, '2025-07-09 09:56:05', 0, '0000-00-00 00:00:00'),
(36, 8, 8, 'N', '', 1, '2025-09-15 10:37:16', 0, '0000-00-00 00:00:00'),
(37, 16, 13, 'Y', '', 1, '2025-09-29 14:28:13', 0, '0000-00-00 00:00:00'),
(38, 17, 13, 'Y', '', 1, '2025-12-08 09:24:46', 0, '0000-00-00 00:00:00'),
(39, 18, 13, 'Y', '', 1, '2025-12-08 12:09:05', 0, '0000-00-00 00:00:00'),
(40, 19, 13, 'Y', '', 1, '2025-12-08 12:29:33', 0, '0000-00-00 00:00:00'),
(41, 20, 13, 'Y', '', 1, '2025-12-08 14:19:37', 0, '0000-00-00 00:00:00'),
(42, 21, 13, 'Y', 'notes added for testing purposes', 1, '2025-12-08 15:18:46', 0, '0000-00-00 00:00:00'),
(47, 22, 13, 'Y', 'notes added on 8 dec 2025', 1, '2025-12-08 15:53:24', 0, '0000-00-00 00:00:00'),
(48, 22, 9, 'N', 'notes added on 8 dec 2025', 1, '2025-12-08 15:53:24', 0, '0000-00-00 00:00:00'),
(49, 22, 7, 'N', 'notes added on 8 dec 2025', 1, '2025-12-08 15:53:24', 0, '0000-00-00 00:00:00'),
(50, 23, 13, 'Y', 'dsfss', 1, '2025-12-08 16:53:56', 0, '0000-00-00 00:00:00'),
(51, 23, 7, 'N', 'dsfss', 1, '2025-12-08 16:53:56', 0, '0000-00-00 00:00:00'),
(52, 24, 13, 'Y', 'tEST  111111', 1, '2025-12-08 16:56:40', 0, '0000-00-00 00:00:00'),
(53, 24, 7, 'N', 'tEST  111111', 1, '2025-12-08 16:56:40', 0, '0000-00-00 00:00:00'),
(54, 25, 13, 'Y', 'notes added', 1, '2025-12-08 16:57:07', 0, '0000-00-00 00:00:00'),
(55, 26, 13, 'Y', 'Notes added for testing', 1, '2025-12-09 08:11:19', 0, '0000-00-00 00:00:00'),
(56, 27, 4, 'Y', 'Notes added  for testing', 1, '2025-12-09 17:47:20', 0, '0000-00-00 00:00:00'),
(57, 27, 13, 'Y', 'Notes added  for testing', 1, '2025-12-09 17:47:20', 0, '0000-00-00 00:00:00'),
(58, 28, 13, 'Y', '6Pm Notes', 13, '2025-12-09 17:55:53', 0, '0000-00-00 00:00:00'),
(59, 29, 4, 'Y', 'notification added for testing on dec 9th', 1, '2025-12-09 17:56:15', 0, '0000-00-00 00:00:00'),
(60, 29, 13, 'Y', 'notification added for testing on dec 9th', 1, '2025-12-09 17:56:15', 0, '0000-00-00 00:00:00'),
(61, 29, 15, 'Y', 'notification added for testing on dec 9th', 1, '2025-12-09 17:56:15', 0, '0000-00-00 00:00:00'),
(62, 30, 4, 'Y', 'notes added for testing', 1, '2025-12-09 17:58:56', 0, '0000-00-00 00:00:00'),
(63, 30, 13, 'Y', 'notes added for testing', 1, '2025-12-09 17:58:56', 0, '0000-00-00 00:00:00'),
(64, 31, 13, 'Y', 'Test 6 05', 1, '2025-12-09 18:00:31', 0, '0000-00-00 00:00:00'),
(65, 32, 13, 'Y', 'TEst 8 PM', 1, '2025-12-09 18:02:06', 0, '0000-00-00 00:00:00'),
(66, 33, 13, 'Y', 'Notes added for testing', 1, '2025-12-10 08:00:35', 0, '0000-00-00 00:00:00'),
(67, 34, 13, 'Y', 'notes added for dec 10th 100pm', 1, '2025-12-10 08:19:29', 0, '0000-00-00 00:00:00'),
(68, 35, 13, 'Y', 'notes added for dec8:35 am', 1, '2025-12-10 08:36:18', 0, '0000-00-00 00:00:00'),
(69, 36, 13, 'Y', 'notes added for dec 9th 8:00pm', 1, '2025-12-10 08:37:49', 0, '0000-00-00 00:00:00'),
(70, 37, 13, 'Y', 'notes added at time 10:13 am', 1, '2025-12-10 08:43:58', 0, '0000-00-00 00:00:00'),
(71, 38, 13, 'Y', 'notes added for 8:31 am in calendar in dec 10th', 1, '2025-12-10 08:45:43', 0, '0000-00-00 00:00:00'),
(72, 39, 13, 'Y', 'added for testing on dec 10th 11:01am', 1, '2025-12-10 09:31:39', 0, '0000-00-00 00:00:00'),
(73, 40, 13, 'Y', 'added to notification comes after Dubai 10:31 am', 1, '2025-12-10 09:33:08', 0, '0000-00-00 00:00:00'),
(74, 41, 13, 'Y', 'notes added on 9:43am on 10th dec', 1, '2025-12-10 09:43:36', 0, '0000-00-00 00:00:00'),
(75, 42, 4, 'N', 'adde for 10:43 am in Dubai', 1, '2025-12-10 09:47:34', 0, '0000-00-00 00:00:00'),
(76, 42, 13, 'Y', 'adde for 10:43 am in Dubai', 1, '2025-12-10 09:47:34', 0, '0000-00-00 00:00:00'),
(77, 42, 15, 'Y', 'adde for 10:43 am in Dubai', 1, '2025-12-10 09:47:34', 0, '0000-00-00 00:00:00'),
(78, 43, 6, 'Y', 'Shebin Test', 1, '2025-12-10 11:02:10', 0, '0000-00-00 00:00:00'),
(79, 44, 4, 'N', 'notes added for testing 9:24 am dubai', 8, '2025-12-12 09:14:23', 0, '0000-00-00 00:00:00'),
(80, 44, 13, 'Y', 'notes added for testing 9:24 am dubai', 8, '2025-12-12 09:14:23', 0, '0000-00-00 00:00:00'),
(81, 44, 15, 'N', 'notes added for testing 9:24 am dubai', 8, '2025-12-12 09:14:23', 0, '0000-00-00 00:00:00'),
(82, 45, 13, 'N', 'tested at dubai time 9:17am', 15, '2025-12-12 09:17:53', 0, '0000-00-00 00:00:00'),
(83, 46, 13, 'N', 'added for test at 9:21 am', 1, '2025-12-12 09:21:44', 0, '0000-00-00 00:00:00'),
(84, 47, 2, 'Y', 'Test Notification', 2, '2025-12-18 09:10:13', 0, '0000-00-00 00:00:00'),
(85, 47, 17, 'N', 'Test Notification', 2, '2025-12-18 09:10:13', 0, '0000-00-00 00:00:00'),
(86, 47, 16, 'N', 'Test Notification', 2, '2025-12-18 09:10:13', 0, '0000-00-00 00:00:00'),
(87, 48, 2, 'N', 'Test 2', 2, '2025-12-18 09:32:34', 0, '0000-00-00 00:00:00'),
(88, 49, 2, 'N', 'Testing on ', 2, '2025-12-18 09:34:16', 0, '0000-00-00 00:00:00'),
(89, 49, 17, 'N', 'Testing on ', 2, '2025-12-18 09:34:16', 0, '0000-00-00 00:00:00'),
(90, 50, 16, 'N', 'notes added', 2, '2025-12-18 09:37:27', 0, '0000-00-00 00:00:00'),
(91, 51, 16, 'N', 'testing notification data', 2, '2025-12-18 09:56:25', 0, '0000-00-00 00:00:00'),
(92, 52, 16, 'N', 'testing data for verification', 2, '2025-12-18 09:57:31', 0, '0000-00-00 00:00:00'),
(93, 53, 17, 'N', 'Test Progress', 2, '2025-12-18 10:03:03', 0, '0000-00-00 00:00:00'),
(94, 53, 16, 'N', 'Test Progress', 2, '2025-12-18 10:03:03', 0, '0000-00-00 00:00:00'),
(95, 54, 17, 'N', 'Test 45', 2, '2025-12-18 10:04:00', 0, '0000-00-00 00:00:00'),
(96, 55, 2, 'N', '2 PM Notification', 2, '2025-12-18 10:17:45', 0, '0000-00-00 00:00:00'),
(97, 56, 2, 'N', 'Test 6PM', 2, '2025-12-18 17:52:42', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_vehicle_allotment`
--

CREATE TABLE `erp_vehicle_allotment` (
  `id` int(11) NOT NULL,
  `vehicle_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `from_date` datetime NOT NULL,
  `to_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_vehicle_doc_file`
--

CREATE TABLE `erp_vehicle_doc_file` (
  `id` int(11) NOT NULL,
  `vehicle_id` int(11) NOT NULL,
  `file_name` varchar(225) NOT NULL,
  `document_name` varchar(225) NOT NULL,
  `type` int(10) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_vendor_contact`
--

CREATE TABLE `erp_vendor_contact` (
  `id` int(11) NOT NULL,
  `vendor_id` bigint(20) NOT NULL,
  `prefix` varchar(50) NOT NULL DEFAULT 'Mr',
  `person_name` varchar(255) NOT NULL,
  `designation` varchar(255) NOT NULL,
  `contact_phone_no` varchar(255) NOT NULL,
  `department` varchar(255) NOT NULL,
  `contact_mobile_no` varchar(255) NOT NULL,
  `contact_email_id` varchar(255) NOT NULL,
  `dob` varchar(5) NOT NULL,
  `notes` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL DEFAULT 'Y',
  `isDefault` enum('N','Y') NOT NULL DEFAULT 'N',
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_vendor_contact`
--

INSERT INTO `erp_vendor_contact` (`id`, `vendor_id`, `prefix`, `person_name`, `designation`, `contact_phone_no`, `department`, `contact_mobile_no`, `contact_email_id`, `dob`, `notes`, `isActive`, `isDefault`, `created_date_time`, `created_by`, `updated_date_time`, `updated_by`) VALUES
(1, 2001, 'Mr', 'Mr. Kashyap', 'Purchase Manager', '04 56975', 'Purchase', '050 69578965', 'k.dutta@suppliertwo.com', '', '', 'Y', 'N', '2025-12-18 06:21:25', 2, '2025-12-19 08:56:18', 2),
(2, 2002, 'Mr', 'Ms. Fida', 'Asst Purchaser', '04 598756', 'Purchase', '050 698578', 'fida@suppliertwo.com', '', '', 'Y', 'N', '2025-12-19 08:54:52', 2, '2025-12-19 08:57:11', 2),
(3, 2003, 'Mr', 'Sales/Account', '', '0', '', '', '', '', '', 'Y', 'N', '2025-12-19 11:26:04', 2, '2025-12-19 11:26:04', 2),
(4, 2004, 'Mr', 'Sales/Account', '', '123456', '', '', '', '', '', 'Y', 'N', '2025-12-22 07:55:42', 2, '2025-12-22 07:55:42', 2);

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

--
-- Table structure for table `erp_vendor_shipping_details`
--

CREATE TABLE `erp_vendor_shipping_details` (
  `id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `shipping_vendor_name` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `city` varchar(255) NOT NULL,
  `street_address` text NOT NULL,
  `po_box` varchar(255) NOT NULL,
  `postal_code` varchar(255) NOT NULL,
  `country_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_vendor_shipping_details`
--

INSERT INTO `erp_vendor_shipping_details` (`id`, `vendor_id`, `shipping_vendor_name`, `state`, `city`, `street_address`, `po_box`, `postal_code`, `country_id`) VALUES
(1, 2002, 'Supplier Two', '', 'Dubai', 'Room 567\r\nDeira', '9875', '', 130),
(2, 2001, 'Supplier One', '', 'Sharjah', 'Suite 127899\r\nGolden Enclave', '5987', '', 130),
(3, 2004, 'Supplier Three', '1', 'City3', 'Three Street', '123', '', 130);

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

--
-- Table structure for table `erp_workspace`
--

CREATE TABLE `erp_workspace` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `sort_order` int(11) NOT NULL,
  `color_code` varchar(10) NOT NULL,
  `bg_color_code` varchar(100) NOT NULL,
  `ai_type_id` enum('SA','PR','PO','CF','ST','FI','IN','PL') NOT NULL COMMENT 'SA-Sales,PR-Purchase,PO-Production Order,CF-Contact Favourite,ST-Stock/Inventory,FI-Finance,IN-Info,PL-Pipeline',
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL,
  `isDefault` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_workspace_note`
--

CREATE TABLE `erp_workspace_note` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `workspace_qtn_id` int(11) NOT NULL,
  `title` varchar(50) NOT NULL,
  `description` varchar(1000) NOT NULL,
  `sales_group_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `through_id` int(11) NOT NULL,
  `lead_id` int(11) NOT NULL,
  `po_id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  `due_date` date NOT NULL,
  `workspace_id` int(11) NOT NULL,
  `shared_to` text NOT NULL,
  `status` enum('H','N','L') NOT NULL DEFAULT 'N' COMMENT 'H => high , N=>normal, L => low',
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_workspace_project_module_details`
--

CREATE TABLE `erp_workspace_project_module_details` (
  `id` int(11) NOT NULL,
  `workspace_note_id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `main_module_id` int(11) NOT NULL,
  `sub_module_id` int(11) NOT NULL,
  `questions` varchar(500) NOT NULL,
  `weightage_percent` decimal(15,2) NOT NULL,
  `current_weightage_percent` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_workspace_project_module_details`
--

INSERT INTO `erp_workspace_project_module_details` (`id`, `workspace_note_id`, `project_id`, `main_module_id`, `sub_module_id`, `questions`, `weightage_percent`, `current_weightage_percent`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(1, 3, 1, 2, 1, 'Leads', 5.00, 5.00, 3, '2022-07-29 03:49:06', 3, '2022-08-05 04:34:56'),
(2, 3, 1, 2, 2, 'Quotes', 20.00, 20.00, 3, '2022-07-29 03:49:06', 3, '2022-08-05 04:34:56'),
(3, 3, 1, 2, 3, 'Orders', 20.00, 20.00, 3, '2022-07-29 03:49:06', 3, '2022-08-05 04:34:56'),
(4, 3, 1, 2, 4, 'Delivery Note', 20.00, 20.00, 3, '2022-07-29 03:49:06', 3, '2022-08-05 04:34:56'),
(5, 3, 1, 2, 5, 'Invoice', 25.00, 25.00, 3, '2022-07-29 03:49:06', 3, '2022-08-05 04:34:56'),
(25, 3, 1, 2, 0, 'credit Note ', 10.00, 5.00, 3, '2022-07-29 09:16:13', 3, '2022-08-05 04:34:56'),
(7, 6, 2, 0, 7, 'survey frontend', 50.00, 20.00, 3, '2022-07-29 04:00:59', 119, '2023-10-03 01:30:45'),
(8, 6, 2, 0, 8, 'survey backend', 30.00, 20.00, 3, '2022-07-29 04:00:59', 119, '2023-10-03 01:30:45'),
(9, 3, 1, 9, 20, 'Chart of Accounts', 5.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(10, 3, 1, 9, 21, 'Sub Ledgers', 5.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(11, 3, 1, 9, 22, 'Vouchers', 5.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(12, 3, 1, 9, 23, 'Receipts', 10.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(13, 3, 1, 9, 24, 'Payments', 10.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(14, 3, 1, 9, 25, 'Allocation', 5.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(15, 3, 1, 9, 26, 'Statement of Account C/S', 5.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(16, 3, 1, 9, 27, 'Ageing C/S', 5.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(17, 3, 1, 9, 28, 'VAT Report', 5.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(18, 3, 1, 9, 29, 'Trial Balance', 10.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(19, 3, 1, 9, 30, 'Profit & Loss', 10.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(20, 3, 1, 9, 31, 'Balance Sheet', 5.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(21, 3, 1, 9, 32, 'AR / AP', 5.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(22, 3, 1, 9, 33, 'General Ledger', 5.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(23, 3, 1, 9, 34, 'Posting', 10.00, 0.00, 3, '2022-07-29 04:27:51', 3, '2022-07-29 10:19:16'),
(31, 3, 1, 10, 0, 'Installation', 100.00, 80.00, 3, '2022-07-29 09:36:59', 3, '2022-07-29 11:46:58'),
(32, 3, 1, 11, 0, 'All reports', 100.00, 0.00, 3, '2022-07-29 09:37:23', 0, '0000-00-00 00:00:00'),
(33, 8, 1, 0, 0, 'Full', 100.00, 0.00, 3, '2022-07-29 09:37:40', 125, '2022-09-30 05:41:40'),
(34, 3, 1, 5, 1, 'Requisition', 5.00, 5.00, 3, '2022-07-29 09:38:07', 3, '2022-07-29 11:45:28'),
(35, 3, 1, 5, 2, 'Enquiry', 10.00, 0.00, 3, '2022-07-29 09:38:07', 3, '2022-07-29 11:45:28'),
(36, 3, 1, 5, 3, 'Purchase Order', 15.00, 0.00, 3, '2022-07-29 09:38:07', 3, '2022-07-29 11:45:28'),
(37, 3, 1, 5, 4, 'Material Receipt', 20.00, 0.00, 3, '2022-07-29 09:38:07', 3, '2022-07-29 11:45:28'),
(38, 3, 1, 5, 12, 'Quality Check', 15.00, 0.00, 3, '2022-07-29 09:38:07', 3, '2022-07-29 11:45:28'),
(39, 3, 1, 5, 13, 'Purchase Invoice', 20.00, 0.00, 3, '2022-07-29 09:38:07', 3, '2022-07-29 11:45:28'),
(40, 3, 1, 5, 14, 'Debit Note', 15.00, 0.00, 3, '2022-07-29 09:38:07', 3, '2022-07-29 11:45:28'),
(41, 3, 1, 8, 15, 'Products', 20.00, 0.00, 3, '2022-07-29 09:38:18', 3, '2022-07-29 11:46:08'),
(42, 3, 1, 8, 16, 'Service', 20.00, 0.00, 3, '2022-07-29 09:38:18', 3, '2022-07-29 11:46:08'),
(43, 3, 1, 8, 17, 'Issues', 20.00, 18.00, 3, '2022-07-29 09:38:18', 3, '2022-07-29 11:46:08'),
(44, 3, 1, 8, 18, 'Receipts', 20.00, 0.00, 3, '2022-07-29 09:38:18', 3, '2022-07-29 11:46:08'),
(45, 3, 1, 8, 19, 'Transfers', 20.00, 0.00, 3, '2022-07-29 09:38:18', 3, '2022-07-29 11:46:08'),
(46, 6, 2, 0, 46, 'Purchase', 10.00, 20.00, 3, '2022-07-29 12:20:31', 119, '2023-10-03 01:30:45'),
(47, 6, 2, 0, 47, 'Quotation', 10.00, 20.00, 3, '2022-07-29 12:20:51', 119, '2023-10-03 01:30:45'),
(48, 7, 3, 0, 0, 'test', 100.00, 100.00, 3, '2022-08-04 06:58:29', 0, '0000-00-00 00:00:00'),
(64, 1, 7, 0, 64, 'Instance Copy', 5.00, 4.00, 119, '2023-10-03 12:28:59', 119, '2023-10-03 12:33:59'),
(51, 2, 7, 0, 0, '01', 100.00, 90.00, 3, '2023-10-03 08:01:55', 0, '0000-00-00 00:00:00'),
(52, 9, 7, 0, 0, '01', 100.00, 80.00, 3, '2023-10-03 08:31:54', 0, '0000-00-00 00:00:00'),
(53, 10, 7, 0, 0, '01', 100.00, 50.00, 3, '2023-10-03 08:34:59', 0, '0000-00-00 00:00:00'),
(54, 11, 7, 0, 0, '01', 100.00, 75.00, 3, '2023-10-03 08:35:46', 0, '0000-00-00 00:00:00'),
(55, 12, 7, 0, 0, '01', 100.00, 80.00, 3, '2023-10-03 08:36:34', 0, '0000-00-00 00:00:00'),
(56, 13, 7, 0, 56, '01', 100.00, 0.00, 3, '2023-10-03 08:37:25', 3, '2023-10-04 01:08:26'),
(57, 14, 7, 0, 0, '01', 100.00, 0.00, 3, '2023-10-03 08:41:30', 0, '0000-00-00 00:00:00'),
(58, 15, 7, 0, 0, '01', 100.00, 60.00, 3, '2023-10-03 08:52:22', 0, '0000-00-00 00:00:00'),
(59, 16, 7, 0, 0, '01', 100.00, 90.00, 3, '2023-10-03 08:53:11', 0, '0000-00-00 00:00:00'),
(60, 17, 7, 0, 0, '01', 100.00, 50.00, 3, '2023-10-03 08:54:01', 0, '0000-00-00 00:00:00'),
(61, 18, 7, 0, 0, '01', 100.00, 90.00, 3, '2023-10-03 08:54:52', 0, '0000-00-00 00:00:00'),
(62, 19, 7, 0, 0, '01', 100.00, 99.00, 3, '2023-10-03 08:55:56', 0, '0000-00-00 00:00:00'),
(63, 20, 7, 0, 0, '01', 100.00, 90.00, 3, '2023-10-03 08:56:40', 0, '0000-00-00 00:00:00'),
(65, 1, 7, 0, 65, 'Assigned Work', 5.00, 4.00, 119, '2023-10-03 12:28:59', 119, '2023-10-03 12:33:59'),
(66, 1, 7, 0, 66, 'Design', 20.00, 10.00, 119, '2023-10-03 12:28:59', 119, '2023-10-03 12:33:59'),
(67, 1, 7, 0, 67, 'Programming', 50.00, 30.00, 119, '2023-10-03 12:28:59', 119, '2023-10-03 12:33:59'),
(68, 1, 7, 0, 68, 'Verification', 10.00, 0.00, 119, '2023-10-03 12:28:59', 119, '2023-10-03 12:33:59'),
(69, 1, 7, 0, 69, 'Confirmation', 10.00, 0.00, 119, '2023-10-03 12:28:59', 119, '2023-10-03 12:33:59'),
(70, 21, 1, 0, 2, 'Sales', 10.00, 0.00, 3, '2023-10-04 10:43:39', 0, '0000-00-00 00:00:00'),
(71, 21, 1, 0, 5, 'Purchase', 15.00, 0.00, 3, '2023-10-04 10:43:39', 0, '0000-00-00 00:00:00'),
(72, 21, 1, 0, 8, 'Inventory', 20.00, 0.00, 3, '2023-10-04 10:43:39', 0, '0000-00-00 00:00:00'),
(73, 21, 1, 0, 9, 'Finance', 20.00, 0.00, 3, '2023-10-04 10:43:39', 0, '0000-00-00 00:00:00'),
(74, 21, 1, 0, 10, 'Projects', 15.00, 0.00, 3, '2023-10-04 10:43:39', 0, '0000-00-00 00:00:00'),
(75, 21, 1, 0, 11, 'Reports', 10.00, 0.00, 3, '2023-10-04 10:43:39', 0, '0000-00-00 00:00:00'),
(76, 21, 1, 0, 12, 'Dashboard', 10.00, 0.00, 3, '2023-10-04 10:43:39', 0, '0000-00-00 00:00:00'),
(77, 22, 2, 0, 1, 'Sales', 60.00, 0.00, 3, '2023-10-04 10:44:39', 0, '0000-00-00 00:00:00'),
(78, 22, 2, 0, 3, 'Purchase', 40.00, 0.00, 3, '2023-10-04 10:44:39', 0, '0000-00-00 00:00:00'),
(79, 23, 2, 0, 1, 'Sales', 60.00, 0.00, 3, '2023-10-04 11:05:38', 0, '0000-00-00 00:00:00'),
(80, 23, 2, 0, 3, 'Purchase', 40.00, 0.00, 3, '2023-10-04 11:05:38', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_workspace_qtns`
--

CREATE TABLE `erp_workspace_qtns` (
  `id` int(11) NOT NULL,
  `workspace_id` int(11) NOT NULL,
  `details` text NOT NULL,
  `sort_order` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `isActive` enum('Y','N') NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `erp_workspace_qtns`
--

INSERT INTO `erp_workspace_qtns` (`id`, `workspace_id`, `details`, `sort_order`, `created_date_time`, `created_by`, `updated_date_time`, `updated_by`, `isActive`) VALUES
(1, 7, 'aaaaa1', 1, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'N'),
(2, 7, 'bbbbbbbb2', 2, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'N'),
(3, 1, 'cccccc', 1, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'N'),
(4, 4, 'aaaaa11122', 133, '0000-00-00 00:00:00', 0, '2022-08-04 13:36:18', 3, 'N'),
(5, 4, 'tttttttt', 1, '2022-08-04 13:34:18', 3, '2022-08-04 13:35:02', 3, 'N'),
(6, 2, '', 0, '2022-08-04 13:35:12', 3, '0000-00-00 00:00:00', 0, 'N'),
(7, 7, 'bbbbbbbbbb11', 1, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'N'),
(8, 7, 'No Interest', 1, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(9, 7, 'Fixed some other software', 2, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(10, 7, 'Cash Flow Issues', 3, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(11, 8, 'Due to Price', 1, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(12, 8, 'Project / Requirement Cancelled', 2, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(13, 8, 'Not able to meet specifications', 3, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(14, 8, 'Missed out', 4, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(15, 7, 'Missed out from our side', 4, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(16, 6, 'Easy and simple', 1, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(17, 6, 'Inside Help', 2, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(18, 6, 'Commission', 3, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(19, 6, 'Recommendation', 4, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(20, 6, 'Achievement', 5, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(21, 5, '1 week', 1, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(22, 5, '2 weeks', 2, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(23, 5, '1 month', 3, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(24, 5, 'Will come for sure', 4, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'Y'),
(25, 2, '234', 1, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, 'N');

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

--
-- Table structure for table `erp_ws_master_material_submited_scheduled_details`
--

CREATE TABLE `erp_ws_master_material_submited_scheduled_details` (
  `id` int(11) NOT NULL,
  `main_id` int(11) NOT NULL,
  `main_id_status` int(11) NOT NULL DEFAULT 1 COMMENT '1 - active',
  `alternate_id` varchar(255) NOT NULL,
  `type_id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `drawing_no` varchar(255) NOT NULL,
  `title` varchar(255) NOT NULL,
  `location` varchar(255) NOT NULL,
  `reference` varchar(255) NOT NULL,
  `planned_submission_date` date NOT NULL,
  `actual_submission_date` date NOT NULL,
  `returned_date` date NOT NULL,
  `status` enum('Y','N') NOT NULL DEFAULT 'Y',
  `note` varchar(255) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_master_submitted_shedule_type`
--

CREATE TABLE `erp_ws_master_submitted_shedule_type` (
  `id` int(11) NOT NULL,
  `scheduled_type` varchar(255) NOT NULL,
  `is_active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_master_task_category`
--

CREATE TABLE `erp_ws_master_task_category` (
  `id` int(11) NOT NULL,
  `category_name` varchar(255) NOT NULL,
  `isDefault` enum('Y','N') NOT NULL DEFAULT 'N',
  `is_active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_master_task_sub_category`
--

CREATE TABLE `erp_ws_master_task_sub_category` (
  `id` int(11) NOT NULL,
  `task_category_id` int(11) NOT NULL,
  `subcategory_name` varchar(255) NOT NULL,
  `hourly_rate` decimal(15,2) NOT NULL,
  `isDefault` enum('Y','N') NOT NULL DEFAULT 'N',
  `is_active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project`
--

CREATE TABLE `erp_ws_project` (
  `id` int(11) NOT NULL,
  `job_id` int(11) NOT NULL,
  `project_name` varchar(500) NOT NULL,
  `location` varchar(500) NOT NULL,
  `project_date` date NOT NULL,
  `actual_end_date` date NOT NULL,
  `manager_name` varchar(50) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `notes` text NOT NULL,
  `isActive` enum('Y','N') NOT NULL,
  `engineer_notes` text NOT NULL,
  `project_manager_notes` text NOT NULL,
  `project_type` int(11) NOT NULL,
  `admin_percentage` decimal(10,2) NOT NULL DEFAULT 10.00,
  `profit_percentage` decimal(10,2) NOT NULL,
  `status` enum('E','P','PJ','H','C','WP') NOT NULL DEFAULT 'E' COMMENT 'E-Enquiry,P-Proposal,PJ-Project,H-OnHold,C-Completed,WP - Work In Progress',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `erp_ws_project`
--

INSERT INTO `erp_ws_project` (`id`, `job_id`, `project_name`, `location`, `project_date`, `actual_end_date`, `manager_name`, `customer_id`, `notes`, `isActive`, `engineer_notes`, `project_manager_notes`, `project_type`, `admin_percentage`, `profit_percentage`, `status`, `created_by`, `created_date_time`, `updated_by`, `updated_date_time`) VALUES
(25001, 0, 'Project One', 'Dubai', '2025-12-19', '0000-00-00', '1', 1001, '', 'Y', '', '', 0, 10.00, 0.00, 'E', 2, '2025-12-19 09:10:13', 0, '0000-00-00 00:00:00'),
(25002, 0, 'Project Two', 'RAK', '2025-12-19', '0000-00-00', '2', 1002, '', 'Y', '', '', 0, 10.00, 0.00, 'E', 2, '2025-12-19 09:10:44', 0, '0000-00-00 00:00:00');

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

--
-- Table structure for table `erp_ws_project_activities`
--

CREATE TABLE `erp_ws_project_activities` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `phase_id` int(11) NOT NULL,
  `activities_details` text NOT NULL,
  `total_value` decimal(15,3) NOT NULL,
  `previous_work_progress` decimal(15,3) NOT NULL,
  `present_work_progress` decimal(15,3) NOT NULL,
  `reload_activity` enum('Y','N') NOT NULL DEFAULT 'N',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_activity_phase_details`
--

CREATE TABLE `erp_ws_project_activity_phase_details` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `phase_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_dailyschedule`
--

CREATE TABLE `erp_ws_project_dailyschedule` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `schedule_date` date NOT NULL,
  `schedule_description` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_equipments`
--

CREATE TABLE `erp_ws_project_equipments` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `stock_item_id` int(11) NOT NULL COMMENT '(item:the product to be purchased,foreign key reference to inventory item table)',
  `stock_item_name` varchar(255) NOT NULL,
  `stock_item_description` varchar(255) NOT NULL,
  `stock_item_unit` varchar(255) NOT NULL,
  `stock_item_quantity` decimal(15,3) NOT NULL,
  `stock_item_rate` decimal(15,3) NOT NULL,
  `amount` decimal(15,3) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_estimation_details`
--

CREATE TABLE `erp_ws_project_estimation_details` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `phase_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `description` varchar(255) NOT NULL,
  `size` varchar(255) NOT NULL,
  `brand` int(11) NOT NULL,
  `quantity` int(11) NOT NULL,
  `unit` int(11) NOT NULL,
  `material_price` decimal(15,2) NOT NULL,
  `unit_price` decimal(15,2) NOT NULL,
  `total_material_cost` decimal(15,2) NOT NULL,
  `markup_price` int(11) NOT NULL,
  `labour_cost` decimal(15,2) NOT NULL,
  `total_sale_value` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_expense`
--

CREATE TABLE `erp_ws_project_expense` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `expense_date` date NOT NULL,
  `expense_details` text NOT NULL,
  `amount` decimal(15,3) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_induction`
--

CREATE TABLE `erp_ws_project_induction` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `labour_category_id` int(11) NOT NULL,
  `category` int(11) NOT NULL,
  `trade_id` int(11) NOT NULL,
  `type` enum('O','E') NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_job_sheet`
--

CREATE TABLE `erp_ws_project_job_sheet` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `job_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `task_category_id` int(11) NOT NULL,
  `task_subcategory_id` int(11) NOT NULL,
  `project_date` date NOT NULL,
  `job_date` date NOT NULL,
  `is_assigned` enum('Y','N') NOT NULL DEFAULT 'N',
  `assigned_person_id` int(11) NOT NULL,
  `status` varchar(5) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_labour_time`
--

CREATE TABLE `erp_ws_project_labour_time` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `phase_id` int(11) NOT NULL,
  `total_years` int(11) NOT NULL,
  `total_months` int(11) NOT NULL,
  `total_days` int(11) NOT NULL,
  `total_hours` int(11) NOT NULL,
  `total_converted_hrs` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` date NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_memos`
--

CREATE TABLE `erp_ws_project_memos` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `memo_category_id` int(11) NOT NULL,
  `memo_date` date NOT NULL,
  `document_file` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_phase`
--

CREATE TABLE `erp_ws_project_phase` (
  `id` int(11) NOT NULL,
  `project_id` varchar(255) NOT NULL,
  `phase_name` varchar(255) NOT NULL,
  `reference` varchar(200) NOT NULL,
  `client_reference` varchar(200) NOT NULL,
  `notes` text NOT NULL,
  `added_date` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_phase_cost_details`
--

CREATE TABLE `erp_ws_project_phase_cost_details` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `phase_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `material_cost_amount` decimal(15,2) NOT NULL,
  `labour_cost_amount` decimal(15,2) NOT NULL,
  `total_amount` decimal(15,2) NOT NULL,
  `admin_amount` decimal(15,2) NOT NULL,
  `profit_amount` decimal(15,2) NOT NULL,
  `net_amount` decimal(15,2) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_phase_details`
--

CREATE TABLE `erp_ws_project_phase_details` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `phase_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_rework`
--

CREATE TABLE `erp_ws_project_rework` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `rework_date` date NOT NULL,
  `rework_description` text NOT NULL,
  `employee_id` int(11) NOT NULL,
  `qty` decimal(15,3) NOT NULL,
  `cost` decimal(15,3) NOT NULL,
  `selling_price` decimal(15,3) NOT NULL,
  `cost_amt` decimal(15,3) NOT NULL,
  `total_amt` decimal(15,3) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_task_breakup`
--

CREATE TABLE `erp_ws_project_task_breakup` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `task_category_id` int(11) NOT NULL,
  `task_subcategory_id` int(11) NOT NULL,
  `task_start_date` date NOT NULL,
  `task_end_date` date NOT NULL,
  `assigned_person` int(11) NOT NULL,
  `task_cost` decimal(15,2) NOT NULL,
  `percent_of_completion` decimal(3,2) NOT NULL,
  `budget_task_hours` varchar(255) NOT NULL,
  `task_actual_hours` varchar(255) NOT NULL,
  `variance` int(11) NOT NULL,
  `variance_notes` text NOT NULL,
  `proj_status` enum('S','A','C') NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_time_sheet`
--

CREATE TABLE `erp_ws_project_time_sheet` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `proj_det_id` int(11) NOT NULL,
  `task_category_id` int(11) NOT NULL,
  `task_subcategory_id` int(11) DEFAULT NULL,
  `project_date` date NOT NULL,
  `task_start_date_time` datetime NOT NULL,
  `task_end_date_time` datetime NOT NULL,
  `assigned_person_id` int(11) NOT NULL,
  `project_task_hours` varchar(100) NOT NULL,
  `time_sheet_notes` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `erp_ws_project_work_time`
--

CREATE TABLE `erp_ws_project_work_time` (
  `id` int(11) NOT NULL,
  `project_id` int(11) NOT NULL,
  `task_id` int(11) NOT NULL COMMENT 'From ws_project_task_breakup ',
  `sub_task_id` int(11) NOT NULL,
  `work_location` enum('S','F') NOT NULL DEFAULT 'S' COMMENT 'S-Site,F-Factory',
  `employee_id` int(11) NOT NULL,
  `work_date` date NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `total_time` time NOT NULL,
  `worked_hrs` time NOT NULL,
  `project_1_hours` time NOT NULL,
  `project_2_id` int(11) NOT NULL,
  `project_2_hours` time NOT NULL,
  `project_3_id` int(11) NOT NULL,
  `project_3_hours` time NOT NULL,
  `project_4_id` int(11) NOT NULL,
  `project_4_hours` time NOT NULL,
  `project_5_id` int(11) NOT NULL,
  `project_5_hours` time NOT NULL,
  `travel_hrs` time NOT NULL,
  `idle_hrs` time NOT NULL,
  `overtime_hrs` time NOT NULL,
  `overtime_type` enum('B','H','W','N') NOT NULL COMMENT 'B-Normal,H-Holiday,W-Weekend,N-Night SHift',
  `employee_type` enum('C','E') NOT NULL DEFAULT 'C' COMMENT 'C-Company Employees,E-External Labour',
  `task_type` enum('A','O') NOT NULL DEFAULT 'O' COMMENT 'A-Admin Task,O-Company/External Staff Task',
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `temp_customer_uploaded_list`
--

CREATE TABLE `temp_customer_uploaded_list` (
  `id` bigint(20) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `customer_name` varchar(255) NOT NULL,
  `customer_credit_limit` decimal(15,2) NOT NULL,
  `customer_currency_id` int(11) NOT NULL,
  `customer_address` text NOT NULL,
  `customer_city` varchar(255) NOT NULL,
  `customer_postal_code` varchar(255) NOT NULL,
  `customer_state` varchar(255) NOT NULL,
  `customer_country` varchar(255) NOT NULL,
  `customer_emirates_name` int(11) NOT NULL COMMENT '\r\n',
  `customer_phone_no` varchar(255) NOT NULL,
  `customer_email_id` varchar(255) NOT NULL,
  `customer_location` varchar(255) NOT NULL,
  `customer_payment_term` varchar(255) NOT NULL,
  `customer_web` varchar(255) NOT NULL,
  `customer_trn_no` varchar(255) NOT NULL,
  `customer_remarks` text NOT NULL,
  `contact_person` varchar(255) NOT NULL,
  `contact_mobile` varchar(255) NOT NULL,
  `contact_ph` varchar(255) NOT NULL,
  `contact_desg` varchar(255) NOT NULL,
  `contact_dept` varchar(255) NOT NULL,
  `contact_email` varchar(255) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_status` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `temp_inventory_uploaded_list`
--

CREATE TABLE `temp_inventory_uploaded_list` (
  `id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `item_code` varchar(255) NOT NULL COMMENT 'part_number',
  `item` varchar(255) NOT NULL COMMENT 'description',
  `quantity` decimal(15,6) NOT NULL,
  `unit_price` decimal(15,6) NOT NULL,
  `category_name` varchar(255) NOT NULL COMMENT 'generic name',
  `brand_name` varchar(255) NOT NULL,
  `branch` varchar(255) NOT NULL COMMENT 'warehouse name',
  `kitchen_location` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `unit_name` varchar(255) NOT NULL COMMENT 'unit name',
  `unit_id` int(11) NOT NULL,
  `uom_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date_time` datetime NOT NULL,
  `stock_updated` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Indexes for dumped tables
--

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

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

--
-- Indexes for table `del_erp_mas_outlet`
--
ALTER TABLE `del_erp_mas_outlet`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `country_name` (`outlet_name`);

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

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

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

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

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

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

--
-- Indexes for table `erp_acc_ledger`
--
ALTER TABLE `erp_acc_ledger`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ledger` (`ledger_acc_no`,`ledger_acc_name`,`level`,`ledger_main_acc`,`root`,`is_parent`) USING BTREE,
  ADD KEY `ledger_id` (`id`);

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

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

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

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

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

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

--
-- Indexes for table `erp_acc_reconciliation`
--
ALTER TABLE `erp_acc_reconciliation`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ledger_id` (`ledger_id`),
  ADD KEY `subledger_id` (`subledger_id`);

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_activity`
--
ALTER TABLE `erp_activity`
  ADD PRIMARY KEY (`id`),
  ADD KEY `date_to_do` (`deadline_date_time`),
  ADD KEY `date_of_activity` (`task_date_time`),
  ADD KEY `date_to_do_2` (`deadline_date_time`);

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

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

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

--
-- Indexes for table `erp_activity_prospects`
--
ALTER TABLE `erp_activity_prospects`
  ADD PRIMARY KEY (`id`),
  ADD KEY `contact_id` (`contact_id`),
  ADD KEY `typ_of_activity` (`type_of_activity`),
  ADD KEY `date_to_do` (`date_to_do`),
  ADD KEY `date_of_activity` (`date_of_activity`),
  ADD KEY `crm_user_id` (`crm_user_id`),
  ADD KEY `date_to_do_2` (`date_to_do`);

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

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

--
-- Indexes for table `erp_allocated_materials`
--
ALTER TABLE `erp_allocated_materials`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_id` (`product_id`),
  ADD KEY `file_id` (`file_id`),
  ADD KEY `allocation_date` (`allocation_date`),
  ADD KEY `allocation_end_date` (`allocation_end_date`),
  ADD KEY `allocated_from` (`allocated_from`);

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_company_menu_settings`
--
ALTER TABLE `erp_company_menu_settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uniq_company_menu` (`crm_company_id`,`menu_key`);

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

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

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

--
-- Indexes for table `erp_creditnote`
--
ALTER TABLE `erp_creditnote`
  ADD PRIMARY KEY (`id`),
  ADD KEY `crm_user_id` (`crm_user_id`),
  ADD KEY `company_id` (`customer_id`),
  ADD KEY `file_id` (`file_id`),
  ADD KEY `contact_id` (`contact_id`),
  ADD KEY `isActive` (`isActive`),
  ADD KEY `credit_date` (`credited_date`);

--
-- Indexes for table `erp_creditnote_addition`
--
ALTER TABLE `erp_creditnote_addition`
  ADD PRIMARY KEY (`id`),
  ADD KEY `creditnote_id` (`creditnote_id`);

--
-- Indexes for table `erp_creditnote_deduction`
--
ALTER TABLE `erp_creditnote_deduction`
  ADD PRIMARY KEY (`id`),
  ADD KEY `creditnote_id` (`creditnote_id`);

--
-- Indexes for table `erp_creditnote_item`
--
ALTER TABLE `erp_creditnote_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_id` (`product_id`),
  ADD KEY `creditnote_id` (`creditnote_id`),
  ADD KEY `deliverynote_id` (`deliverynote_id`);

--
-- Indexes for table `erp_customer_contact`
--
ALTER TABLE `erp_customer_contact`
  ADD PRIMARY KEY (`id`),
  ADD KEY `company_id` (`customer_id`),
  ADD KEY `id` (`id`);

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_delivery_item`
--
ALTER TABLE `erp_delivery_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `delivery_note_id` (`delivery_note_id`),
  ADD KEY `product_id` (`product_id`);

--
-- Indexes for table `erp_delivery_note`
--
ALTER TABLE `erp_delivery_note`
  ADD PRIMARY KEY (`id`),
  ADD KEY `company_id` (`customer_id`,`contact_id`),
  ADD KEY `contact_id` (`contact_id`),
  ADD KEY `order_id` (`order_id`),
  ADD KEY `isActive` (`isActive`),
  ADD KEY `invoiced` (`invoiced`),
  ADD KEY `sales_group` (`sales_group`),
  ADD KEY `delivery_date` (`delivery_date`),
  ADD KEY `file_id` (`file_id`),
  ADD KEY `ready_to_invoice` (`ready_to_invoice`);

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

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

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

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

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

--
-- Indexes for table `erp_direct_invoice_addition`
--
ALTER TABLE `erp_direct_invoice_addition`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`invoice_id`);

--
-- Indexes for table `erp_direct_invoice_deduction`
--
ALTER TABLE `erp_direct_invoice_deduction`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`invoice_id`);

--
-- Indexes for table `erp_direct_invoice_item`
--
ALTER TABLE `erp_direct_invoice_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoice_id` (`invoice_id`),
  ADD KEY `product_id` (`product_id`);

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

--
-- Indexes for table `erp_direct_purchase_invoice_addition`
--
ALTER TABLE `erp_direct_purchase_invoice_addition`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`purchasing_invoice_id`);

--
-- Indexes for table `erp_direct_purchase_invoice_deduction`
--
ALTER TABLE `erp_direct_purchase_invoice_deduction`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`purchasing_invoice_id`);

--
-- Indexes for table `erp_direct_purchase_invoice_item`
--
ALTER TABLE `erp_direct_purchase_invoice_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoice_id` (`purchasing_invoice_id`),
  ADD KEY `product_id` (`product_id`);

--
-- Indexes for table `erp_document`
--
ALTER TABLE `erp_document`
  ADD PRIMARY KEY (`id`),
  ADD KEY `process_id` (`file_id`),
  ADD KEY `uploaded_from` (`uploaded_from`),
  ADD KEY `isActive` (`isActive`);

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_hr_appraisal_department`
--
ALTER TABLE `erp_hr_appraisal_department`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`department_name`);

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

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

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

--
-- Indexes for table `erp_hr_attendance_manager`
--
ALTER TABLE `erp_hr_attendance_manager`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`employee_id`);

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_hr_department`
--
ALTER TABLE `erp_hr_department`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`department_name`);

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

--
-- Indexes for table `erp_hr_designation`
--
ALTER TABLE `erp_hr_designation`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`designation_name`);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_hr_mas_approval_scheme`
--
ALTER TABLE `erp_hr_mas_approval_scheme`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`scheme_name`);

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

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

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

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

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

--
-- Indexes for table `erp_hr_mas_certificate_name`
--
ALTER TABLE `erp_hr_mas_certificate_name`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`certificate_name`);

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

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

--
-- Indexes for table `erp_hr_mas_company_wps_details`
--
ALTER TABLE `erp_hr_mas_company_wps_details`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`company_name`);

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_hr_mas_inout_document`
--
ALTER TABLE `erp_hr_mas_inout_document`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`document_name`);

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_hr_mas_salarytype`
--
ALTER TABLE `erp_hr_mas_salarytype`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `currency` (`salary_name`);

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

--
-- Indexes for table `erp_hr_mas_team_name`
--
ALTER TABLE `erp_hr_mas_team_name`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`team_name`);

--
-- Indexes for table `erp_hr_mas_training_course`
--
ALTER TABLE `erp_hr_mas_training_course`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`course_name`);

--
-- Indexes for table `erp_hr_mas_training_course_detail`
--
ALTER TABLE `erp_hr_mas_training_course_detail`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`training_course`);

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

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

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

--
-- Indexes for table `erp_hr_monthly_salary_sif`
--
ALTER TABLE `erp_hr_monthly_salary_sif`
  ADD PRIMARY KEY (`id`),
  ADD KEY `voucher_no` (`voucher_id`),
  ADD KEY `posted` (`posted`),
  ADD KEY `salary_processing_id` (`salary_processing_id`),
  ADD KEY `wpscompany_id` (`wpscompany_id`),
  ADD KEY `branch_id` (`branch_id`),
  ADD KEY `legder_id` (`legder_id`),
  ADD KEY `sublegder_id` (`sublegder_id`);

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_hr_reporting_manager`
--
ALTER TABLE `erp_hr_reporting_manager`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`employee_id`);

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

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

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

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

--
-- Indexes for table `erp_hr_salary_processing`
--
ALTER TABLE `erp_hr_salary_processing`
  ADD PRIMARY KEY (`id`),
  ADD KEY `voucher_id` (`voucher_id`),
  ADD KEY `posted` (`posted`);

--
-- Indexes for table `erp_hr_salary_slip`
--
ALTER TABLE `erp_hr_salary_slip`
  ADD PRIMARY KEY (`id`),
  ADD KEY `salary_processing_id` (`salary_processing_id`),
  ADD KEY `employee_id` (`employee_id`);

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_inventory_direct_transfer`
--
ALTER TABLE `erp_inventory_direct_transfer`
  ADD PRIMARY KEY (`id`),
  ADD KEY `from_warehouse_id` (`from_warehouse_id`),
  ADD KEY `to_warehouse_id` (`to_warehouse_id`),
  ADD KEY `transfer_date` (`transfer_date`);

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

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

--
-- Indexes for table `erp_inventory_goods_issue`
--
ALTER TABLE `erp_inventory_goods_issue`
  ADD PRIMARY KEY (`id`),
  ADD KEY `customer_id` (`customer_id`,`goods_issue_date`,`file_id`) USING BTREE;

--
-- Indexes for table `erp_inventory_goods_issue_item`
--
ALTER TABLE `erp_inventory_goods_issue_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `inventory_goods_issue_id` (`goods_issue_id`),
  ADD KEY `product_id` (`product_id`);

--
-- Indexes for table `erp_inventory_goods_receipt`
--
ALTER TABLE `erp_inventory_goods_receipt`
  ADD PRIMARY KEY (`id`),
  ADD KEY `goods_receipt_date` (`goods_receipt_date`),
  ADD KEY `file_id` (`file_id`),
  ADD KEY `isActive` (`isActive`),
  ADD KEY `customer_id` (`customer_id`);

--
-- Indexes for table `erp_inventory_goods_receipt_item`
--
ALTER TABLE `erp_inventory_goods_receipt_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `inventory_goods_receipt_id` (`goods_receipt_id`),
  ADD KEY `product_id` (`product_id`);

--
-- Indexes for table `erp_inventory_indirect_transfer`
--
ALTER TABLE `erp_inventory_indirect_transfer`
  ADD PRIMARY KEY (`id`),
  ADD KEY `from_warehouse_id` (`from_warehouse_id`),
  ADD KEY `to_warehouse_id` (`to_warehouse_id`),
  ADD KEY `transfer_date` (`transfer_date`);

--
-- Indexes for table `erp_inventory_indirect_transfer_item`
--
ALTER TABLE `erp_inventory_indirect_transfer_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `item_id` (`item_id`);

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

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

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

--
-- Indexes for table `erp_inventory_uploaded_stock`
--
ALTER TABLE `erp_inventory_uploaded_stock`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_id` (`product_id`);

--
-- Indexes for table `erp_invoice`
--
ALTER TABLE `erp_invoice`
  ADD PRIMARY KEY (`id`),
  ADD KEY `company_id` (`customer_id`),
  ADD KEY `file_id` (`file_id`),
  ADD KEY `order_id` (`order_id`),
  ADD KEY `sales_group` (`sales_group_id`),
  ADD KEY `invoice_date` (`invoice_date`),
  ADD KEY `isActive` (`isActive`),
  ADD KEY `project_id` (`project_id`);

--
-- Indexes for table `erp_invoice_addition`
--
ALTER TABLE `erp_invoice_addition`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoice_id` (`invoice_id`),
  ADD KEY `invoice_id_2` (`invoice_id`);

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

--
-- Indexes for table `erp_invoice_deduction`
--
ALTER TABLE `erp_invoice_deduction`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`invoice_id`);

--
-- Indexes for table `erp_invoice_exchange`
--
ALTER TABLE `erp_invoice_exchange`
  ADD PRIMARY KEY (`id`),
  ADD KEY `crm_user_id` (`crm_user_id`),
  ADD KEY `company_id` (`customer_id`),
  ADD KEY `file_id` (`file_id`),
  ADD KEY `contact_id` (`contact_id`),
  ADD KEY `isActive` (`isActive`),
  ADD KEY `credit_date` (`credited_date`);

--
-- Indexes for table `erp_invoice_exchange_item`
--
ALTER TABLE `erp_invoice_exchange_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_id` (`product_id`),
  ADD KEY `creditnote_id` (`creditnote_id`),
  ADD KEY `deliverynote_id` (`deliverynote_id`);

--
-- Indexes for table `erp_invoice_item`
--
ALTER TABLE `erp_invoice_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoice_id` (`invoice_id`),
  ADD KEY `product_id` (`product_id`);

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

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

--
-- Indexes for table `erp_lead`
--
ALTER TABLE `erp_lead`
  ADD PRIMARY KEY (`id`),
  ADD KEY `company_id` (`customer_id`,`contact_id`),
  ADD KEY `file_id` (`file_id`),
  ADD KEY `crm_user_id` (`crm_user_id`),
  ADD KEY `closing_date` (`closing_date`),
  ADD KEY `enq_date` (`enq_date`),
  ADD KEY `contact_id` (`contact_id`);

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

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

--
-- Indexes for table `erp_master_file`
--
ALTER TABLE `erp_master_file`
  ADD PRIMARY KEY (`id`),
  ADD KEY `crm_user_id` (`crm_user_id`),
  ADD KEY `lead_owner_id` (`lead_owner_id`),
  ADD KEY `start_from` (`start_from`),
  ADD KEY `current_process_status` (`current_process_status`),
  ADD KEY `approved_by` (`approved_by`),
  ADD KEY `is_approved` (`is_approved`);

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

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

--
-- Indexes for table `erp_mas_aidashboard_settings_data`
--
ALTER TABLE `erp_mas_aidashboard_settings_data`
  ADD PRIMARY KEY (`id`),
  ADD KEY `rating_id` (`rating_id`),
  ADD KEY `customer_id` (`customer_id`);

--
-- Indexes for table `erp_mas_bank`
--
ALTER TABLE `erp_mas_bank`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_name` (`bank_name`);

--
-- Indexes for table `erp_mas_barcode_heading`
--
ALTER TABLE `erp_mas_barcode_heading`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `country_name` (`heading`);

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

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

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

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

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

--
-- Indexes for table `erp_mas_country`
--
ALTER TABLE `erp_mas_country`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `country_name` (`country_name`);

--
-- Indexes for table `erp_mas_currency`
--
ALTER TABLE `erp_mas_currency`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `currency` (`currency`);

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

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

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

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

--
-- Indexes for table `erp_mas_erp_notification`
--
ALTER TABLE `erp_mas_erp_notification`
  ADD PRIMARY KEY (`id`),
  ADD KEY `D1` (`notification_date_time`);

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_mas_inv_bin`
--
ALTER TABLE `erp_mas_inv_bin`
  ADD PRIMARY KEY (`id`),
  ADD KEY `rack_id` (`rack_id`);

--
-- Indexes for table `erp_mas_inv_brand`
--
ALTER TABLE `erp_mas_inv_brand`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `product_class` (`brand_name`);

--
-- Indexes for table `erp_mas_inv_item_color`
--
ALTER TABLE `erp_mas_inv_item_color`
  ADD PRIMARY KEY (`id`),
  ADD KEY `id` (`id`,`color_name`);

--
-- Indexes for table `erp_mas_inv_rack`
--
ALTER TABLE `erp_mas_inv_rack`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `name` (`rack_name`);

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

--
-- Indexes for table `erp_mas_inv_unit`
--
ALTER TABLE `erp_mas_inv_unit`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unit` (`unit`);

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

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

--
-- Indexes for table `erp_mas_location`
--
ALTER TABLE `erp_mas_location`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `country_name` (`location_name`);

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

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

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

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

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

--
-- Indexes for table `erp_mas_notification_type`
--
ALTER TABLE `erp_mas_notification_type`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `group_name` (`type_name`);

--
-- Indexes for table `erp_mas_outlet`
--
ALTER TABLE `erp_mas_outlet`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `country_name` (`outlet_name`);

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

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

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

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

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

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

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

--
-- Indexes for table `erp_mas_quotation_validity`
--
ALTER TABLE `erp_mas_quotation_validity`
  ADD PRIMARY KEY (`ld`);

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

--
-- Indexes for table `erp_mas_sales_group`
--
ALTER TABLE `erp_mas_sales_group`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `group_name` (`group_name`);

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_mas_vehicle_backuo_22_!2_25`
--
ALTER TABLE `erp_mas_vehicle_backuo_22_!2_25`
  ADD PRIMARY KEY (`id`);

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_order`
--
ALTER TABLE `erp_order`
  ADD PRIMARY KEY (`id`),
  ADD KEY `file_id` (`file_id`,`customer_id`,`contact_id`),
  ADD KEY `company_id` (`customer_id`),
  ADD KEY `delivery_date` (`delivery_date`),
  ADD KEY `order_date` (`order_date`),
  ADD KEY `customer_id` (`customer_id`);

--
-- Indexes for table `erp_order_addition`
--
ALTER TABLE `erp_order_addition`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`order_id`);

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

--
-- Indexes for table `erp_order_deduction`
--
ALTER TABLE `erp_order_deduction`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`order_id`);

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

--
-- Indexes for table `erp_order_item`
--
ALTER TABLE `erp_order_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`order_id`),
  ADD KEY `product_id` (`product_id`),
  ADD KEY `order_id` (`order_id`),
  ADD KEY `product_id_2` (`product_id`),
  ADD KEY `quantity` (`quantity`),
  ADD KEY `unit_id` (`unit_id`);

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_production_goods_receipt_addition`
--
ALTER TABLE `erp_production_goods_receipt_addition`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`production_goods_receipt_id`);

--
-- Indexes for table `erp_production_goods_receipt_deduction`
--
ALTER TABLE `erp_production_goods_receipt_deduction`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`production_goods_receipt_id`);

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

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

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

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

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

--
-- Indexes for table `erp_product_location_change_rackbin`
--
ALTER TABLE `erp_product_location_change_rackbin`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quantity` (`quantity`),
  ADD KEY `quantity_2` (`quantity`);

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_purchasinginvoice_item`
--
ALTER TABLE `erp_purchasinginvoice_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoice_id` (`purchasing_invoice_id`),
  ADD KEY `product_id` (`product_id`);

--
-- Indexes for table `erp_purchasing_debit_note`
--
ALTER TABLE `erp_purchasing_debit_note`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoice_id` (`purchasing_invoice_id`,`vendor_id`),
  ADD KEY `crm_user_id` (`crm_user_id`),
  ADD KEY `company_id` (`vendor_id`),
  ADD KEY `file_id` (`file_id`),
  ADD KEY `contact_id` (`contact_id`);

--
-- Indexes for table `erp_purchasing_debit_note_addition`
--
ALTER TABLE `erp_purchasing_debit_note_addition`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`purchasing_debit_note_id`);

--
-- Indexes for table `erp_purchasing_debit_note_deduction`
--
ALTER TABLE `erp_purchasing_debit_note_deduction`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`purchasing_debit_note_id`);

--
-- Indexes for table `erp_purchasing_debit_note_item`
--
ALTER TABLE `erp_purchasing_debit_note_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `goods_return_id` (`purchasing_debitnote_id`,`product_id`),
  ADD KEY `product_id` (`product_id`);

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

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

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

--
-- Indexes for table `erp_purchasing_invoice_addition`
--
ALTER TABLE `erp_purchasing_invoice_addition`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`purchasing_invoice_id`);

--
-- Indexes for table `erp_purchasing_invoice_deduction`
--
ALTER TABLE `erp_purchasing_invoice_deduction`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`purchasing_invoice_id`);

--
-- Indexes for table `erp_purchasing_invoice_landed_cost`
--
ALTER TABLE `erp_purchasing_invoice_landed_cost`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`purchasing_invoice_id`);

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

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

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

--
-- Indexes for table `erp_purchasing_order_addition`
--
ALTER TABLE `erp_purchasing_order_addition`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`purchasing_order_id`);

--
-- Indexes for table `erp_purchasing_order_deduction`
--
ALTER TABLE `erp_purchasing_order_deduction`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`purchasing_order_id`);

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

--
-- Indexes for table `erp_purchasing_order_shipment_document`
--
ALTER TABLE `erp_purchasing_order_shipment_document`
  ADD PRIMARY KEY (`id`),
  ADD KEY `process_id` (`purchasing_order_id`),
  ADD KEY `isActive` (`isActive`);

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

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

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

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

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

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

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

--
-- Indexes for table `erp_quotes`
--
ALTER TABLE `erp_quotes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `file_id` (`file_id`,`customer_id`,`contact_id`),
  ADD KEY `company_id` (`customer_id`),
  ADD KEY `contact_id` (`contact_id`),
  ADD KEY `qtn_validity` (`qtn_validity`);

--
-- Indexes for table `erp_quotes_addition`
--
ALTER TABLE `erp_quotes_addition`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`quotes_id`);

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

--
-- Indexes for table `erp_quotes_deduction`
--
ALTER TABLE `erp_quotes_deduction`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`quotes_id`);

--
-- Indexes for table `erp_quotes_item`
--
ALTER TABLE `erp_quotes_item`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`quotes_id`),
  ADD KEY `product_id` (`product_id`);

--
-- Indexes for table `erp_quotes_item_changed`
--
ALTER TABLE `erp_quotes_item_changed`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`quotes_id`),
  ADD KEY `product_id` (`product_id`);

--
-- Indexes for table `erp_quotes_item_test`
--
ALTER TABLE `erp_quotes_item_test`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotes_id` (`quotes_id`),
  ADD KEY `product_id` (`product_id`);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `erp_stock_ledger`
--
ALTER TABLE `erp_stock_ledger`
  ADD PRIMARY KEY (`id`),
  ADD KEY `transaction_date` (`transaction_date`),
  ADD KEY `product_id` (`product_id`),
  ADD KEY `warehouse_id` (`warehouse_id`),
  ADD KEY `header_id` (`header_id`),
  ADD KEY `transaction_type` (`transaction_type`);

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

--
-- Indexes for table `erp_stock_reorder_level`
--
ALTER TABLE `erp_stock_reorder_level`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_id` (`product_id`),
  ADD KEY `warehouse_id` (`warehouse_id`);

--
-- Indexes for table `erp_store`
--
ALTER TABLE `erp_store`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `part_number` (`part_number`),
  ADD KEY `unit_id` (`unit_id`),
  ADD KEY `tax_code` (`tax_code`),
  ADD KEY `description` (`description`),
  ADD KEY `generic_name` (`generic_id`),
  ADD KEY `product_class_id` (`brand_class_id`),
  ADD KEY `non_stock_item` (`inventory_item_type`),
  ADD KEY `id_2` (`part_number`,`generic_id`,`description`,`brand_class_id`,`inventory_item_type`),
  ADD KEY `id` (`id`);

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

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

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

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

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

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

--
-- Indexes for table `erp_unit_of_measurement`
--
ALTER TABLE `erp_unit_of_measurement`
  ADD PRIMARY KEY (`id`),
  ADD KEY `id` (`id`),
  ADD KEY `product_id` (`product_id`),
  ADD KEY `factor` (`factor`);

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

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

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

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

--
-- Indexes for table `erp_vendor_contact`
--
ALTER TABLE `erp_vendor_contact`
  ADD PRIMARY KEY (`id`),
  ADD KEY `company_id` (`vendor_id`),
  ADD KEY `id` (`id`);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `temp_customer_uploaded_list`
--
ALTER TABLE `temp_customer_uploaded_list`
  ADD PRIMARY KEY (`id`),
  ADD KEY `customer_name` (`customer_name`),
  ADD KEY `customer_phone_no` (`customer_phone_no`);

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `erp_company_menu_settings`
--
ALTER TABLE `erp_company_menu_settings`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=270;

--
-- AUTO_INCREMENT for table `erp_company_settings`
--
ALTER TABLE `erp_company_settings`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

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

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

--
-- AUTO_INCREMENT for table `erp_creditnote`
--
ALTER TABLE `erp_creditnote`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50006;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `erp_hr_mas_company_branch_sponsor`
--
ALTER TABLE `erp_hr_mas_company_branch_sponsor`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `erp_inventory_direct_transfer`
--
ALTER TABLE `erp_inventory_direct_transfer`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `erp_inventory_indirect_transfer`
--
ALTER TABLE `erp_inventory_indirect_transfer`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20001;

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

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

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

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

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

--
-- AUTO_INCREMENT for table `erp_invoice`
--
ALTER TABLE `erp_invoice`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40017;

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

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

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

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

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

--
-- AUTO_INCREMENT for table `erp_invoice_item`
--
ALTER TABLE `erp_invoice_item`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

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

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

--
-- AUTO_INCREMENT for table `erp_lead`
--
ALTER TABLE `erp_lead`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1004;

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

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

--
-- AUTO_INCREMENT for table `erp_master_file`
--
ALTER TABLE `erp_master_file`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1046;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `erp_mas_inventory_item_type`
--
ALTER TABLE `erp_mas_inventory_item_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `erp_mas_inventory_stock_adjustment_type`
--
ALTER TABLE `erp_mas_inventory_stock_adjustment_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `erp_mas_invoice_status`
--
ALTER TABLE `erp_mas_invoice_status`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `erp_mas_invoice_type`
--
ALTER TABLE `erp_mas_invoice_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `erp_mas_inv_bin`
--
ALTER TABLE `erp_mas_inv_bin`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `erp_mas_inv_brand`
--
ALTER TABLE `erp_mas_inv_brand`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `erp_mas_inv_item_color`
--
ALTER TABLE `erp_mas_inv_item_color`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;

--
-- AUTO_INCREMENT for table `erp_mas_inv_rack`
--
ALTER TABLE `erp_mas_inv_rack`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `erp_mas_inv_tax`
--
ALTER TABLE `erp_mas_inv_tax`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `erp_mas_inv_unit`
--
ALTER TABLE `erp_mas_inv_unit`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `erp_mas_issue_type`
--
ALTER TABLE `erp_mas_issue_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `erp_mas_landed_cost_items`
--
ALTER TABLE `erp_mas_landed_cost_items`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `erp_mas_location`
--
ALTER TABLE `erp_mas_location`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_mas_maintainance`
--
ALTER TABLE `erp_mas_maintainance`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `erp_mas_maintainance_service`
--
ALTER TABLE `erp_mas_maintainance_service`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_mas_module`
--
ALTER TABLE `erp_mas_module`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `erp_mas_module_settings`
--
ALTER TABLE `erp_mas_module_settings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `erp_mas_notification`
--
ALTER TABLE `erp_mas_notification`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;

--
-- AUTO_INCREMENT for table `erp_mas_notification_type`
--
ALTER TABLE `erp_mas_notification_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `erp_mas_outlet`
--
ALTER TABLE `erp_mas_outlet`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_mas_payment_term`
--
ALTER TABLE `erp_mas_payment_term`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `erp_mas_probability`
--
ALTER TABLE `erp_mas_probability`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `erp_mas_project_1`
--
ALTER TABLE `erp_mas_project_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `erp_mas_project_2`
--
ALTER TABLE `erp_mas_project_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=75;

--
-- AUTO_INCREMENT for table `erp_mas_project_3`
--
ALTER TABLE `erp_mas_project_3`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=120;

--
-- AUTO_INCREMENT for table `erp_mas_project_classification`
--
ALTER TABLE `erp_mas_project_classification`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `erp_mas_quotation_close_reason`
--
ALTER TABLE `erp_mas_quotation_close_reason`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `erp_mas_quotes_status`
--
ALTER TABLE `erp_mas_quotes_status`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `erp_mas_sales_group`
--
ALTER TABLE `erp_mas_sales_group`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `erp_mas_services`
--
ALTER TABLE `erp_mas_services`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `erp_mas_shipping`
--
ALTER TABLE `erp_mas_shipping`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `erp_mas_source_of_lead`
--
ALTER TABLE `erp_mas_source_of_lead`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `erp_mas_status`
--
ALTER TABLE `erp_mas_status`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `erp_mas_sub_module`
--
ALTER TABLE `erp_mas_sub_module`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `erp_mas_supplier_types`
--
ALTER TABLE `erp_mas_supplier_types`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `erp_mas_terms_and_conditions`
--
ALTER TABLE `erp_mas_terms_and_conditions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `erp_mas_user_group`
--
ALTER TABLE `erp_mas_user_group`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;

--
-- AUTO_INCREMENT for table `erp_mas_vehicle`
--
ALTER TABLE `erp_mas_vehicle`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_mas_vehicle_backuo_22_!2_25`
--
ALTER TABLE `erp_mas_vehicle_backuo_22_!2_25`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `erp_mas_vehicle_service_status`
--
ALTER TABLE `erp_mas_vehicle_service_status`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `erp_meeting`
--
ALTER TABLE `erp_meeting`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_meeting_activity`
--
ALTER TABLE `erp_meeting_activity`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_meeting_transaction`
--
ALTER TABLE `erp_meeting_transaction`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_meeting_type`
--
ALTER TABLE `erp_meeting_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_messaging`
--
ALTER TABLE `erp_messaging`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_models`
--
ALTER TABLE `erp_models`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=329;

--
-- AUTO_INCREMENT for table `erp_opening_balance`
--
ALTER TABLE `erp_opening_balance`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_opening_cash`
--
ALTER TABLE `erp_opening_cash`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_order`
--
ALTER TABLE `erp_order`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20010;

--
-- AUTO_INCREMENT for table `erp_order_addition`
--
ALTER TABLE `erp_order_addition`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `erp_order_contract_item`
--
ALTER TABLE `erp_order_contract_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=107;

--
-- AUTO_INCREMENT for table `erp_order_deduction`
--
ALTER TABLE `erp_order_deduction`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `erp_order_invoice_advance`
--
ALTER TABLE `erp_order_invoice_advance`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_order_item`
--
ALTER TABLE `erp_order_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;

--
-- AUTO_INCREMENT for table `erp_order_item_colour`
--
ALTER TABLE `erp_order_item_colour`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_order_proforma_invoice`
--
ALTER TABLE `erp_order_proforma_invoice`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_pricing_group`
--
ALTER TABLE `erp_pricing_group`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_pricing_group_product_relation`
--
ALTER TABLE `erp_pricing_group_product_relation`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_production_billofmaterial`
--
ALTER TABLE `erp_production_billofmaterial`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10002;

--
-- AUTO_INCREMENT for table `erp_production_billofmaterial_item`
--
ALTER TABLE `erp_production_billofmaterial_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `erp_production_goods_issue`
--
ALTER TABLE `erp_production_goods_issue`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30001;

--
-- AUTO_INCREMENT for table `erp_production_goods_issues_return_item`
--
ALTER TABLE `erp_production_goods_issues_return_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_production_goods_issue_item`
--
ALTER TABLE `erp_production_goods_issue_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_production_goods_receipt`
--
ALTER TABLE `erp_production_goods_receipt`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40001;

--
-- AUTO_INCREMENT for table `erp_production_goods_receipt_addition`
--
ALTER TABLE `erp_production_goods_receipt_addition`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_production_goods_receipt_deduction`
--
ALTER TABLE `erp_production_goods_receipt_deduction`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_production_goods_receipt_item`
--
ALTER TABLE `erp_production_goods_receipt_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_production_order`
--
ALTER TABLE `erp_production_order`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=90003;

--
-- AUTO_INCREMENT for table `erp_production_order_item`
--
ALTER TABLE `erp_production_order_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `erp_product_class`
--
ALTER TABLE `erp_product_class`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_product_cost_new`
--
ALTER TABLE `erp_product_cost_new`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_product_location_change_rackbin`
--
ALTER TABLE `erp_product_location_change_rackbin`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_product_location_details`
--
ALTER TABLE `erp_product_location_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_project`
--
ALTER TABLE `erp_project`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_project_external_company`
--
ALTER TABLE `erp_project_external_company`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_project_external_labour`
--
ALTER TABLE `erp_project_external_labour`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_prospects_activity_master`
--
ALTER TABLE `erp_prospects_activity_master`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_purchase_analysis_items`
--
ALTER TABLE `erp_purchase_analysis_items`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `erp_purchase_movement_analysis`
--
ALTER TABLE `erp_purchase_movement_analysis`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_purchase_movement_analysis_details`
--
ALTER TABLE `erp_purchase_movement_analysis_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_purchasinginvoice`
--
ALTER TABLE `erp_purchasinginvoice`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=70019;

--
-- AUTO_INCREMENT for table `erp_purchasinginvoice_item`
--
ALTER TABLE `erp_purchasinginvoice_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `erp_purchasing_debit_note`
--
ALTER TABLE `erp_purchasing_debit_note`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=80003;

--
-- AUTO_INCREMENT for table `erp_purchasing_debit_note_addition`
--
ALTER TABLE `erp_purchasing_debit_note_addition`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_purchasing_debit_note_deduction`
--
ALTER TABLE `erp_purchasing_debit_note_deduction`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_purchasing_debit_note_item`
--
ALTER TABLE `erp_purchasing_debit_note_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `erp_purchasing_enquiry`
--
ALTER TABLE `erp_purchasing_enquiry`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=85009;

--
-- AUTO_INCREMENT for table `erp_purchasing_enquiry_non_stock_item`
--
ALTER TABLE `erp_purchasing_enquiry_non_stock_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_purchasing_enquiry_stock_item`
--
ALTER TABLE `erp_purchasing_enquiry_stock_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;

--
-- AUTO_INCREMENT for table `erp_purchasing_invoice_addition`
--
ALTER TABLE `erp_purchasing_invoice_addition`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `erp_purchasing_invoice_deduction`
--
ALTER TABLE `erp_purchasing_invoice_deduction`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `erp_purchasing_invoice_landed_cost`
--
ALTER TABLE `erp_purchasing_invoice_landed_cost`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_purchasing_material_receipt`
--
ALTER TABLE `erp_purchasing_material_receipt`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '(MRV number)', AUTO_INCREMENT=65014;

--
-- AUTO_INCREMENT for table `erp_purchasing_material_receipt_item`
--
ALTER TABLE `erp_purchasing_material_receipt_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT for table `erp_purchasing_order`
--
ALTER TABLE `erp_purchasing_order`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=60015;

--
-- AUTO_INCREMENT for table `erp_purchasing_order_addition`
--
ALTER TABLE `erp_purchasing_order_addition`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;

--
-- AUTO_INCREMENT for table `erp_purchasing_order_deduction`
--
ALTER TABLE `erp_purchasing_order_deduction`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `erp_purchasing_order_shipment_details`
--
ALTER TABLE `erp_purchasing_order_shipment_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_purchasing_order_shipment_document`
--
ALTER TABLE `erp_purchasing_order_shipment_document`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_purchasing_order_stock_item`
--
ALTER TABLE `erp_purchasing_order_stock_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=62;

--
-- AUTO_INCREMENT for table `erp_purchasing_order_stock_item_temp`
--
ALTER TABLE `erp_purchasing_order_stock_item_temp`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `erp_purchasing_order_temp`
--
ALTER TABLE `erp_purchasing_order_temp`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `erp_purchasing_requisition`
--
ALTER TABLE `erp_purchasing_requisition`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=75008;

--
-- AUTO_INCREMENT for table `erp_purchasing_requisition_non_stock_item`
--
ALTER TABLE `erp_purchasing_requisition_non_stock_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `erp_purchasing_requisition_stock_item`
--
ALTER TABLE `erp_purchasing_requisition_stock_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=48;

--
-- AUTO_INCREMENT for table `erp_quotation_schedules`
--
ALTER TABLE `erp_quotation_schedules`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_quotes`
--
ALTER TABLE `erp_quotes`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10008;

--
-- AUTO_INCREMENT for table `erp_quotes_addition`
--
ALTER TABLE `erp_quotes_addition`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT for table `erp_quotes_contract_item`
--
ALTER TABLE `erp_quotes_contract_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=165;

--
-- AUTO_INCREMENT for table `erp_quotes_deduction`
--
ALTER TABLE `erp_quotes_deduction`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT for table `erp_quotes_item`
--
ALTER TABLE `erp_quotes_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;

--
-- AUTO_INCREMENT for table `erp_quotes_item_changed`
--
ALTER TABLE `erp_quotes_item_changed`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_quotes_item_test`
--
ALTER TABLE `erp_quotes_item_test`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_quotes_revision_history`
--
ALTER TABLE `erp_quotes_revision_history`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_sales_man_target`
--
ALTER TABLE `erp_sales_man_target`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_sales_price_group`
--
ALTER TABLE `erp_sales_price_group`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_sales_price_group_name`
--
ALTER TABLE `erp_sales_price_group_name`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_sales_repair_request_item`
--
ALTER TABLE `erp_sales_repair_request_item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=199;

--
-- AUTO_INCREMENT for table `erp_sales_target_master`
--
ALTER TABLE `erp_sales_target_master`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_sale_repair_request`
--
ALTER TABLE `erp_sale_repair_request`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=63;

--
-- AUTO_INCREMENT for table `erp_serialno_change_history`
--
ALTER TABLE `erp_serialno_change_history`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_serialno_change_history_details`
--
ALTER TABLE `erp_serialno_change_history_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_service_contract_details`
--
ALTER TABLE `erp_service_contract_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_service_customer_location`
--
ALTER TABLE `erp_service_customer_location`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;

--
-- AUTO_INCREMENT for table `erp_service_details`
--
ALTER TABLE `erp_service_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;

--
-- AUTO_INCREMENT for table `erp_service_employee`
--
ALTER TABLE `erp_service_employee`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_service_schedules`
--
ALTER TABLE `erp_service_schedules`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_service_status`
--
ALTER TABLE `erp_service_status`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `erp_service_store`
--
ALTER TABLE `erp_service_store`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_service_store_details`
--
ALTER TABLE `erp_service_store_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_service_store_material_details`
--
ALTER TABLE `erp_service_store_material_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_stock_count_file`
--
ALTER TABLE `erp_stock_count_file`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_stock_ledger`
--
ALTER TABLE `erp_stock_ledger`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57;

--
-- AUTO_INCREMENT for table `erp_stock_physical_quantity`
--
ALTER TABLE `erp_stock_physical_quantity`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_stock_reorder_level`
--
ALTER TABLE `erp_stock_reorder_level`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_store`
--
ALTER TABLE `erp_store`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `erp_store_rate`
--
ALTER TABLE `erp_store_rate`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_supplier_docs`
--
ALTER TABLE `erp_supplier_docs`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_table_order`
--
ALTER TABLE `erp_table_order`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_tracking_details`
--
ALTER TABLE `erp_tracking_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_tracking_file`
--
ALTER TABLE `erp_tracking_file`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_unit`
--
ALTER TABLE `erp_unit`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `erp_unit_of_measurement`
--
ALTER TABLE `erp_unit_of_measurement`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `erp_upload_inventory`
--
ALTER TABLE `erp_upload_inventory`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_user_notification_history`
--
ALTER TABLE `erp_user_notification_history`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=98;

--
-- AUTO_INCREMENT for table `erp_vehicle_allotment`
--
ALTER TABLE `erp_vehicle_allotment`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_vehicle_doc_file`
--
ALTER TABLE `erp_vehicle_doc_file`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `erp_vendor_contact`
--
ALTER TABLE `erp_vendor_contact`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `erp_vendor_shipping_details`
--
ALTER TABLE `erp_vendor_shipping_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `erp_workspace`
--
ALTER TABLE `erp_workspace`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_workspace_note`
--
ALTER TABLE `erp_workspace_note`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_workspace_project_module_details`
--
ALTER TABLE `erp_workspace_project_module_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=81;

--
-- AUTO_INCREMENT for table `erp_workspace_qtns`
--
ALTER TABLE `erp_workspace_qtns`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT for table `erp_ws_master_material_submited_scheduled_details`
--
ALTER TABLE `erp_ws_master_material_submited_scheduled_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_master_submitted_shedule_type`
--
ALTER TABLE `erp_ws_master_submitted_shedule_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_master_task_category`
--
ALTER TABLE `erp_ws_master_task_category`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_master_task_sub_category`
--
ALTER TABLE `erp_ws_master_task_sub_category`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project`
--
ALTER TABLE `erp_ws_project`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25003;

--
-- AUTO_INCREMENT for table `erp_ws_project_activities`
--
ALTER TABLE `erp_ws_project_activities`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_activity_phase_details`
--
ALTER TABLE `erp_ws_project_activity_phase_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_dailyschedule`
--
ALTER TABLE `erp_ws_project_dailyschedule`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_equipments`
--
ALTER TABLE `erp_ws_project_equipments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_estimation_details`
--
ALTER TABLE `erp_ws_project_estimation_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_expense`
--
ALTER TABLE `erp_ws_project_expense`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_induction`
--
ALTER TABLE `erp_ws_project_induction`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_job_sheet`
--
ALTER TABLE `erp_ws_project_job_sheet`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_labour_time`
--
ALTER TABLE `erp_ws_project_labour_time`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_memos`
--
ALTER TABLE `erp_ws_project_memos`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_phase`
--
ALTER TABLE `erp_ws_project_phase`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_phase_cost_details`
--
ALTER TABLE `erp_ws_project_phase_cost_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_phase_details`
--
ALTER TABLE `erp_ws_project_phase_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_rework`
--
ALTER TABLE `erp_ws_project_rework`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_task_breakup`
--
ALTER TABLE `erp_ws_project_task_breakup`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_time_sheet`
--
ALTER TABLE `erp_ws_project_time_sheet`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `erp_ws_project_work_time`
--
ALTER TABLE `erp_ws_project_work_time`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `temp_customer_uploaded_list`
--
ALTER TABLE `temp_customer_uploaded_list`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `temp_inventory_uploaded_list`
--
ALTER TABLE `temp_inventory_uploaded_list`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;

