-- Table structure for table `person_documents`
--

CREATE TABLE IF NOT EXISTS `person_documents` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `person_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `document_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `document_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `issue_date` datetime(3) DEFAULT NULL,
  `expiry_date` datetime(3) DEFAULT NULL,
  `document_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `person_documents_id_key` (`id`),
  KEY `person_documents_created_by_idx` (`created_by`),
  KEY `person_documents_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `person_educations`
--

CREATE TABLE IF NOT EXISTS `person_educations` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `person_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `degree` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `institution` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `field_of_study` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `start_date` datetime(3) DEFAULT NULL,
  `end_date` datetime(3) DEFAULT NULL,
  `grade` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `person_educations_id_key` (`id`),
  KEY `person_educations_created_by_idx` (`created_by`),
  KEY `person_educations_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `person_experiences`
--

CREATE TABLE IF NOT EXISTS `person_experiences` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `person_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `designation` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` datetime(3) NOT NULL,
  `end_date` datetime(3) DEFAULT NULL,
  `responsibilities` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `person_experiences_id_key` (`id`),
  KEY `person_experiences_created_by_idx` (`created_by`),
  KEY `person_experiences_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `person_types`
--

CREATE TABLE IF NOT EXISTS `person_types` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `person_types_id_key` (`id`),
  UNIQUE KEY `person_types_code_key` (`code`),
  KEY `person_types_created_by_idx` (`created_by`),
  KEY `person_types_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_types`
--

INSERT INTO `person_types` (`id`, `name`, `code`, `description`, `type`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('51edce5a-5786-48eb-8a83-32e8064908c7', 'Farmer', 'far', '', 'FARMER', 1, '2025-03-14 18:01:42.015', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-14 18:01:42.015', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('70b99fb1-4b8c-44bc-943b-635da5613d13', 'Store keeper', 'sk', '', 'STORE_KEEPER', 1, '2025-03-14 18:02:02.902', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-14 18:02:02.902', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `productdelivery`
--

CREATE TABLE IF NOT EXISTS `productdelivery` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `delivery_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `sales_order_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `location_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `rack_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `delivery_agent` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `expected_delivery_date` datetime NOT NULL,
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total_amount` decimal(65,30) NOT NULL DEFAULT '0.000000000000000000000000000000',
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'CREATED',
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `updated_at` datetime(3) NOT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `customer_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `ProductDelivery_delivery_no_key` (`delivery_no`),
  KEY `ProductDelivery_sales_order_id_idx` (`sales_order_id`),
  KEY `ProductDelivery_location_id_idx` (`location_id`),
  KEY `ProductDelivery_rack_id_idx` (`rack_id`),
  KEY `ProductDelivery_created_by_idx` (`created_by`),
  KEY `ProductDelivery_company_id_idx` (`company_id`),
  KEY `ProductDelivery_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `productdelivery`
--

INSERT INTO `productdelivery` (`id`, `delivery_no`, `sales_order_id`, `location_id`, `rack_id`, `delivery_agent`, `expected_delivery_date`, `remarks`, `total_amount`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`, `company_id`, `customer_address`) VALUES
('7fc10354-2da9-49a5-b6fb-7be6220c31f2', 'DL2025030003', '6711b65b-1a9c-48c7-9531-503c92294077', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', '68d8a13f-cc72-4f17-9374-8aa507d444e9', '2025-03-19 00:00:00', 'deliver carefully', 0.000000000000000000000000000000, 'DELIVERED', '6f587b32-7016-4e98-a447-cfb554adcb0e', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 05:45:09.220', '2025-03-18 06:02:00.966', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'banani kamal ataturk'),
('d6392a00-5f17-4f2b-92be-5725d0b307a4', 'DL2025030002', 'd2f6b77d-f38f-4929-8827-03be8d98617e', 'c62883d1-389e-47b9-ba0c-0f431a92484b', '80605747-4275-428c-ab79-9b228279452f', '68d8a13f-cc72-4f17-9374-8aa507d444e9', '2025-03-30 00:00:00', 'done', 0.000000000000000000000000000000, 'DELIVERED', '6f587b32-7016-4e98-a447-cfb554adcb0e', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-17 17:09:49.295', '2025-03-18 05:55:22.754', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('e2098944-ffba-4c8b-a43b-3cadf265b8f8', 'DL2025030001', 'ff371850-d007-431b-b3aa-9107ef37f1c9', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', '68d8a13f-cc72-4f17-9374-8aa507d444e9', '2025-03-18 00:00:00', NULL, 32.000000000000000000000000000000, 'CONFIRMED', '6f587b32-7016-4e98-a447-cfb554adcb0e', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-17 15:32:58.427', '2025-03-17 15:35:07.706', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('f1796a36-2658-4ce4-8d95-83f0650e3609', 'DL2025030004', '38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee', '62b11e87-352c-40cc-8ee9-9c0a39048f90', '2543bf33-cfe2-4571-b437-6f02b40d9552', '68d8a13f-cc72-4f17-9374-8aa507d444e9', '2025-03-31 00:00:00', 'Deliver with care', 0.000000000000000000000000000000, 'DELIVERED', '6f587b32-7016-4e98-a447-cfb554adcb0e', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 17:39:35.397', '2025-03-18 17:41:22.874', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'banani'),
('f69af4d0-22cc-4d24-88b8-89d482677c04', 'DL2025030005', '01cbc716-79e8-418a-ac04-e81bf329d006', '62b11e87-352c-40cc-8ee9-9c0a39048f90', '2543bf33-cfe2-4571-b437-6f02b40d9552', '68d8a13f-cc72-4f17-9374-8aa507d444e9', '2025-03-24 00:00:00', 'asdfasfasf', 0.000000000000000000000000000000, 'CREATED', '89a22510-54ec-4df1-9200-dfd6a53dd226', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 16:23:05.129', '2025-03-22 16:27:01.267', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'banani');

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

--
-- Table structure for table `productdeliverycosting`
--

CREATE TABLE IF NOT EXISTS `productdeliverycosting` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `delivery_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `costing_head_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit_rate` decimal(65,30) NOT NULL,
  `unit_count` int NOT NULL,
  `total_amount` decimal(65,30) NOT NULL,
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `ProductDeliveryCosting_delivery_id_idx` (`delivery_id`),
  KEY `ProductDeliveryCosting_costing_head_id_idx` (`costing_head_id`),
  KEY `ProductDeliveryCosting_created_by_idx` (`created_by`),
  KEY `ProductDeliveryCosting_company_id_idx` (`company_id`),
  KEY `ProductDeliveryCosting_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `productdeliverycosting`
--

INSERT INTO `productdeliverycosting` (`id`, `delivery_id`, `costing_head_id`, `unit_rate`, `unit_count`, `total_amount`, `created_by`, `created_at`, `company_id`) VALUES
('2dab8fb4-021d-4546-893d-3bab9aaaaba5', 'f1796a36-2658-4ce4-8d95-83f0650e3609', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 1000.000000000000000000000000000000, 1, 1000.000000000000000000000000000000, '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 17:39:35.397', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('329eb64f-775b-482f-af88-43aea7c4c52a', 'e2098944-ffba-4c8b-a43b-3cadf265b8f8', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 1500.000000000000000000000000000000, 1, 1500.000000000000000000000000000000, '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-17 15:32:58.427', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('3f637d0c-5bd9-497e-8d72-0500f8f41a38', 'd6392a00-5f17-4f2b-92be-5725d0b307a4', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 1000.000000000000000000000000000000, 1, 1000.000000000000000000000000000000, '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-17 17:09:49.295', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6dcc0865-a4ff-434d-9e4b-3d454dedc7c7', 'f69af4d0-22cc-4d24-88b8-89d482677c04', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 200.000000000000000000000000000000, 2, 400.000000000000000000000000000000, '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 16:27:01.269', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b5d0059a-c6ab-4818-b0af-6dfe6517cf4d', '7fc10354-2da9-49a5-b6fb-7be6220c31f2', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 100.000000000000000000000000000000, 1, 100.000000000000000000000000000000, '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 05:50:39.799', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `productdeliverydetail`
--

CREATE TABLE IF NOT EXISTS `productdeliverydetail` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `delivery_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` int NOT NULL,
  `delivery_quantity` int NOT NULL,
  `unit_price` decimal(65,30) NOT NULL,
  `total_amount` decimal(65,30) NOT NULL,
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `ProductDeliveryDetail_delivery_id_idx` (`delivery_id`),
  KEY `ProductDeliveryDetail_product_id_idx` (`product_id`),
  KEY `ProductDeliveryDetail_created_by_idx` (`created_by`),
  KEY `ProductDeliveryDetail_company_id_idx` (`company_id`),
  KEY `ProductDeliveryDetail_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `productdeliverydetail`
--

INSERT INTO `productdeliverydetail` (`id`, `delivery_id`, `product_id`, `quantity`, `delivery_quantity`, `unit_price`, `total_amount`, `remarks`, `created_by`, `created_at`, `company_id`) VALUES
('0e341062-59ca-45d6-ba10-bc83e9e316e3', 'd6392a00-5f17-4f2b-92be-5725d0b307a4', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 500, 200, 15.000000000000000000000000000000, 3000.000000000000000000000000000000, '', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-17 17:09:49.295', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('7f09d6b9-c0de-4545-aa32-6464c95dbdec', 'e2098944-ffba-4c8b-a43b-3cadf265b8f8', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 1, 1, 17.000000000000000000000000000000, 17.000000000000000000000000000000, 'ew342', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-17 15:32:58.427', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('833eca6d-68db-492a-a25c-2c0abc2d52a3', 'd6392a00-5f17-4f2b-92be-5725d0b307a4', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 1000, 500, 20.000000000000000000000000000000, 10000.000000000000000000000000000000, '', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-17 17:09:49.295', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('86d32138-6a1f-4085-870d-5a274388bfc9', 'e2098944-ffba-4c8b-a43b-3cadf265b8f8', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 1, 1, 15.000000000000000000000000000000, 15.000000000000000000000000000000, 'df', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-17 15:32:58.427', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('888faa5f-0068-4210-9d95-6171db631a22', 'f1796a36-2658-4ce4-8d95-83f0650e3609', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 50, 50, 15.000000000000000000000000000000, 750.000000000000000000000000000000, '', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 17:39:35.397', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c28638b0-4911-4f35-9fb7-3780259ed7bb', '7fc10354-2da9-49a5-b6fb-7be6220c31f2', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 1, 1, 15.000000000000000000000000000000, 15.000000000000000000000000000000, '', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 05:50:39.799', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c56cc8e4-b90a-4c78-99a3-d11b1a32bfc6', 'f69af4d0-22cc-4d24-88b8-89d482677c04', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', 3, 3, 30.000000000000000000000000000000, 90.000000000000000000000000000000, '', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 16:27:01.269', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('fef1704d-ca45-4aad-babd-7de735c9585b', '7fc10354-2da9-49a5-b6fb-7be6220c31f2', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 1, 1, 17.000000000000000000000000000000, 17.000000000000000000000000000000, '', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 05:50:39.799', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `product_formulas`
--

CREATE TABLE IF NOT EXISTS `product_formulas` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `finished_product_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `raw_material_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` decimal(20,2) NOT NULL,
  `unit_of_measure` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `notes` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `product_formulas_id_key` (`id`),
  KEY `product_formulas_finished_product_id_idx` (`finished_product_id`),
  KEY `product_formulas_raw_material_id_idx` (`raw_material_id`),
  KEY `product_formulas_created_by_idx` (`created_by`),
  KEY `product_formulas_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `product_formulas`
--

INSERT INTO `product_formulas` (`id`, `finished_product_id`, `raw_material_id`, `quantity`, `unit_of_measure`, `notes`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('00935e5e-00c1-4174-b547-2ee93ea1df7b', '90a2df83-c472-421e-ae89-97092c0c202e', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 2.00, 'l', '', '2025-03-14 07:53:51.333', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:53:51.333', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('07c6fac9-5c2c-43df-b27d-132d2cfa9714', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 10.00, 'g', '', '2025-03-07 19:13:04.019', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:13:04.019', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('0a8e9c12-b74d-4375-8b0d-4af7d5c60492', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', '03b85bf1-0984-4824-939f-657acccef58a', 1.00, 'pcs', '', '2025-03-07 19:13:04.019', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:13:04.019', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2fc7bfb0-ff66-4311-8946-bc6ff84b8990', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 10.00, 'ml', 'o', '2025-03-07 19:09:56.727', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:09:56.727', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('32d289e1-6f5c-4a7d-8ebc-4875eea8dd41', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 5.00, 'g', '', '2025-03-07 19:09:56.727', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:09:56.727', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('57b8cae3-e9b9-4271-bb6b-b8f47b1ef892', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 1.00, 'l', '', '2025-03-08 17:38:40.608', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 17:38:40.608', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('85823436-6de1-4a1d-9aa2-542caccf59b5', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 10.00, 'g', '', '2025-03-08 17:38:40.608', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 17:38:40.608', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9e7dc9f8-b852-4b97-b69e-c72558b531a6', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 'b0eaa44d-8aaa-4344-95b4-593a6f47fba3', 1.00, 'kg', '', '2025-03-08 17:38:40.608', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 17:38:40.608', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a8a0bee2-f511-4b44-924e-8d739eabd052', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', '03b85bf1-0984-4824-939f-657acccef58a', 2.00, 'pcs', 'p', '2025-03-07 19:09:56.727', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:09:56.727', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('bdb4a794-882a-4909-8f8a-08cea8acb2a5', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', '03b85bf1-0984-4824-939f-657acccef58a', 2.00, 'pcs', '', '2025-03-08 17:38:40.608', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 17:38:40.608', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e9b60e7b-da52-4293-882f-f7745c0b4d57', '90a2df83-c472-421e-ae89-97092c0c202e', 'b0eaa44d-8aaa-4344-95b4-593a6f47fba3', 3.00, 'kg', '', '2025-03-14 07:53:51.333', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:53:51.333', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ed800b3a-b240-4f72-b997-9f041271103c', '5cfeb546-10b6-438b-a1c8-d6cdeaf20b64', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 34.00, 'g', '34', '2025-03-09 18:14:00.202', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-09 18:14:00.202', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `product_manufacturings`
--

CREATE TABLE IF NOT EXISTS `product_manufacturings` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `manufacturing_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'MF-000001',
  `demand_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `factory_location_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` datetime(3) NOT NULL,
  `end_date` datetime(3) DEFAULT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'IN_FACTORY',
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `finishedProductId` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `expected_end_date` datetime(3) DEFAULT NULL,
  UNIQUE KEY `product_manufacturings_id_key` (`id`),
  UNIQUE KEY `product_manufacturings_manufacturing_number_key` (`manufacturing_number`),
  KEY `product_manufacturings_demand_id_idx` (`demand_id`),
  KEY `product_manufacturings_factory_location_id_idx` (`factory_location_id`),
  KEY `product_manufacturings_finishedProductId_fkey` (`finishedProductId`),
  KEY `product_manufacturings_created_by_idx` (`created_by`),
  KEY `product_manufacturings_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `product_manufacturings`
--

INSERT INTO `product_manufacturings` (`id`, `manufacturing_number`, `demand_id`, `factory_location_id`, `start_date`, `end_date`, `status`, `remarks`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `finishedProductId`, `expected_end_date`) VALUES
('08b3aa1c-d7a8-41b8-8260-217adfdf71a7', 'MF-000009', '3d8fcb33-c389-4ff5-a1ec-146d29ff65f6', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', '2025-03-14 16:00:00.000', '2025-03-14 07:04:54.323', 'CONFIRMED', '', '2025-03-14 04:15:15.894', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:17:52.512', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, '2025-03-25 16:00:00.000'),
('10d79790-d3f6-4928-8d4e-193cdbda57c8', 'MF-000006', 'feadf8d6-895e-4068-b70d-a9d29aec34a5', 'c62883d1-389e-47b9-ba0c-0f431a92484b', '2025-03-17 16:00:00.000', '2025-03-10 13:35:36.242', 'MANUFACTURING_COMPLETED', 'swe', '2025-03-09 19:44:41.986', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-10 13:35:36.244', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL),
('2200f0d6-245a-4024-a32f-0abd7172679e', 'MF-000002', '6d6bd335-95d1-4397-8519-676b1594aaa0', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '2025-03-07 16:00:00.000', '2025-03-07 19:34:09.619', 'MANUFACTURING_COMPLETED', '', '2025-03-07 19:24:36.347', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:34:09.621', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL),
('2434db06-9a42-40c0-a4c6-7f876e739926', 'MF-000010', '2722310f-ef85-44ad-83e5-f864c4a8fff0', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', '2025-03-13 16:00:00.000', '2025-03-14 07:48:01.375', 'CONFIRMED', '', '2025-03-14 07:47:22.643', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:51:40.235', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, '2025-03-13 16:00:00.000'),
('3686954a-ff58-4193-adda-3e18839b01e5', 'MF-000001', '2fa39a8f-b4b5-4fca-a9bd-3b95ada1ca70', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '2025-03-18 16:00:00.000', '2025-03-13 16:58:53.952', 'MANUFACTURING_COMPLETED', 'fdsg', '2025-03-07 16:52:59.299', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-13 16:58:53.955', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL),
('3c444202-c121-4767-b145-21b23033ebc5', 'MF-000003', 'f8877a5e-395a-48e2-a36b-31b236519a39', '62b11e87-352c-40cc-8ee9-9c0a39048f90', '2025-03-09 16:00:00.000', '2025-03-08 08:01:29.440', 'MANUFACTURING_COMPLETED', '123erfg', '2025-03-08 07:58:23.822', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 08:01:29.442', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL),
('4b684413-7493-415f-aef2-9d4e19543d32', 'MF-000008', '2d257087-7116-40b8-8826-ef236eee4d26', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '2025-03-13 16:00:00.000', '2025-03-13 17:05:17.145', 'CONFIRMED', '', '2025-03-13 17:04:21.431', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-13 17:06:26.393', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, '2025-03-16 16:00:00.000'),
('9679e5d4-98ac-4eb9-a3f7-68a0c72dc31e', 'MF-000007', 'feadf8d6-895e-4068-b70d-a9d29aec34a5', 'c62883d1-389e-47b9-ba0c-0f431a92484b', '2025-03-17 16:00:00.000', '2025-03-09 20:11:27.285', 'MANUFACTURING_COMPLETED', '', '2025-03-09 20:08:54.354', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-09 20:11:27.291', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, '2025-03-19 16:00:00.000'),
('9c8b5442-b43a-48ab-be55-2ebfd477e810', 'MF-000004', '724ba491-5b93-4ac9-b5dc-aa1e9e8297ed', 'c62883d1-389e-47b9-ba0c-0f431a92484b', '2025-03-11 16:00:00.000', '2025-03-08 13:11:59.654', 'CONFIRMED', '', '2025-03-08 13:11:08.882', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:12:22.895', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL),
('b280efa3-490d-4ae8-a89f-b00d75d93424', 'MF-000011', '8992326f-4b6c-4758-a2ab-4a98bc316763', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '2025-03-13 16:00:00.000', '2025-03-14 08:22:48.670', 'CONFIRMED', '', '2025-03-14 08:21:09.774', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 08:23:20.560', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, '2025-03-13 16:00:00.000'),
('cabd3ddf-d09f-4c18-aa05-06b220ffadf4', 'MF-000005', 'e63ef454-b888-40f1-ac41-650db14f9dad', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '2025-03-08 16:00:00.000', '2025-03-08 18:03:56.268', 'CONFIRMED', '', '2025-03-08 18:02:52.451', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 18:05:21.387', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL),
('f75e2d0a-0f8a-4973-acb4-3925353696bf', 'MF-000012', '605afc27-ffd9-47ce-97a1-b4d545219170', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '2025-03-16 16:00:00.000', '2025-03-15 17:22:25.741', 'CONFIRMED', '', '2025-03-15 17:21:10.550', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:23:36.973', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, '2025-03-18 16:00:00.000');

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

--
-- Table structure for table `product_onboardings`
--

CREATE TABLE IF NOT EXISTS `product_onboardings` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `location_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `purchase_price` decimal(20,2) NOT NULL,
  `supplier_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `requisition_ref` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `onboarding_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'OB-000001',
  `rack_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `product_onboardings_id_key` (`id`),
  UNIQUE KEY `product_onboardings_onboarding_number_key` (`onboarding_number`),
  KEY `product_onboardings_product_id_idx` (`product_id`),
  KEY `product_onboardings_location_id_idx` (`location_id`),
  KEY `product_onboardings_supplier_id_idx` (`supplier_id`),
  KEY `product_onboardings_rack_id_fkey` (`rack_id`),
  KEY `product_onboardings_created_by_idx` (`created_by`),
  KEY `product_onboardings_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `product_onboardings`
--

INSERT INTO `product_onboardings` (`id`, `product_id`, `location_id`, `purchase_price`, `supplier_id`, `requisition_ref`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `onboarding_number`, `rack_id`) VALUES
('49922a01-d91d-40f5-b35d-00c4638cb109', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 12.00, '59202e87-263c-4567-bfc1-620c8a834efb', 'N/A', '2025-03-07 19:15:39.092', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:15:39.092', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'OB-2025-3-2', '4625c545-7709-47f3-ae84-73feea134a92'),
('a16e4b84-5c24-4b67-8523-4abe365f1984', '90a2df83-c472-421e-ae89-97092c0c202e', '62b11e87-352c-40cc-8ee9-9c0a39048f90', 345678.00, '27ca86a0-4d2f-49e2-911b-a30e85673f1a', 'N/A', '2025-03-14 07:54:33.327', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 08:19:49.475', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'OB-2025-3-5', '2543bf33-cfe2-4571-b437-6f02b40d9552'),
('c5b71669-4330-4f5e-8e7a-994fe3e5947c', 'ebe4c544-9dd6-4a6d-b790-8556da3c54e3', 'c62883d1-389e-47b9-ba0c-0f431a92484b', 20.00, '51424b2d-ecdf-406a-b754-0bc05dd1911a', 'N/A', '2025-03-08 13:09:33.951', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:09:33.951', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'OB-2025-3-3', '80605747-4275-428c-ab79-9b228279452f'),
('ca1127f1-daf0-4b4f-acb1-4f386019bc30', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 15.00, '59202e87-263c-4567-bfc1-620c8a834efb', 'N/A', '2025-03-07 06:36:12.249', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 06:36:12.249', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'OB-2025-3-1', '4625c545-7709-47f3-ae84-73feea134a92'),
('e9c7326c-9dbe-49ca-be2e-84fe3b8ba85d', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 10.00, '51424b2d-ecdf-406a-b754-0bc05dd1911a', 'N/A', '2025-03-08 17:42:44.924', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 17:43:17.015', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'OB-2025-3-4', 'f2efcc35-5852-43c8-9a6e-861842a26ba7');

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

--
-- Table structure for table `product_purchases`
--

CREATE TABLE IF NOT EXISTS `product_purchases` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `raw_material_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `supplier_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` decimal(20,2) NOT NULL,
  `unit_of_measure` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit_price` decimal(20,2) NOT NULL,
  `total_price` decimal(20,2) NOT NULL,
  `location_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `rack_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `po_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `po_date` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `notes` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `product_purchases_id_key` (`id`),
  UNIQUE KEY `product_purchases_po_number_key` (`po_number`),
  KEY `product_purchases_raw_material_id_idx` (`raw_material_id`),
  KEY `product_purchases_supplier_id_idx` (`supplier_id`),
  KEY `product_purchases_location_id_idx` (`location_id`),
  KEY `product_purchases_rack_id_idx` (`rack_id`),
  KEY `product_purchases_created_by_idx` (`created_by`),
  KEY `product_purchases_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `product_purchases`
--

INSERT INTO `product_purchases` (`id`, `raw_material_id`, `supplier_id`, `quantity`, `unit_of_measure`, `unit_price`, `total_price`, `location_id`, `rack_id`, `status`, `po_number`, `po_date`, `notes`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('288ff869-db4e-45f2-b00e-eda9fa07a258', 'b0eaa44d-8aaa-4344-95b4-593a6f47fba3', '59202e87-263c-4567-bfc1-620c8a834efb', 10000.00, 'kg', 10.00, 100000.00, 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '4625c545-7709-47f3-ae84-73feea134a92', 'PO_CONFIRMED', 'PO-1741456877715-288', '2025-03-08 18:01:17.716', NULL, '2025-03-08 18:01:17.716', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 18:01:17.716', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('31266610-2d69-4027-8934-3dbc3cf51d88', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', '51424b2d-ecdf-406a-b754-0bc05dd1911a', 10000.00, 'g', 5.00, 50000.00, 'c62883d1-389e-47b9-ba0c-0f431a92484b', '80605747-4275-428c-ab79-9b228279452f', 'PO_CONFIRMED', 'PO-1741374855603-696', '2025-03-07 19:14:15.604', NULL, '2025-03-07 19:14:15.604', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:14:15.604', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('38ec39ee-72a6-4852-a434-f5cfe9659555', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', '51424b2d-ecdf-406a-b754-0bc05dd1911a', 1000.00, 'l', 140.00, 140000.00, 'c62883d1-389e-47b9-ba0c-0f431a92484b', '80605747-4275-428c-ab79-9b228279452f', 'PO_CONFIRMED', 'PO-1741315491486-500', '2025-03-07 02:44:51.495', 'oil', '2025-03-07 02:44:51.495', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 02:46:15.394', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('46ea9a70-264d-48d3-8041-01bc1e8dc8bb', '03b85bf1-0984-4824-939f-657acccef58a', '51424b2d-ecdf-406a-b754-0bc05dd1911a', 5.00, 'kg', 10.00, 50.00, 'c62883d1-389e-47b9-ba0c-0f431a92484b', '80605747-4275-428c-ab79-9b228279452f', 'PO_CONFIRMED', 'PO-1741363064177-838', '2025-03-07 15:57:44.179', 'asdfa', '2025-03-07 15:57:44.179', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 15:57:58.260', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('852cf3e9-68a6-4026-9bff-8bc1eab29fba', '023be8d0-e866-4173-a0d3-da1a78c66e14', '51424b2d-ecdf-406a-b754-0bc05dd1911a', 10.00, 'box', 30.00, 300.00, 'c62883d1-389e-47b9-ba0c-0f431a92484b', '80605747-4275-428c-ab79-9b228279452f', 'PO_CONFIRMED', 'PO-1741439283784-997', '2025-03-08 13:08:03.786', 'safsaf', '2025-03-08 13:08:03.786', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:08:03.786', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('cefae692-370c-4e99-9fd5-cf83867b14ee', '03b85bf1-0984-4824-939f-657acccef58a', '51424b2d-ecdf-406a-b754-0bc05dd1911a', 1000.00, 'pcs', 1.00, 1000.00, 'c62883d1-389e-47b9-ba0c-0f431a92484b', '80605747-4275-428c-ab79-9b228279452f', 'PO_CONFIRMED', 'PO-1741375421236-31', '2025-03-07 19:23:41.237', NULL, '2025-03-07 19:23:41.237', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:23:53.278', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('dd42e700-1438-49f3-9d9b-89aa78b0fdfe', 'abdc404f-b1ae-4326-97cd-10a97b40b4d7', '59202e87-263c-4567-bfc1-620c8a834efb', 20.00, 'pcs', 6.00, 120.00, '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', 'PO_CONFIRMED', 'PO-1741944832652-129', '2025-03-14 09:33:52.655', NULL, '2025-03-14 09:33:52.655', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 09:33:52.655', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `racks`
--

CREATE TABLE IF NOT EXISTS `racks` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `location_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `racks_id_key` (`id`),
  KEY `racks_location_id_idx` (`location_id`),
  KEY `racks_created_by_idx` (`created_by`),
  KEY `racks_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `racks`
--

INSERT INTO `racks` (`id`, `name`, `location_id`, `description`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('2543bf33-cfe2-4571-b437-6f02b40d9552', 'Rack main', '62b11e87-352c-40cc-8ee9-9c0a39048f90', 'sdf', 1, '2025-03-06 14:59:51.947', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-06 15:01:03.753', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4625c545-7709-47f3-ae84-73feea134a92', 'Rack fac', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 'q4t', 1, '2025-03-06 15:00:19.569', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-06 15:00:19.569', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('80605747-4275-428c-ab79-9b228279452f', 'Rack warehouse', 'c62883d1-389e-47b9-ba0c-0f431a92484b', 'dtqe', 1, '2025-03-06 15:00:05.065', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-06 15:00:57.127', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f2efcc35-5852-43c8-9a6e-861842a26ba7', 'Godawon 1', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'building 1', 1, '2025-03-08 17:32:22.932', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 17:32:22.932', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `raw_materials`
--

CREATE TABLE IF NOT EXISTS `raw_materials` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `unit_of_measure` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `minimum_quantity` decimal(20,2) DEFAULT NULL,
  `reorder_level` decimal(20,2) DEFAULT NULL,
  `unit_price` decimal(20,2) DEFAULT NULL,
  `category` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `brand` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `manufacturer` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `specifications` text COLLATE utf8mb4_unicode_ci,
  `storage_location` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shelf_life` int DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `raw_materials_id_key` (`id`),
  UNIQUE KEY `raw_materials_code_key` (`code`),
  KEY `raw_materials_created_by_idx` (`created_by`),
  KEY `raw_materials_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `raw_materials`
--

INSERT INTO `raw_materials` (`id`, `name`, `code`, `description`, `unit_of_measure`, `minimum_quantity`, `reorder_level`, `unit_price`, `category`, `brand`, `manufacturer`, `specifications`, `storage_location`, `shelf_life`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('023be8d0-e866-4173-a0d3-da1a78c66e14', 'test', 'test', '', 'box', NULL, NULL, NULL, '', '', '', '', NULL, NULL, 1, '2025-03-08 13:01:31.523', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:01:31.523', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('03b85bf1-0984-4824-939f-657acccef58a', 'Potato', 'potato', '', 'pcs', 150.00, NULL, 40.00, '', '', '', '', NULL, NULL, 1, '2025-03-06 18:07:28.435', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:22:42.529', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 'Suger', 'sgr', '', 'g', NULL, NULL, NULL, '', '', '', '', NULL, NULL, 1, '2025-03-07 19:08:05.783', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:08:05.783', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('abdc404f-b1ae-4326-97cd-10a97b40b4d7', 'banana', 'bnn', '', 'pcs', NULL, NULL, 5.00, '', '', '', '', NULL, NULL, 1, '2025-03-14 09:32:43.612', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 09:42:56.075', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b0eaa44d-8aaa-4344-95b4-593a6f47fba3', 'Salt', 'salt', '', 'kg', 40.00, NULL, 20.00, '', '', '', '', NULL, NULL, 1, '2025-03-06 18:10:09.318', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-06 18:10:09.318', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f080f82b-39b0-4213-ab91-1b15a332c37e', 'tt', 'tt', '', 'ml', NULL, NULL, 56.00, '', '', '', '', NULL, NULL, 1, '2025-03-14 09:41:24.956', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 09:42:35.196', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ff36c702-597c-4d2c-9ff0-82acd98b8a09', 'Oil', 'oil', '', 'l', 40.00, NULL, 150.00, '', '', '', '', NULL, NULL, 1, '2025-03-06 18:07:56.650', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-06 18:07:56.650', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `raw_material_consumptions`
--

CREATE TABLE IF NOT EXISTS `raw_material_consumptions` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `manufacturing_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `raw_material_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` decimal(20,2) NOT NULL,
  `unit_of_measure` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `consumption_date` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `raw_material_consumptions_id_key` (`id`),
  KEY `raw_material_consumptions_manufacturing_id_idx` (`manufacturing_id`),
  KEY `raw_material_consumptions_raw_material_id_idx` (`raw_material_id`),
  KEY `raw_material_consumptions_created_by_idx` (`created_by`),
  KEY `raw_material_consumptions_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `raw_material_consumptions`
--

INSERT INTO `raw_material_consumptions` (`id`, `manufacturing_id`, `raw_material_id`, `quantity`, `unit_of_measure`, `consumption_date`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('213906af-b5ff-4559-bb17-987fd32e5b49', '2434db06-9a42-40c0-a4c6-7f876e739926', '03b85bf1-0984-4824-939f-657acccef58a', 10.00, 'pcs', '2025-03-14 07:47:22.643', '2025-03-14 07:47:22.643', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:47:22.643', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2891601d-4c37-4469-b873-d11bea51bbaf', '4b684413-7493-415f-aef2-9d4e19543d32', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 1000.00, 'g', '2025-03-13 17:04:21.431', '2025-03-13 17:04:21.431', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-13 17:04:21.431', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('38fd83e9-d5b5-4123-8097-75405f589b96', 'cabd3ddf-d09f-4c18-aa05-06b220ffadf4', 'b0eaa44d-8aaa-4344-95b4-593a6f47fba3', 100.00, 'kg', '2025-03-08 18:02:52.451', '2025-03-08 18:02:52.451', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 18:02:52.451', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('3f6421df-bf2f-474b-8f22-62e5e22625bf', 'b280efa3-490d-4ae8-a89f-b00d75d93424', 'b0eaa44d-8aaa-4344-95b4-593a6f47fba3', 6.00, 'kg', '2025-03-14 08:21:09.774', '2025-03-14 08:21:09.774', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 08:21:09.774', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('46a13875-cecd-46fb-ba0c-aaffc970c18c', '4b684413-7493-415f-aef2-9d4e19543d32', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 100.00, 'l', '2025-03-13 17:04:21.431', '2025-03-13 17:04:21.431', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-13 17:04:21.431', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4790b688-3716-4c6a-bf67-107ee1eea140', '08b3aa1c-d7a8-41b8-8260-217adfdf71a7', '03b85bf1-0984-4824-939f-657acccef58a', 2.00, 'pcs', '2025-03-14 04:15:15.894', '2025-03-14 04:15:15.894', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 04:15:15.894', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4e9c9e49-6744-4b29-8a07-1885231ed0ba', '10d79790-d3f6-4928-8d4e-193cdbda57c8', '03b85bf1-0984-4824-939f-657acccef58a', 20.00, 'pcs', '2025-03-09 19:44:41.986', '2025-03-09 19:44:41.986', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-09 19:44:41.986', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('618f13dd-99d3-48a6-b128-6334083d2ed0', '3c444202-c121-4767-b145-21b23033ebc5', '03b85bf1-0984-4824-939f-657acccef58a', 20.00, 'pcs', '2025-03-08 07:58:23.822', '2025-03-08 07:58:23.822', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 07:58:23.822', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6476baa0-767a-4809-b73e-e743a75d07d9', '2434db06-9a42-40c0-a4c6-7f876e739926', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 50.00, 'g', '2025-03-14 07:47:22.643', '2025-03-14 07:47:22.643', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:47:22.643', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('7cb18b6d-d3d5-493e-b6fe-b9a36fa0cbd7', '9679e5d4-98ac-4eb9-a3f7-68a0c72dc31e', 'b0eaa44d-8aaa-4344-95b4-593a6f47fba3', 190.00, 'kg', '2025-03-09 20:08:54.354', '2025-03-09 20:08:54.354', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-09 20:08:54.354', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8270e083-3e3c-4d9e-b4b2-27eff76d3955', '9679e5d4-98ac-4eb9-a3f7-68a0c72dc31e', '03b85bf1-0984-4824-939f-657acccef58a', 380.00, 'pcs', '2025-03-09 20:08:54.354', '2025-03-09 20:08:54.354', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-09 20:08:54.354', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8c1dcf55-2613-46ee-b70c-704cffc7700f', '10d79790-d3f6-4928-8d4e-193cdbda57c8', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 100.00, 'g', '2025-03-09 19:44:41.986', '2025-03-09 19:44:41.986', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-09 19:44:41.986', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9206f701-ad42-4e9e-bd4f-ae64ac58ae92', '3c444202-c121-4767-b145-21b23033ebc5', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 100.00, 'ml', '2025-03-08 07:58:23.822', '2025-03-08 07:58:23.822', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 07:58:23.822', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('931871bd-efa0-406b-a896-e2c7cd52760c', 'f75e2d0a-0f8a-4973-acb4-3925353696bf', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 4.00, 'l', '2025-03-15 17:21:10.550', '2025-03-15 17:21:10.550', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:21:10.550', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9576a3da-3b9c-4a86-b45f-f9677cce5a33', '3c444202-c121-4767-b145-21b23033ebc5', '03b85bf1-0984-4824-939f-657acccef58a', 5.00, 'pcs', '2025-03-08 07:58:23.822', '2025-03-08 07:58:23.822', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 07:58:23.822', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('95c808d7-1973-4046-96a4-7bba947f56ee', 'f75e2d0a-0f8a-4973-acb4-3925353696bf', 'b0eaa44d-8aaa-4344-95b4-593a6f47fba3', 6.00, 'kg', '2025-03-15 17:21:10.550', '2025-03-15 17:21:10.550', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:21:10.550', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a1f148dd-0f92-4624-b009-bf57947bb191', 'cabd3ddf-d09f-4c18-aa05-06b220ffadf4', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 100.00, 'l', '2025-03-08 18:02:52.451', '2025-03-08 18:02:52.451', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 18:02:52.451', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a43d9529-b10b-4089-80b6-4ef426171fe1', '2434db06-9a42-40c0-a4c6-7f876e739926', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 5.00, 'l', '2025-03-14 07:47:22.643', '2025-03-14 07:47:22.643', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:47:22.643', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b176b225-a9f1-4c0b-9a9d-2b79862e140b', '4b684413-7493-415f-aef2-9d4e19543d32', '03b85bf1-0984-4824-939f-657acccef58a', 200.00, 'pcs', '2025-03-13 17:04:21.431', '2025-03-13 17:04:21.431', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-13 17:04:21.431', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ba6e624c-2626-43c9-a1cd-e70b7f6fa659', '9679e5d4-98ac-4eb9-a3f7-68a0c72dc31e', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 190.00, 'l', '2025-03-09 20:08:54.354', '2025-03-09 20:08:54.354', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-09 20:08:54.354', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('bf6e0549-c6f2-4481-9913-df855447175e', 'b280efa3-490d-4ae8-a89f-b00d75d93424', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 4.00, 'l', '2025-03-14 08:21:09.774', '2025-03-14 08:21:09.774', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 08:21:09.774', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c2faeeaf-3e72-4e63-9f2c-8a767ad72640', '10d79790-d3f6-4928-8d4e-193cdbda57c8', 'b0eaa44d-8aaa-4344-95b4-593a6f47fba3', 10.00, 'kg', '2025-03-09 19:44:41.986', '2025-03-09 19:44:41.986', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-09 19:44:41.986', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c49dfb80-1500-460f-89f3-edb2dfd1dd6c', '3c444202-c121-4767-b145-21b23033ebc5', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 50.00, 'g', '2025-03-08 07:58:23.822', '2025-03-08 07:58:23.822', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 07:58:23.822', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c7e8e3fa-adbc-4bed-a9bb-1aae56b7b6a0', '2434db06-9a42-40c0-a4c6-7f876e739926', 'b0eaa44d-8aaa-4344-95b4-593a6f47fba3', 5.00, 'kg', '2025-03-14 07:47:22.643', '2025-03-14 07:47:22.643', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:47:22.643', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ce4025ed-33d5-48cc-8021-2ef56eca4833', '08b3aa1c-d7a8-41b8-8260-217adfdf71a7', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 20.00, 'g', '2025-03-14 04:15:15.894', '2025-03-14 04:15:15.894', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 04:15:15.894', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d0d6edd5-6cac-44eb-b3b7-c188a1dbfc44', '9c8b5442-b43a-48ab-be55-2ebfd477e810', '023be8d0-e866-4173-a0d3-da1a78c66e14', 0.00, 'box', '2025-03-08 13:11:08.882', '2025-03-08 13:11:08.882', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:11:08.882', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d9675761-ff69-4e85-8837-343c175617de', 'cabd3ddf-d09f-4c18-aa05-06b220ffadf4', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 1000.00, 'g', '2025-03-08 18:02:52.451', '2025-03-08 18:02:52.451', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 18:02:52.451', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d9ae87bd-53fe-4cd8-9d49-547301e6b3a7', '9679e5d4-98ac-4eb9-a3f7-68a0c72dc31e', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 1900.00, 'g', '2025-03-09 20:08:54.354', '2025-03-09 20:08:54.354', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-09 20:08:54.354', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('dac2505d-98bb-4baf-a810-ceeea62b1f7a', '10d79790-d3f6-4928-8d4e-193cdbda57c8', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 10.00, 'l', '2025-03-09 19:44:41.986', '2025-03-09 19:44:41.986', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-09 19:44:41.986', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('dcc1db0d-985d-4b08-8679-3132300255d2', '4b684413-7493-415f-aef2-9d4e19543d32', 'b0eaa44d-8aaa-4344-95b4-593a6f47fba3', 100.00, 'kg', '2025-03-13 17:04:21.431', '2025-03-13 17:04:21.431', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-13 17:04:21.431', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e719d15e-3661-47b0-8557-d5fc8b15a2b6', 'cabd3ddf-d09f-4c18-aa05-06b220ffadf4', '03b85bf1-0984-4824-939f-657acccef58a', 200.00, 'pcs', '2025-03-08 18:02:52.451', '2025-03-08 18:02:52.451', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 18:02:52.451', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e86e8e53-9e88-403f-8b93-3e0cb75b0ad5', '3c444202-c121-4767-b145-21b23033ebc5', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 50.00, 'g', '2025-03-08 07:58:23.822', '2025-03-08 07:58:23.822', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 07:58:23.822', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `raw_material_stocks`
--

CREATE TABLE IF NOT EXISTS `raw_material_stocks` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `raw_material_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` decimal(20,2) NOT NULL,
  `unit_of_measure` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `reference_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `rack_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `notes` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `source` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `raw_material_stocks_id_key` (`id`),
  KEY `raw_material_stocks_raw_material_id_idx` (`raw_material_id`),
  KEY `raw_material_stocks_location_id_idx` (`location_id`),
  KEY `raw_material_stocks_rack_id_idx` (`rack_id`),
  KEY `raw_material_stocks_created_by_idx` (`created_by`),
  KEY `raw_material_stocks_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `raw_material_stocks`
--

INSERT INTO `raw_material_stocks` (`id`, `raw_material_id`, `quantity`, `unit_of_measure`, `type`, `reference_no`, `location_id`, `rack_id`, `notes`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `source`) VALUES
('183a1755-a26e-4632-aecc-ce62042ddaea', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 100.00, 'ml', 'OUT', '3686954a-ff58-4193-adda-3e18839b01e5', NULL, NULL, NULL, '2025-03-07 16:52:59.342', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 16:52:59.342', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('2b4e8051-9911-447c-b192-68dfb3fb2ad2', '023be8d0-e866-4173-a0d3-da1a78c66e14', 10.00, 'box', 'IN', 'PO-1741439283784-997', 'c62883d1-389e-47b9-ba0c-0f431a92484b', '80605747-4275-428c-ab79-9b228279452f', 'Stock entry from PO: PO-1741439283784-997', '2025-03-08 13:08:03.809', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:08:03.809', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('98912f12-548b-4a6c-a4cf-29f85a88f1cf', 'abdc404f-b1ae-4326-97cd-10a97b40b4d7', 20.00, 'pcs', 'IN', 'PO-1741944832652-129', '62b11e87-352c-40cc-8ee9-9c0a39048f90', '2543bf33-cfe2-4571-b437-6f02b40d9552', 'Stock entry from PO: PO-1741944832652-129', '2025-03-14 09:33:52.679', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 20:13:20.899', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('a78e5d6a-20bd-4942-8741-cf9692bfc656', '03b85bf1-0984-4824-939f-657acccef58a', 5.00, 'kg', 'IN', 'PO-1741363064177-838', 'c62883d1-389e-47b9-ba0c-0f431a92484b', '80605747-4275-428c-ab79-9b228279452f', 'Stock entry from PO: PO-1741363064177-838', '2025-03-07 15:57:58.280', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 15:57:58.280', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('b3fa99b4-0bde-41eb-bdfa-d19e25802b13', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 10000.00, 'g', 'IN', 'PO-1741374855603-696', 'c62883d1-389e-47b9-ba0c-0f431a92484b', '80605747-4275-428c-ab79-9b228279452f', 'Stock entry from PO: PO-1741374855603-696', '2025-03-07 19:14:15.612', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:14:15.612', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('b617141d-3433-4923-b075-8b3030e8a3b0', 'ff36c702-597c-4d2c-9ff0-82acd98b8a09', 1000.00, 'l', 'IN', 'PO-1741315491486-500', 'c62883d1-389e-47b9-ba0c-0f431a92484b', '80605747-4275-428c-ab79-9b228279452f', 'Stock entry from PO: PO-1741315491486-500', '2025-03-07 02:46:15.415', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 02:46:15.415', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('c54ebda9-d7e1-4962-af9b-31a1ae762a51', '03b85bf1-0984-4824-939f-657acccef58a', 2.00, 'pcs', 'OUT', '3686954a-ff58-4193-adda-3e18839b01e5', NULL, NULL, NULL, '2025-03-07 16:52:59.339', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 16:52:59.339', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('cbb6932c-7d6e-4e1f-86f7-455e8ad44086', '03b85bf1-0984-4824-939f-657acccef58a', 1000.00, 'pcs', 'IN', 'PO-1741375421236-31', 'c62883d1-389e-47b9-ba0c-0f431a92484b', '80605747-4275-428c-ab79-9b228279452f', 'Stock entry from PO: PO-1741375421236-31', '2025-03-07 19:23:53.297', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:23:53.297', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('cf5b368a-1224-4a91-8916-160bceacf30b', '03b85bf1-0984-4824-939f-657acccef58a', 85.00, 'pcs', 'OUT', '2200f0d6-245a-4024-a32f-0abd7172679e', NULL, NULL, NULL, '2025-03-07 19:24:36.367', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:24:36.367', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('de9bc735-85b0-4292-bc20-6dc62242c981', '8e07ef4f-f01f-465c-9d18-5bc53145f3ef', 850.00, 'g', 'OUT', '2200f0d6-245a-4024-a32f-0abd7172679e', NULL, NULL, NULL, '2025-03-07 19:24:36.367', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:24:36.367', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('e4cc7007-1543-4586-9b3b-8e532549e9eb', 'b0eaa44d-8aaa-4344-95b4-593a6f47fba3', 10000.00, 'kg', 'IN', 'PO-1741456877715-288', '62b11e87-352c-40cc-8ee9-9c0a39048f90', '2543bf33-cfe2-4571-b437-6f02b40d9552', 'Stock entry from PO: PO-1741456877715-288', '2025-03-08 18:01:17.736', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 20:13:20.899', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL);

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

--
-- Table structure for table `ready_product_stocks`
--

CREATE TABLE IF NOT EXISTS `ready_product_stocks` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `location_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` decimal(20,2) NOT NULL DEFAULT '0.00',
  `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `reference_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `rack` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit_price` decimal(20,2) NOT NULL,
  `notes` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `source` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `manufacturingConfirmationId` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `onboarding_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `ready_product_stocks_id_key` (`id`),
  UNIQUE KEY `ready_product_stocks_onboarding_id_key` (`onboarding_id`),
  KEY `ready_product_stocks_product_id_idx` (`product_id`),
  KEY `ready_product_stocks_location_id_idx` (`location_id`),
  KEY `ready_product_stocks_manufacturingConfirmationId_fkey` (`manufacturingConfirmationId`),
  KEY `ready_product_stocks_onboarding_id_idx` (`onboarding_id`),
  KEY `ready_product_stocks_rack_fkey` (`rack`),
  KEY `ready_product_stocks_created_by_idx` (`created_by`),
  KEY `ready_product_stocks_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ready_product_stocks`
--

INSERT INTO `ready_product_stocks` (`id`, `product_id`, `location_id`, `quantity`, `type`, `reference_no`, `rack`, `unit_price`, `notes`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `source`, `manufacturingConfirmationId`, `onboarding_id`) VALUES
('2025d789-1832-4db6-a80c-c94987ee2f06', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 100.00, 'IN', 'MC-000003', '4625c545-7709-47f3-ae84-73feea134a92', 0.00, NULL, '2025-03-08 18:05:21.379', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 18:05:21.379', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'MANUFACTURING-CONFIRMATION', '6c4e6e2b-3ad8-4ea0-a9f9-08e77ec12093', NULL),
('34d383f1-0fc9-462b-b1a9-3d193e016ee7', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', '62b11e87-352c-40cc-8ee9-9c0a39048f90', 5.00, 'IN', 'MC-000001', '2543bf33-cfe2-4571-b437-6f02b40d9552', 0.00, NULL, '2025-03-08 09:19:47.541', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 09:19:47.541', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'MANUFACTURING-CONFIRMATION', '4a85b8da-dae2-43ee-95f0-2e971da9162d', NULL),
('3ea37a0c-1b38-4b61-897c-1c4202bc468a', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 20.00, 'IN', 'N/A', '4625c545-7709-47f3-ae84-73feea134a92', 15.00, 'onboarding', '2025-03-07 06:36:12.255', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 06:36:12.255', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, NULL),
('4b44ec09-6c0a-4533-b514-e800f12114e0', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 2.00, 'IN', 'MC-000005', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', 0.00, NULL, '2025-03-14 07:17:52.505', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:17:52.505', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'MANUFACTURING-CONFIRMATION', 'c2f9f93c-f205-4ec8-9858-b6c48d93e171', NULL),
('77a2eafc-a3ea-48b2-8c54-9d1a00bcbd50', '90a2df83-c472-421e-ae89-97092c0c202e', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 2.00, 'IN', 'MC-000007', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', 0.00, NULL, '2025-03-14 08:23:20.551', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:32:05.745', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'MANUFACTURING-CONFIRMATION', 'f07962e0-b310-44a9-b142-53dbdcf73e74', NULL),
('7b58f8c7-8c5f-4aa9-ada3-ac4f54d78fe6', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', '62b11e87-352c-40cc-8ee9-9c0a39048f90', 30.00, 'IN', 'SR2025030001', '2543bf33-cfe2-4571-b437-6f02b40d9552', 15.00, NULL, '2025-03-17 14:47:41.934', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 14:47:41.934', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'SALES_RETURN', NULL, NULL),
('81cc6456-56fc-47b8-b539-33de483cdd74', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 1000.00, 'IN', 'N/A', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', 10.00, 'sgfchgj', '2025-03-08 17:42:44.943', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 17:42:44.943', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, 'e9c7326c-9dbe-49ca-be2e-84fe3b8ba85d'),
('864cdcf6-2fcb-4d21-9382-94c033d20702', 'ebe4c544-9dd6-4a6d-b790-8556da3c54e3', 'c62883d1-389e-47b9-ba0c-0f431a92484b', 3.00, 'IN', 'MC-000002', '80605747-4275-428c-ab79-9b228279452f', 0.00, NULL, '2025-03-08 13:12:22.888', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:12:22.888', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'MANUFACTURING-CONFIRMATION', 'c9f03f51-6e10-4e6f-ac85-f800299366c6', NULL),
('89c1268e-eac5-4e69-b570-65cd65736a74', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 5.00, 'IN', 'MC-000006', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', 0.00, NULL, '2025-03-14 07:51:40.223', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:51:40.223', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'MANUFACTURING-CONFIRMATION', '8687dca4-2762-45b4-9f0d-409b97c6f2df', NULL),
('8df1d937-484c-4ee3-8b72-1d51e52c0d41', '90a2df83-c472-421e-ae89-97092c0c202e', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 2.00, 'IN', 'MC-000008', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', 0.00, NULL, '2025-03-15 17:23:36.969', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:32:05.745', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'MANUFACTURING-CONFIRMATION', 'cfd12d7e-4261-40e1-a700-c19024a49262', NULL),
('98cdaf0c-2269-4a3c-b5ba-d19e843fa21c', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 1.00, 'OUT', 'DL2025030001', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', 15.00, NULL, '2025-03-17 15:35:07.713', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 15:35:07.713', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'DELIVERY', NULL, NULL),
('99b02ebc-77d4-4131-b141-3bbecfabfff0', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', '62b11e87-352c-40cc-8ee9-9c0a39048f90', 30.00, 'IN', 'SR2025030001', '2543bf33-cfe2-4571-b437-6f02b40d9552', 15.00, NULL, '2025-03-17 14:38:01.752', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 14:38:01.752', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'SALES_RETURN', NULL, NULL),
('b698911c-f09f-4039-97cb-075af33d0174', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 100.00, 'IN', 'MC-000004', '4625c545-7709-47f3-ae84-73feea134a92', 0.00, NULL, '2025-03-13 17:06:26.384', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-13 17:06:26.384', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'MANUFACTURING-CONFIRMATION', '82b71149-f281-40b3-b349-42f2f89f05d2', NULL),
('bfa94a6d-5f15-4fc0-8501-6bb159e6589e', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 10.00, 'IN', 'N/A', '4625c545-7709-47f3-ae84-73feea134a92', 12.00, 'Initial stock from onboarding N/A', '2025-03-07 19:15:39.095', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:15:39.095', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, NULL),
('c61ae16b-abf3-4dc8-b12d-b9ad1bb8b35c', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 1.00, 'OUT', 'DL2025030001', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', 17.00, NULL, '2025-03-17 15:35:07.710', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 15:35:07.710', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'DELIVERY', NULL, NULL),
('d110c268-99bd-4d7c-ac93-e2283e78dd46', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', '62b11e87-352c-40cc-8ee9-9c0a39048f90', 2.00, 'IN', 'MC-000001', '2543bf33-cfe2-4571-b437-6f02b40d9552', 0.00, NULL, '2025-03-08 09:19:47.541', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 09:19:47.541', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'MANUFACTURING-CONFIRMATION', '4a85b8da-dae2-43ee-95f0-2e971da9162d', NULL),
('d9096b71-eb1f-47b6-8ada-7d502cc600fb', 'ebe4c544-9dd6-4a6d-b790-8556da3c54e3', 'c62883d1-389e-47b9-ba0c-0f431a92484b', 5.00, 'IN', 'N/A', '80605747-4275-428c-ab79-9b228279452f', 20.00, 'asdfasf', '2025-03-08 13:09:33.955', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:09:33.955', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, 'c5b71669-4330-4f5e-8e7a-994fe3e5947c'),
('fd48716d-9cad-4a8b-af38-ed1cfe6b8008', '90a2df83-c472-421e-ae89-97092c0c202e', '62b11e87-352c-40cc-8ee9-9c0a39048f90', 400.00, 'IN', 'N/A', '2543bf33-cfe2-4571-b437-6f02b40d9552', 345678.00, 'Initial stock from onboarding N/A', '2025-03-14 07:54:33.347', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 08:19:49.481', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, 'a16e4b84-5c24-4b67-8523-4abe365f1984');

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

--
-- Table structure for table `sales_amount_targets`
--

CREATE TABLE IF NOT EXISTS `sales_amount_targets` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount_target` decimal(20,2) NOT NULL,
  `achieved_amount` decimal(20,2) DEFAULT '0.00',
  `achievement_date` datetime(3) DEFAULT NULL,
  `is_achieved` tinyint(1) DEFAULT '0',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `employeeId` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sales_target_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `targetTimeFrameId` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `sales_amount_targets_id_key` (`id`),
  UNIQUE KEY `sales_amount_targets_sales_target_id_key` (`sales_target_id`),
  KEY `sales_amount_targets_sales_target_id_idx` (`sales_target_id`),
  KEY `sales_amount_targets_employeeId_fkey` (`employeeId`),
  KEY `sales_amount_targets_targetTimeFrameId_fkey` (`targetTimeFrameId`),
  KEY `sales_amount_targets_created_by_idx` (`created_by`),
  KEY `sales_amount_targets_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_amount_targets`
--

INSERT INTO `sales_amount_targets` (`id`, `amount_target`, `achieved_amount`, `achievement_date`, `is_achieved`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `employeeId`, `sales_target_id`, `targetTimeFrameId`) VALUES
('1f2387f2-c806-4347-9dc4-7243baadea1d', 250000.00, 0.00, NULL, 0, '2025-03-16 06:18:01.704', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-16 06:20:54.948', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, '01ab484e-5e8e-4ec2-ae88-d60616cb572b', NULL),
('361ce4c9-43d5-4a2f-9198-ce14545482ce', 250000.00, 0.00, NULL, 0, '2025-03-17 11:04:59.001', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 11:05:14.284', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, '0b6f3b45-05b7-4cd2-9350-71f496becbeb', NULL),
('42a00017-d7de-477a-94da-5b144f064bf4', 100000.00, 0.00, NULL, 0, '2025-03-17 16:24:31.815', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:24:31.815', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, '9483726c-d0f6-430d-8a8b-a073666ad555', NULL),
('86fe0cbc-36d7-4a01-b2f3-dc802e62c6c2', 1000000.00, 0.00, NULL, 0, '2025-03-18 16:55:37.038', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 16:55:37.038', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, '2a8b57d4-d176-4478-a59d-a31d523f5966', NULL),
('e085ef3a-07da-4f8b-ab2b-a8be73399495', 90.00, 0.00, NULL, 0, '2025-03-22 08:05:01.893', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 14:42:11.073', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, '6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9', NULL);

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

--
-- Table structure for table `sales_orders`
--

CREATE TABLE IF NOT EXISTS `sales_orders` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `order_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quotation_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `customer_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` enum('CREATED','COMPLETED','CANCELLED') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'CREATED',
  `total_amount` decimal(20,2) NOT NULL DEFAULT '0.00',
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `end_date` datetime(3) NOT NULL,
  `start_date` datetime(3) NOT NULL,
  UNIQUE KEY `sales_orders_id_key` (`id`),
  UNIQUE KEY `sales_orders_order_no_key` (`order_no`),
  KEY `sales_orders_quotation_id_idx` (`quotation_id`),
  KEY `sales_orders_customer_id_idx` (`customer_id`),
  KEY `sales_orders_created_by_idx` (`created_by`),
  KEY `sales_orders_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_orders`
--

INSERT INTO `sales_orders` (`id`, `order_no`, `quotation_id`, `customer_id`, `status`, `total_amount`, `remarks`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `end_date`, `start_date`) VALUES
('01cbc716-79e8-418a-ac04-e81bf329d006', 'SO2025030009', '98426e9f-0015-4a81-be70-dead3c277c6f', '38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4', 'CREATED', 90.00, NULL, '2025-03-22 15:19:28.823', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 15:21:18.137', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '2025-03-31 00:00:00.000', '2025-03-22 00:00:00.000'),
('10a245ca-6136-4e26-be6e-615e4ec2112a', 'SO2025030001', '6ed640e3-d028-4bbe-b7e7-b8ffb79b32b2', '76c92164-7a24-4f61-8ff0-673a985fdaf7', 'CREATED', 1465.00, NULL, '2025-03-17 01:09:34.450', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 01:33:38.946', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '2025-03-21 00:00:00.000', '2025-03-17 00:00:00.000'),
('38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee', 'SO2025030008', 'ad2e3661-4568-4f21-9473-1bfa3a61a41b', '38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4', 'CREATED', 100750.00, NULL, '2025-03-18 17:18:57.422', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:18:57.422', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '2025-04-30 00:00:00.000', '2025-03-19 00:00:00.000'),
('49a2d414-344a-4cfb-ab7f-6f1866039d2e', 'SO2025030005', '67e11232-1517-40b5-9606-b61204ca7ee5', '2a14d58a-2474-45e5-bc6f-157e6e6cb88a', 'CREATED', 46.00, NULL, '2025-03-17 19:41:16.827', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:43:02.581', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '2025-03-20 00:00:00.000', '2025-03-18 00:00:00.000'),
('6711b65b-1a9c-48c7-9531-503c92294077', 'SO2025030006', '6ed640e3-d028-4bbe-b7e7-b8ffb79b32b2', '76c92164-7a24-4f61-8ff0-673a985fdaf7', 'COMPLETED', 32.00, NULL, '2025-03-17 19:43:57.373', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 06:00:35.434', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '2025-03-18 00:00:00.000', '2025-03-18 00:00:00.000'),
('998e79b1-3639-4c08-bc26-487d2523898c', 'SO2025030003', 'a9646e7e-8c0d-4c27-949f-b1efcdf8fce7', '2a14d58a-2474-45e5-bc6f-157e6e6cb88a', 'CREATED', 15000.00, NULL, '2025-03-17 11:09:01.308', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 11:09:01.308', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '2025-03-17 00:00:00.000', '2025-03-17 00:00:00.000'),
('ad0eba4c-b8b0-4b7d-ab48-fcc6566c6eab', 'SO2025030007', 'a30bbd33-d6c9-4273-ad9e-a6ae9ce6fef5', '76c92164-7a24-4f61-8ff0-673a985fdaf7', 'CREATED', 55.00, NULL, '2025-03-17 19:48:29.968', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:48:29.968', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '2025-03-23 00:00:00.000', '2025-03-18 00:00:00.000'),
('d2f6b77d-f38f-4929-8827-03be8d98617e', 'SO2025030004', 'a30bbd33-d6c9-4273-ad9e-a6ae9ce6fef5', '76c92164-7a24-4f61-8ff0-673a985fdaf7', 'CREATED', 27500.00, NULL, '2025-03-17 16:48:50.343', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:48:50.343', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '2025-03-18 00:00:00.000', '2025-03-18 00:00:00.000'),
('ff371850-d007-431b-b3aa-9107ef37f1c9', 'SO2025030002', '6ed640e3-d028-4bbe-b7e7-b8ffb79b32b2', '76c92164-7a24-4f61-8ff0-673a985fdaf7', 'CREATED', 32.00, NULL, '2025-03-17 01:40:43.547', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 01:40:43.547', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '2025-03-17 00:00:00.000', '2025-03-17 00:00:00.000');

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

--
-- Table structure for table `sales_order_details`
--

CREATE TABLE IF NOT EXISTS `sales_order_details` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `order_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` decimal(20,2) NOT NULL,
  `rate` decimal(20,2) NOT NULL,
  `expected_date` datetime(3) NOT NULL,
  `total` decimal(20,2) NOT NULL DEFAULT '0.00',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quotation_detail_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `sales_order_details_id_key` (`id`),
  KEY `sales_order_details_order_id_idx` (`order_id`),
  KEY `sales_order_details_product_id_idx` (`product_id`),
  KEY `sales_order_details_quotation_detail_id_idx` (`quotation_detail_id`),
  KEY `sales_order_details_created_by_idx` (`created_by`),
  KEY `sales_order_details_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_order_details`
--

INSERT INTO `sales_order_details` (`id`, `order_id`, `product_id`, `quantity`, `rate`, `expected_date`, `total`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `quotation_detail_id`) VALUES
('0631c5fe-f1bb-40b1-8bf4-7579b3a43ade', '10a245ca-6136-4e26-be6e-615e4ec2112a', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 7.00, 15.00, '2025-03-19 00:00:00.000', 105.00, '2025-03-17 01:33:38.946', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 01:33:38.946', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '8c0f565f-62bd-410e-aa4b-346fecca1693'),
('24df2dcd-8023-48fe-bb36-e55ca2413784', 'ad0eba4c-b8b0-4b7d-ab48-fcc6566c6eab', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 1.00, 15.00, '2025-03-20 00:00:00.000', 15.00, '2025-03-17 19:48:29.968', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:48:29.968', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'b302d674-06d0-4dd7-8add-db9eacdb85bf'),
('401fe2d1-1f4c-4690-96c2-38fa09b3f1dd', '38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 50.00, 15.00, '2025-03-31 00:00:00.000', 750.00, '2025-03-18 17:18:57.422', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:18:57.422', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '2809f371-9d2c-44f2-9c0c-1760d7fe9cea'),
('406638de-649e-43c4-8785-4e3af71cdbdd', '38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 1000.00, 100.00, '2026-03-31 00:00:00.000', 100000.00, '2025-03-18 17:18:57.422', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:18:57.422', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '4a221f56-b255-42f8-8067-67956e01fb9f'),
('4a79d2f4-c2e8-428f-9ea9-fa86fe3a0d6e', 'ff371850-d007-431b-b3aa-9107ef37f1c9', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 1.00, 15.00, '2025-03-17 00:00:00.000', 15.00, '2025-03-17 01:40:43.547', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 01:40:43.547', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '8c0f565f-62bd-410e-aa4b-346fecca1693'),
('55266ac2-1228-4e54-b4b0-00107477e52f', '6711b65b-1a9c-48c7-9531-503c92294077', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 1.00, 15.00, '2025-03-18 00:00:00.000', 15.00, '2025-03-17 19:43:57.373', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:43:57.373', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '8c0f565f-62bd-410e-aa4b-346fecca1693'),
('79feb7aa-3ee9-42c4-8a6a-39c74a8fa8f5', 'ad0eba4c-b8b0-4b7d-ab48-fcc6566c6eab', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 2.00, 20.00, '2025-03-18 00:00:00.000', 40.00, '2025-03-17 19:48:29.968', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:48:29.968', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '9c1cdb2f-c362-4b4b-91f2-ed63a142de52'),
('9489d2bf-72c6-49b7-815e-fb9e8a84f02a', '49a2d414-344a-4cfb-ab7f-6f1866039d2e', 'ebe4c544-9dd6-4a6d-b790-8556da3c54e3', 2.00, 23.00, '2025-03-19 00:00:00.000', 46.00, '2025-03-17 19:43:02.581', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:43:02.581', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '217529b8-e802-40ff-9d3b-abe9db55562b'),
('a9644c98-bd86-43f3-a9fa-cb1f0ec6cb8f', 'd2f6b77d-f38f-4929-8827-03be8d98617e', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 500.00, 15.00, '2025-03-25 00:00:00.000', 7500.00, '2025-03-17 16:48:50.343', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:48:50.343', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'b302d674-06d0-4dd7-8add-db9eacdb85bf'),
('b276ac20-1b54-47a2-be43-656aec786198', 'd2f6b77d-f38f-4929-8827-03be8d98617e', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 1000.00, 20.00, '2025-03-21 00:00:00.000', 20000.00, '2025-03-17 16:48:50.343', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:48:50.343', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '9c1cdb2f-c362-4b4b-91f2-ed63a142de52'),
('b41924e2-e661-4e9f-a007-53880cfed3f9', 'ff371850-d007-431b-b3aa-9107ef37f1c9', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 1.00, 17.00, '2025-03-17 00:00:00.000', 17.00, '2025-03-17 01:40:43.547', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 01:40:43.547', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'a128a19f-248c-498d-b64a-554ad0a0bee1'),
('bcf2e24f-bb7d-45a4-b461-77a8a35d9601', '998e79b1-3639-4c08-bc26-487d2523898c', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 1000.00, 15.00, '2025-03-19 00:00:00.000', 15000.00, '2025-03-17 11:09:01.308', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 11:09:01.308', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '1773cff0-c859-4336-ad1c-99e4c7f0302e'),
('dfd0fbd0-0cf3-4eca-90d2-23fe7d0e4f62', '6711b65b-1a9c-48c7-9531-503c92294077', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 1.00, 17.00, '2025-03-18 00:00:00.000', 17.00, '2025-03-17 19:43:57.373', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:43:57.373', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'a128a19f-248c-498d-b64a-554ad0a0bee1'),
('e86d14cf-486d-4451-8963-7aaab8ef0e9e', '01cbc716-79e8-418a-ac04-e81bf329d006', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', 3.00, 30.00, '2025-03-23 00:00:00.000', 90.00, '2025-03-22 15:21:18.137', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 15:21:18.137', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '5f058a0f-069b-49dd-b9da-cd5cd46b9b01'),
('ed790b00-2bdb-437a-92b8-7c6d2087603a', '10a245ca-6136-4e26-be6e-615e4ec2112a', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 80.00, 17.00, '2025-03-21 00:00:00.000', 1360.00, '2025-03-17 01:33:38.946', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 01:33:38.946', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'a128a19f-248c-498d-b64a-554ad0a0bee1');

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

--
-- Table structure for table `sales_product_targets`
--

CREATE TABLE IF NOT EXISTS `sales_product_targets` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `achieved_quantity` decimal(20,2) DEFAULT '0.00',
  `achievement_date` datetime(3) DEFAULT NULL,
  `is_achieved` tinyint(1) DEFAULT '0',
  `target_quantity` decimal(20,2) NOT NULL,
  `employeeId` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sales_target_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `targetTimeFrameId` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `sales_product_targets_id_key` (`id`),
  UNIQUE KEY `sales_product_targets_sales_target_id_product_id_key` (`sales_target_id`,`product_id`),
  KEY `sales_product_targets_product_id_idx` (`product_id`),
  KEY `sales_product_targets_sales_target_id_idx` (`sales_target_id`),
  KEY `sales_product_targets_employeeId_fkey` (`employeeId`),
  KEY `sales_product_targets_targetTimeFrameId_fkey` (`targetTimeFrameId`),
  KEY `sales_product_targets_created_by_idx` (`created_by`),
  KEY `sales_product_targets_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_product_targets`
--

INSERT INTO `sales_product_targets` (`id`, `product_id`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `achieved_quantity`, `achievement_date`, `is_achieved`, `target_quantity`, `employeeId`, `sales_target_id`, `targetTimeFrameId`) VALUES
('53e2a683-0b4d-4eb9-829c-7f2a53a31d13', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', '2025-03-22 14:42:11.091', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 14:42:11.091', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00, NULL, 0, 3.00, NULL, '6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9', NULL),
('6500d25c-b01c-4c57-a2a3-6aefc4df9198', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', '2025-03-17 11:05:14.301', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 11:05:14.301', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00, NULL, 0, 1000.00, NULL, '0b6f3b45-05b7-4cd2-9350-71f496becbeb', NULL),
('6bdb1476-977a-4511-b13c-a0d92ecf01db', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', '2025-03-18 16:55:37.051', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 16:55:37.051', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00, NULL, 0, 100.00, NULL, '2a8b57d4-d176-4478-a59d-a31d523f5966', NULL),
('8e9a3066-f990-4645-aa84-15e409d4d09e', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', '2025-03-18 16:55:37.066', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 16:55:37.066', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00, NULL, 0, 50.00, NULL, '2a8b57d4-d176-4478-a59d-a31d523f5966', NULL);

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

--
-- Table structure for table `sales_quotations`
--

CREATE TABLE IF NOT EXISTS `sales_quotations` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quotation_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` datetime(3) NOT NULL,
  `customer_type` enum('EXISTING','VISITING','NEW') COLLATE utf8mb4_unicode_ci NOT NULL,
  `customer_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `visit_history_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` enum('CREATED','SALE_IN_PROCESS','DELIVERED','COMPLETED') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'CREATED',
  `organization_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `division` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `district` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `thana` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_person_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_person_phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_person_email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total_amount` decimal(20,2) NOT NULL DEFAULT '0.00',
  `total_tax` decimal(20,2) NOT NULL DEFAULT '0.00',
  `total_discount` decimal(20,2) NOT NULL DEFAULT '0.00',
  `grand_total` decimal(20,2) NOT NULL DEFAULT '0.00',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `sales_quotations_id_key` (`id`),
  UNIQUE KEY `sales_quotations_quotation_no_key` (`quotation_no`),
  KEY `sales_quotations_customer_id_idx` (`customer_id`),
  KEY `sales_quotations_visit_history_id_idx` (`visit_history_id`),
  KEY `sales_quotations_location_id_idx` (`location_id`),
  KEY `sales_quotations_created_by_idx` (`created_by`),
  KEY `sales_quotations_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_quotations`
--

INSERT INTO `sales_quotations` (`id`, `quotation_no`, `date`, `customer_type`, `customer_id`, `visit_history_id`, `location_id`, `status`, `organization_name`, `address`, `division`, `district`, `thana`, `phone`, `email`, `contact_person_name`, `contact_person_phone`, `contact_person_email`, `total_amount`, `total_tax`, `total_discount`, `grand_total`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `remarks`) VALUES
('67e11232-1517-40b5-9606-b61204ca7ee5', 'QT2025030004', '2025-03-18 00:00:00.000', 'EXISTING', '2a14d58a-2474-45e5-bc6f-157e6e6cb88a', NULL, NULL, 'SALE_IN_PROCESS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 46.00, 0.00, 0.00, 46.00, '2025-03-17 19:11:21.892', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:41:16.858', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('6ed640e3-d028-4bbe-b7e7-b8ffb79b32b2', 'QT2025030001', '2025-03-18 00:00:00.000', 'VISITING', '76c92164-7a24-4f61-8ff0-673a985fdaf7', 'fe12fa88-8146-47d5-ace8-77f047cc387f', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'SALE_IN_PROCESS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1850.00, 91.75, 15.00, 1926.75, '2025-03-16 16:55:20.062', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:43:57.397', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'HI'),
('98426e9f-0015-4a81-be70-dead3c277c6f', 'QT2025030006', '2025-03-22 00:00:00.000', 'EXISTING', '38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4', NULL, '62b11e87-352c-40cc-8ee9-9c0a39048f90', 'SALE_IN_PROCESS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 90.00, 0.00, 0.00, 90.00, '2025-03-22 14:44:43.215', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 15:19:28.868', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('a30bbd33-d6c9-4273-ad9e-a6ae9ce6fef5', 'QT2025030003', '2025-03-18 00:00:00.000', 'EXISTING', '76c92164-7a24-4f61-8ff0-673a985fdaf7', NULL, '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'SALE_IN_PROCESS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 55000.00, 0.00, 0.00, 55000.00, '2025-03-17 16:30:48.566', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:48:30.024', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('a9646e7e-8c0d-4c27-949f-b1efcdf8fce7', 'QT2025030002', '2025-03-17 00:00:00.000', 'EXISTING', '2a14d58a-2474-45e5-bc6f-157e6e6cb88a', NULL, 'c62883d1-389e-47b9-ba0c-0f431a92484b', 'SALE_IN_PROCESS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 15000.00, 0.00, 0.00, 15000.00, '2025-03-17 11:05:46.801', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 11:09:01.359', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('ad2e3661-4568-4f21-9473-1bfa3a61a41b', 'QT2025030005', '2025-03-19 00:00:00.000', 'VISITING', '38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4', 'fe12fa88-8146-47d5-ace8-77f047cc387f', NULL, 'SALE_IN_PROCESS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 107500.00, 0.00, 0.00, 107500.00, '2025-03-18 17:08:06.686', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:18:57.491', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL);

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

--
-- Table structure for table `sales_quotation_details`
--

CREATE TABLE IF NOT EXISTS `sales_quotation_details` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quotation_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` decimal(20,2) NOT NULL,
  `rate` decimal(20,2) NOT NULL,
  `expected_date` datetime(3) DEFAULT NULL,
  `discount` decimal(20,2) NOT NULL DEFAULT '0.00',
  `tax` decimal(20,2) NOT NULL DEFAULT '0.00',
  `total` decimal(20,2) NOT NULL DEFAULT '0.00',
  `total_with_tax` decimal(20,2) NOT NULL DEFAULT '0.00',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tax_term_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `sales_quotation_details_id_key` (`id`),
  KEY `sales_quotation_details_quotation_id_idx` (`quotation_id`),
  KEY `sales_quotation_details_product_id_idx` (`product_id`),
  KEY `sales_quotation_details_tax_term_id_idx` (`tax_term_id`),
  KEY `sales_quotation_details_created_by_idx` (`created_by`),
  KEY `sales_quotation_details_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_quotation_details`
--

INSERT INTO `sales_quotation_details` (`id`, `quotation_id`, `product_id`, `quantity`, `rate`, `expected_date`, `discount`, `tax`, `total`, `total_with_tax`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `tax_term_id`) VALUES
('1773cff0-c859-4336-ad1c-99e4c7f0302e', 'a9646e7e-8c0d-4c27-949f-b1efcdf8fce7', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 1000.00, 15.00, NULL, 0.00, 0.00, 0.00, 0.00, '2025-03-17 11:05:46.801', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 11:05:46.801', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('217529b8-e802-40ff-9d3b-abe9db55562b', '67e11232-1517-40b5-9606-b61204ca7ee5', 'ebe4c544-9dd6-4a6d-b790-8556da3c54e3', 2.00, 23.00, NULL, 0.00, 0.00, 0.00, 0.00, '2025-03-17 19:11:21.892', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:11:21.892', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('2809f371-9d2c-44f2-9c0c-1760d7fe9cea', 'ad2e3661-4568-4f21-9473-1bfa3a61a41b', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 500.00, 15.00, NULL, 0.00, 0.00, 0.00, 0.00, '2025-03-18 17:08:06.686', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:08:06.686', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '801392bc-8181-45dc-9595-dbdd73afa0cd'),
('4a221f56-b255-42f8-8067-67956e01fb9f', 'ad2e3661-4568-4f21-9473-1bfa3a61a41b', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 1000.00, 100.00, NULL, 0.00, 0.00, 0.00, 0.00, '2025-03-18 17:08:06.686', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:08:06.686', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '801392bc-8181-45dc-9595-dbdd73afa0cd'),
('5f058a0f-069b-49dd-b9da-cd5cd46b9b01', '98426e9f-0015-4a81-be70-dead3c277c6f', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', 3.00, 30.00, '2025-03-24 00:00:00.000', 0.00, 0.00, 0.00, 0.00, '2025-03-22 14:44:43.215', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 14:44:43.215', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('8c0f565f-62bd-410e-aa4b-346fecca1693', '6ed640e3-d028-4bbe-b7e7-b8ffb79b32b2', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 10.00, 15.00, '2025-03-20 00:00:00.000', 10.00, 5.00, 0.00, 0.00, '2025-03-16 17:22:19.726', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-16 17:22:19.726', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('9c1cdb2f-c362-4b4b-91f2-ed63a142de52', 'a30bbd33-d6c9-4273-ad9e-a6ae9ce6fef5', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 2000.00, 20.00, '2025-03-24 00:00:00.000', 0.00, 0.00, 0.00, 0.00, '2025-03-17 16:30:48.566', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:30:48.566', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '801392bc-8181-45dc-9595-dbdd73afa0cd'),
('a128a19f-248c-498d-b64a-554ad0a0bee1', '6ed640e3-d028-4bbe-b7e7-b8ffb79b32b2', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 100.00, 17.00, '2025-03-23 00:00:00.000', 0.00, 5.00, 0.00, 0.00, '2025-03-16 17:22:19.718', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-16 17:22:19.718', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('b302d674-06d0-4dd7-8add-db9eacdb85bf', 'a30bbd33-d6c9-4273-ad9e-a6ae9ce6fef5', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 1000.00, 15.00, '2025-03-21 00:00:00.000', 0.00, 0.00, 0.00, 0.00, '2025-03-17 16:30:48.566', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:30:48.566', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '801392bc-8181-45dc-9595-dbdd73afa0cd');

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

--
-- Table structure for table `sales_returns`
--

CREATE TABLE IF NOT EXISTS `sales_returns` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `return_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'SR-000001',
  `sales_order_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `return_date` datetime(3) NOT NULL,
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total_amount` decimal(20,2) NOT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'PENDING',
  `location_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `rack_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `sales_returns_id_key` (`id`),
  UNIQUE KEY `sales_returns_return_no_key` (`return_no`),
  KEY `sales_returns_sales_order_id_idx` (`sales_order_id`),
  KEY `sales_returns_location_id_idx` (`location_id`),
  KEY `sales_returns_rack_id_idx` (`rack_id`),
  KEY `sales_returns_created_by_idx` (`created_by`),
  KEY `sales_returns_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_returns`
--

INSERT INTO `sales_returns` (`id`, `return_no`, `sales_order_id`, `return_date`, `remarks`, `total_amount`, `status`, `location_id`, `rack_id`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('1aa58aac-1a89-42c1-bb4b-0bfd38093729', 'SR2025030004', '01cbc716-79e8-418a-ac04-e81bf329d006', '2025-03-25 00:00:00.000', NULL, 30.00, 'PENDING', '62b11e87-352c-40cc-8ee9-9c0a39048f90', '2543bf33-cfe2-4571-b437-6f02b40d9552', '2025-03-22 16:42:31.893', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 16:42:31.893', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2a086c16-b651-4105-ad16-5e95efa8c18c', 'SR2025030003', '38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee', '2025-03-19 00:00:00.000', NULL, 150.00, 'RETURN_RECEIVED', 'c62883d1-389e-47b9-ba0c-0f431a92484b', '80605747-4275-428c-ab79-9b228279452f', '2025-03-18 17:48:23.372', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:48:55.486', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9041e543-aea7-4825-a321-127b1f3d6449', 'SR2025030002', 'd2f6b77d-f38f-4929-8827-03be8d98617e', '2025-03-18 00:00:00.000', NULL, 35.00, 'RETURN_RECEIVED', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '4625c545-7709-47f3-ae84-73feea134a92', '2025-03-17 17:23:17.504', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:25:06.821', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b5ea3a28-ea2c-4e72-9bf8-59345ceb765e', 'SR2025030001', '998e79b1-3639-4c08-bc26-487d2523898c', '2025-03-19 00:00:00.000', 'test return', 450.00, 'COMPLETED', '62b11e87-352c-40cc-8ee9-9c0a39048f90', '2543bf33-cfe2-4571-b437-6f02b40d9552', '2025-03-17 14:38:01.699', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 14:47:41.907', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `sales_return_costings`
--

CREATE TABLE IF NOT EXISTS `sales_return_costings` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `return_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `costing_head_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit_rate` decimal(20,2) NOT NULL,
  `unit_count` decimal(20,2) NOT NULL,
  `total_amount` decimal(20,2) NOT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `sales_return_costings_id_key` (`id`),
  KEY `sales_return_costings_return_id_idx` (`return_id`),
  KEY `sales_return_costings_costing_head_id_idx` (`costing_head_id`),
  KEY `sales_return_costings_created_by_idx` (`created_by`),
  KEY `sales_return_costings_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_return_costings`
--

INSERT INTO `sales_return_costings` (`id`, `return_id`, `costing_head_id`, `unit_rate`, `unit_count`, `total_amount`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('0c20587a-e3f5-4bf5-9f5d-2502ab7cfc05', '2a086c16-b651-4105-ad16-5e95efa8c18c', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 100.00, 1.00, 100.00, '2025-03-18 17:48:23.372', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:48:23.372', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('99cac599-7b88-49b2-bab2-87f07e315c68', '1aa58aac-1a89-42c1-bb4b-0bfd38093729', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 100.00, 0.00, 0.00, '2025-03-22 16:42:31.893', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 16:42:31.893', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a345bd19-2534-498b-a9d9-c5d11399f0f3', 'b5ea3a28-ea2c-4e72-9bf8-59345ceb765e', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 1000.00, 1.00, 1000.00, '2025-03-17 14:38:01.699', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 14:38:01.699', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ab64baf9-9488-4c97-a5fe-cf2ba173e95e', '9041e543-aea7-4825-a321-127b1f3d6449', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 200.00, 1.00, 200.00, '2025-03-17 17:23:17.504', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:23:17.504', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `sales_return_details`
--

CREATE TABLE IF NOT EXISTS `sales_return_details` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `return_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` decimal(20,2) NOT NULL,
  `return_quantity` decimal(20,2) NOT NULL,
  `unit_price` decimal(20,2) NOT NULL,
  `total_amount` decimal(20,2) NOT NULL,
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `sales_return_details_id_key` (`id`),
  KEY `sales_return_details_return_id_idx` (`return_id`),
  KEY `sales_return_details_product_id_idx` (`product_id`),
  KEY `sales_return_details_created_by_idx` (`created_by`),
  KEY `sales_return_details_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_return_details`
--

INSERT INTO `sales_return_details` (`id`, `return_id`, `product_id`, `quantity`, `return_quantity`, `unit_price`, `total_amount`, `remarks`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('245e5841-1bb5-42bd-a3b3-5529f4eee7eb', '9041e543-aea7-4825-a321-127b1f3d6449', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 500.00, 1.00, 15.00, 15.00, '', '2025-03-17 17:23:17.504', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:23:17.504', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6d0a9979-65b8-407d-b45d-84ce25eb4773', '1aa58aac-1a89-42c1-bb4b-0bfd38093729', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', 3.00, 1.00, 30.00, 30.00, '', '2025-03-22 16:42:31.893', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 16:42:31.893', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('78457052-ee27-4d86-a8d5-ddb293cd7d38', 'b5ea3a28-ea2c-4e72-9bf8-59345ceb765e', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 1000.00, 30.00, 15.00, 450.00, '', '2025-03-17 14:38:01.699', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 14:38:01.699', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8f238165-43f2-4234-adeb-b9fee4d9a665', '2a086c16-b651-4105-ad16-5e95efa8c18c', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 50.00, 10.00, 15.00, 150.00, 'damaged product', '2025-03-18 17:48:23.372', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:48:23.372', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b6796cc1-0aa8-4a21-9bbc-4b726f3729e1', '9041e543-aea7-4825-a321-127b1f3d6449', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 1000.00, 1.00, 20.00, 20.00, '', '2025-03-17 17:23:17.504', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:23:17.504', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `sales_targets`
--

CREATE TABLE IF NOT EXISTS `sales_targets` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `time_frame_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `employee_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `sales_targets_id_key` (`id`),
  UNIQUE KEY `sales_targets_time_frame_id_employee_id_key` (`time_frame_id`,`employee_id`),
  KEY `sales_targets_time_frame_id_idx` (`time_frame_id`),
  KEY `sales_targets_employee_id_idx` (`employee_id`),
  KEY `sales_targets_created_by_idx` (`created_by`),
  KEY `sales_targets_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_targets`
--

INSERT INTO `sales_targets` (`id`, `time_frame_id`, `employee_id`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('01ab484e-5e8e-4ec2-ae88-d60616cb572b', '283d81eb-8783-46b1-b604-74ffa4845918', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 1, '2025-03-16 06:18:01.678', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-16 06:20:54.927', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('0b6f3b45-05b7-4cd2-9350-71f496becbeb', '283d81eb-8783-46b1-b604-74ffa4845918', 'fa11279e-76a1-45c4-92be-010878598fde', 1, '2025-03-17 11:04:58.959', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 11:05:14.253', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2a8b57d4-d176-4478-a59d-a31d523f5966', '9feb13df-abd1-42f3-96d9-5d5f8186c2fa', '5324ebd1-6145-4146-aead-f955206f6518', 1, '2025-03-18 16:55:37.014', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 16:55:37.014', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9', 'ee2a485d-13a5-4160-b8a8-1bfe684eef82', '5324ebd1-6145-4146-aead-f955206f6518', 1, '2025-03-22 08:05:01.862', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 14:42:11.043', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9483726c-d0f6-430d-8a8b-a073666ad555', 'ee2a485d-13a5-4160-b8a8-1bfe684eef82', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 1, '2025-03-17 16:24:31.805', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:24:31.805', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `security_group`
--

CREATE TABLE IF NOT EXISTS `security_group` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `security_group_id_key` (`id`),
  KEY `security_group_created_by_idx` (`created_by`),
  KEY `security_group_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `security_group`
--

INSERT INTO `security_group` (`id`, `name`, `description`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('085c6302-bb5d-43fe-95f3-d50ed8dd95d6', 'Sales executive', '', '2025-03-18 06:18:05.647', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 06:18:05.647', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('159f9f70-8c99-4255-a258-274d56c3781c', 'admin', 'admin', '2025-02-24 12:27:28.720', '18e7ab49-9640-49b5-9f89-9365a1c7fbea', NULL, '2025-02-24 12:27:28.720', NULL, NULL, 'test'),
('26dd1ba9-c0e0-468b-af44-2b048e0f1d4c', 'SCM manager', '', '2025-03-18 06:16:37.254', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 06:16:37.254', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2b953dd0-27fa-401d-9e8b-ae37bf7b7b82', 'HR-SCM Executive group', 'HR-SCM executive group', '2025-03-05 17:20:33.479', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', NULL, '2025-03-08 16:45:10.215', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4acf89a3-7e4e-4b48-b154-8f4c16d42469', 'Warehouse executive', '', '2025-03-18 06:17:01.730', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 06:17:01.730', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4efd2051-f4fa-497f-9408-7f89b2ad60b1', 'Warehouse manager', '', '2025-03-18 06:17:14.774', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 06:17:14.774', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('65faaab9-0abb-4761-8782-4323510ea480', 'HR Manager group', 'HR manager group', '2025-03-05 17:20:12.776', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', NULL, '2025-03-05 17:20:12.776', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8c98d8ca-29ce-44ef-bf02-ab7acb9433ac', 'Factory executive', '', '2025-03-18 06:17:37.271', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 06:17:37.271', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9d51ee81-7ce3-4e3b-87ec-b71327b9b6dc', 'SCM executive', '', '2025-03-18 06:16:21.786', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 06:16:21.786', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a0250da6-459f-4d5a-992f-efd4528500ca', 'Sales manager', '', '2025-03-18 06:18:17.365', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 06:18:17.365', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c4ba0212-8074-4b8e-91a2-4d291672a973', 'Factory manager', '', '2025-03-18 06:17:47.425', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 06:17:47.425', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f2e9286f-54b0-46fa-9f71-a959de64d5f4', 'HR executive', '', '2025-03-18 06:15:58.962', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 06:15:58.962', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `security_group_rule`
--

CREATE TABLE IF NOT EXISTS `security_group_rule` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `group_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `rule_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `security_group_rule_id_key` (`id`),
  KEY `security_group_rule_group_id_fkey` (`group_id`),
  KEY `security_group_rule_rule_id_fkey` (`rule_id`),
  KEY `security_group_rule_created_by_idx` (`created_by`),
  KEY `security_group_rule_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `security_group_rule`
--

INSERT INTO `security_group_rule` (`id`, `group_id`, `rule_id`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('008557d5-7c7b-492e-b564-a652c980d447', '8c98d8ca-29ce-44ef-bf02-ab7acb9433ac', '84014d09-beba-45f7-8204-dca65b257903', '2025-03-18 06:17:37.295', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:17:37.295', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('07aa36bd-bc72-4091-a00c-600a2c8497aa', '159f9f70-8c99-4255-a258-274d56c3781c', '06571ade-c81e-4acd-a153-4e61b9276228', '2025-02-24 12:27:28.725', '18e7ab49-9640-49b5-9f89-9365a1c7fbea', '::1', '2025-02-24 12:27:28.725', NULL, NULL, 'test'),
('0a1721a0-4b6c-4f60-a329-402f530bee24', 'a0250da6-459f-4d5a-992f-efd4528500ca', '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-18 06:18:17.385', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:18:17.385', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('0bc40523-04e7-48de-953d-9e35aac54055', '8c98d8ca-29ce-44ef-bf02-ab7acb9433ac', '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-18 06:17:37.285', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:17:37.285', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('21d597bd-8033-401c-aa65-9a42df3f4eee', '9d51ee81-7ce3-4e3b-87ec-b71327b9b6dc', '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-18 06:16:21.819', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:16:21.819', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('3b3c7043-ae9a-4932-b9b7-eba4b308ee16', '9d51ee81-7ce3-4e3b-87ec-b71327b9b6dc', '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-18 06:16:21.807', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:16:21.807', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('41678f88-2fb1-4614-b744-eace3da72d8b', '2b953dd0-27fa-401d-9e8b-ae37bf7b7b82', '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-08 16:45:10.255', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 16:45:10.255', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('590b895b-9ffd-4481-80aa-590ba5811acc', '9d51ee81-7ce3-4e3b-87ec-b71327b9b6dc', '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-18 06:16:21.826', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:16:21.826', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('65725e65-c45e-4139-8ea4-f64e96e1b12e', '085c6302-bb5d-43fe-95f3-d50ed8dd95d6', '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-18 06:18:05.667', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:18:05.667', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6a8facfd-e156-47fc-8ff9-7f966d489d3d', '4acf89a3-7e4e-4b48-b154-8f4c16d42469', '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-18 06:17:01.755', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:17:01.755', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('71256ae5-96e9-4de8-973b-66cbe358cf8f', 'c4ba0212-8074-4b8e-91a2-4d291672a973', '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-18 06:17:47.452', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:17:47.452', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('757f4f23-6c15-43a1-bb1f-0fb7e334bd6a', 'c4ba0212-8074-4b8e-91a2-4d291672a973', '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-18 06:17:47.457', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:17:47.457', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('777425ec-5d99-413b-b390-16f1e9d85fc0', 'f2e9286f-54b0-46fa-9f71-a959de64d5f4', 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-18 06:15:58.988', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:15:58.988', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('777bc97e-e407-46c6-b313-72fd37f0a0c9', '4acf89a3-7e4e-4b48-b154-8f4c16d42469', 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-18 06:17:01.772', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:17:01.772', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9424f418-0caf-469a-bb18-cf19897cb1bf', '4efd2051-f4fa-497f-9408-7f89b2ad60b1', '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-18 06:17:14.800', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:17:14.800', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('96cadd6b-3bb9-4300-9604-d038f1691d44', 'c4ba0212-8074-4b8e-91a2-4d291672a973', '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-18 06:17:47.445', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:17:47.445', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9b6bb0ca-fd5b-4cc8-8729-3df4c62b8e9e', 'a0250da6-459f-4d5a-992f-efd4528500ca', '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-18 06:18:17.391', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:18:17.391', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9d1c7754-cddf-4128-82d0-30638c26cc50', '4acf89a3-7e4e-4b48-b154-8f4c16d42469', '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-18 06:17:01.763', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:17:01.763', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a1e9cfdf-5b61-4739-b074-77e401f15f88', '4efd2051-f4fa-497f-9408-7f89b2ad60b1', '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-18 06:17:14.793', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:17:14.793', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a4fc2e3b-646a-4c93-9298-63d87e83b8f7', '65faaab9-0abb-4761-8782-4323510ea480', '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-05 17:20:12.794', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-05 17:20:12.794', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a8f0e952-dc2f-445c-9f91-3b2309a22ce8', '26dd1ba9-c0e0-468b-af44-2b048e0f1d4c', '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-18 06:16:37.284', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:16:37.284', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('aa8fcfc7-1774-4445-8225-fe7147c506da', 'f2e9286f-54b0-46fa-9f71-a959de64d5f4', '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-18 06:15:58.997', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:15:58.997', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ac845cd0-0b46-4de1-a1f8-2fe0e57ef7f9', '085c6302-bb5d-43fe-95f3-d50ed8dd95d6', '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-18 06:18:05.673', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:18:05.673', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b958a5c1-1cee-4b9d-9b7e-5353da91a8ae', 'a0250da6-459f-4d5a-992f-efd4528500ca', '33254dc1-628a-4f8d-8427-b01fb63fc7f6', '2025-03-18 06:18:17.399', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:18:17.399', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c273bea1-a9bb-4d67-a6d9-e5181ab761ed', '26dd1ba9-c0e0-468b-af44-2b048e0f1d4c', '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-18 06:16:37.292', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:16:37.292', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c461aa26-042e-4de6-a181-60a8b0460577', '26dd1ba9-c0e0-468b-af44-2b048e0f1d4c', '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-18 06:16:37.276', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:16:37.276', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d916f03f-c266-492c-9735-48708c70dd5e', 'f2e9286f-54b0-46fa-9f71-a959de64d5f4', '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-18 06:15:58.993', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:15:58.993', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e0c4e200-53cb-476f-95b5-f168c8811e0a', '4efd2051-f4fa-497f-9408-7f89b2ad60b1', '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-18 06:17:14.808', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:17:14.808', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e7f81bd8-4f36-41d1-915a-defbda42d0a6', '2b953dd0-27fa-401d-9e8b-ae37bf7b7b82', 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-05 17:20:33.498', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-08 16:45:10.244', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e93dfe93-ffb3-46b6-9406-db0adea762a7', '8c98d8ca-29ce-44ef-bf02-ab7acb9433ac', '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-18 06:17:37.278', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:17:37.278', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f9802470-5347-4c92-9a81-a29e64878d80', '085c6302-bb5d-43fe-95f3-d50ed8dd95d6', 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-18 06:18:05.680', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:18:05.680', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `security_rule`
--

CREATE TABLE IF NOT EXISTS `security_rule` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `security_rule_id_key` (`id`),
  KEY `security_rule_created_by_idx` (`created_by`),
  KEY `security_rule_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `security_rule`
--

INSERT INTO `security_rule` (`id`, `name`, `description`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('06571ade-c81e-4acd-a153-4e61b9276228', 'admin', 'admin', '2025-02-24 07:50:24.863', '18e7ab49-9640-49b5-9f89-9365a1c7fbea', NULL, '2025-02-24 07:59:51.633', '18e7ab49-9640-49b5-9f89-9365a1c7fbea', NULL, 'test'),
('113162ad-be5b-4c90-b24d-8deab568bc8c', 'SCM Executive', '', '2025-03-08 16:44:03.991', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:32:12.745', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2cefa92f-1911-4346-bfb5-16175c23146a', 'Factory manager', '', '2025-03-17 17:44:05.650', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:44:05.650', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('33254dc1-628a-4f8d-8427-b01fb63fc7f6', 'Sales manager', '', '2025-03-17 17:47:46.698', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:47:46.698', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('37aad005-bf7c-4a48-b1a5-cd7986965910', 'Warehouse manager', '', '2025-03-17 17:40:20.594', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:40:20.594', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('3c85d70b-5d5c-478b-9c15-1aeab42f245f', 'HR Manager', 'Manage hrms settings and all', '2025-03-05 17:18:22.190', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', NULL, '2025-03-17 17:34:25.559', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4ff9d9cf-3680-4391-9c20-346f9c76c5c1', 'CRM rules', '', '2025-03-17 17:48:22.114', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:48:22.114', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('590cc281-dfef-480a-9ad0-b9bc7a98624a', 'SCM Manager', 'scm manager', '2025-03-17 17:28:58.324', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:30:47.434', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('84014d09-beba-45f7-8204-dca65b257903', 'Factory executive', '', '2025-03-17 17:42:13.869', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:42:13.869', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9ead59b2-efea-460f-8af2-f594a949d86b', 'Common user rule', '', '2025-03-17 17:50:00.709', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:50:00.709', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e9880af9-6378-47b2-90af-0022c100c01a', 'Sales executive', '', '2025-03-17 17:46:38.481', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 18:07:49.119', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', 'HR Executive', 'HR executive', '2025-03-05 17:19:42.570', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', NULL, '2025-03-17 17:33:23.133', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', 'Warehouse executive', '', '2025-03-17 17:37:33.885', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 17:37:33.885', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `security_rule_wise_menu_permission`
--

CREATE TABLE IF NOT EXISTS `security_rule_wise_menu_permission` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `menu_id` int NOT NULL,
  `can_view` tinyint(1) NOT NULL,
  `can_create` tinyint(1) NOT NULL,
  `can_update` tinyint(1) NOT NULL,
  `can_delete` tinyint(1) NOT NULL,
  `can_report` tinyint(1) NOT NULL,
  `rule_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `security_rule_wise_menu_permission_id_key` (`id`),
  KEY `security_rule_wise_menu_permission_rule_id_fkey` (`rule_id`),
  KEY `security_rule_wise_menu_permission_created_by_idx` (`created_by`),
  KEY `security_rule_wise_menu_permission_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `security_rule_wise_menu_permission`
--

INSERT INTO `security_rule_wise_menu_permission` (`id`, `menu_id`, `can_view`, `can_create`, `can_update`, `can_delete`, `can_report`, `rule_id`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('018bccd1-f7b0-4f16-8cf7-3a3cb635ed6b', 24, 1, 0, 0, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-17 17:33:23.269', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:33:23.269', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('03687b2a-a129-4fb7-a3d1-eee8e233d46b', 35, 1, 1, 1, 0, 0, '84014d09-beba-45f7-8204-dca65b257903', '2025-03-17 17:42:13.905', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:42:13.905', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('0394c1c3-c330-4c51-9551-1482dcee05d9', 26, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.629', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.629', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('04562673-6456-4aba-8e3f-1d4372d69b54', 41, 1, 0, 0, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.745', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.745', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('084604b8-c075-481f-b455-60f17ec97810', 65, 0, 0, 0, 0, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.796', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.796', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('08893bc5-deca-43bb-8b87-6c032052da95', 54, 1, 1, 1, 0, 0, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-17 17:34:25.710', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:34:25.710', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('08947d8d-3742-487a-9690-75155e703ab4', 26, 1, 0, 0, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-17 17:32:12.786', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.786', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('08c00fb4-5fdf-4cf7-aaf1-a91f4ad6c3ce', 12, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-05 17:18:22.219', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:34:25.605', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('095058ce-514b-406b-8751-0bad7a1d9541', 42, 0, 0, 0, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:33.988', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:33.988', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('09f2abd3-f05b-4fee-9570-b900a0de5ad5', 49, 0, 0, 0, 0, 0, '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-17 17:48:22.140', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:48:22.140', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('0a5aee81-71ba-45d3-8450-a09cc37ebc8b', 53, 1, 1, 1, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-17 17:33:23.276', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:33:23.276', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('0c62770c-9e36-49b5-8f42-e1af9b70ef97', 35, 1, 1, 1, 1, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.714', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.714', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('0c756c39-3a96-4455-90c8-3b0f96896680', 35, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:33.937', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:33.937', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('0cd6e63b-0d12-485c-aa7b-57a4a0d2f86d', 18, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-05 17:18:22.275', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:34:25.655', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('0d8cb19c-f8c3-4a7f-aa6e-b1b448003a0b', 55, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:34.018', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:34.018', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('1177525e-9167-4cdf-b6ca-5fea386c74ca', 24, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-17 17:34:25.698', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:34:25.698', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('12b55673-b44c-49f0-87ae-c05b1b28b201', 37, 1, 1, 1, 1, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.729', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.729', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('12fb6da5-4e4f-484a-aa2c-d39cdf76ed47', 62, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:34.033', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:34.033', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('13d57507-ce2b-4e5b-8a0c-9d4d25a542e2', 29, 0, 0, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.504', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.138', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('15cb7a63-3d77-4a9b-bdb3-f78c7e7745ba', 22, 1, 1, 1, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-17 17:33:23.256', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:33:23.256', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('17aabb3c-9381-4ffe-aeb5-1cb7a404a239', 41, 1, 0, 0, 0, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.762', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.762', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('19f89fb6-bcd4-42d4-b1ea-ae113e9d1c81', 13, 1, 1, 1, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-05 17:19:42.613', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:33:23.187', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('1cec747f-4a89-4e17-b97e-f0269a17e89f', 32, 1, 0, 0, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.672', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.672', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('1d894327-60f3-4af9-b095-e0ac7852846c', 28, 1, 1, 1, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-08 16:44:04.013', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.806', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('1f728d79-951d-4445-bda0-9931f6864aad', 68, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:34.052', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:34.052', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('1f8496da-529f-4c11-a691-3f36c7ef1dde', 41, 1, 0, 0, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:33.981', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:33.981', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('1fe08127-3e82-4870-b740-7f47f8349d14', 66, 1, 1, 1, 1, 0, '33254dc1-628a-4f8d-8427-b01fb63fc7f6', '2025-03-17 17:47:46.750', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:47:46.750', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('20569d51-ebdd-4ae2-8bdf-79583e62d8f4', 56, 1, 0, 0, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:34.026', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:34.026', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('22f87199-ce77-426c-af94-6107855c6dad', 30, 1, 1, 1, 1, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:28:58.395', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.497', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('23118aa9-0040-4523-be2a-a5c00660f9f1', 66, 1, 1, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.565', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.248', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2394aa1f-340d-404c-a7f9-d238790afda9', 39, 1, 0, 0, 0, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.744', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.744', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('24abb0e3-cb71-4898-a148-1d8571401e4c', 11, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-05 17:18:22.211', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:34:25.597', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2683df04-6749-4267-b8ea-53cb40c4c51c', 48, 1, 1, 1, 1, 1, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.752', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.752', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('26edf105-ca69-4b66-b208-462b45846abe', 54, 1, 1, 1, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-17 17:33:23.281', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:33:23.281', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2799944a-23ad-44a7-8119-3dc399dbd952', 36, 1, 1, 1, 0, 0, '84014d09-beba-45f7-8204-dca65b257903', '2025-03-17 17:42:13.910', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:42:13.910', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2a2350e6-40d1-454c-aaf9-0734c04c42db', 10, 1, 1, 1, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-08 18:30:51.259', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.769', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2bd5a9a2-0a37-4c0d-9304-88f68f1df7ca', 20, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-05 17:18:22.287', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:34:25.670', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2e435efa-b2a4-4d42-8ac7-4ff05e1bbfef', 41, 1, 1, 0, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-08 16:44:04.055', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.886', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('2f026f90-5c5d-4514-8e0e-7ca40ad98b24', 25, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:33.909', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:33.909', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('32144775-9cb1-4aac-9986-bca49c6329ce', 12, 1, 0, 1, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-05 17:19:42.605', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:33:23.179', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('326a52b8-982b-45ed-88ca-a676db19a96d', 14, 1, 1, 0, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-05 17:19:42.620', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:33:23.196', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('32812888-1482-4cdf-b90a-4e9be0c06025', 20, 1, 0, 0, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-05 17:19:42.667', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:33:23.243', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('35d9152b-cad4-4c70-9849-a4c6d7e92ffe', 27, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:33.923', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:33.923', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('35f649c5-b2b9-4de6-b4a0-301e208f1fc2', 29, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.651', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.651', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('367f4321-705f-44a3-ad03-3949d1037817', 38, 1, 0, 0, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.720', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.720', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('368fcc17-8f90-4bfe-aa22-d92369f3b083', 18, 1, 0, 0, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-05 17:19:42.648', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:33:23.227', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('379d4ca9-ec58-4a52-9eaa-98691a5a8fe0', 41, 1, 0, 0, 0, 0, '84014d09-beba-45f7-8204-dca65b257903', '2025-03-17 17:42:13.942', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:42:13.942', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('38b5aaba-93b6-4f79-92c8-5b68e07e70d6', 31, 1, 1, 1, 1, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:28:58.403', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.505', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('39672ea5-0340-4faf-95e2-d9f56728c11b', 39, 1, 0, 0, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:33.972', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:33.972', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('3ab997c6-972e-4c2b-afb3-e0ed8349d417', 14, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-05 17:18:22.239', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:34:25.621', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('3ced3083-dd03-48f5-bf77-af63b670e9f7', 23, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-17 17:34:25.692', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:34:25.692', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('3e2e56ee-36d7-4c68-8142-ba50400ace65', 11, 1, 0, 0, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-05 17:19:42.597', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:33:23.172', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('3e9889bd-f081-4436-8367-2f8413b15788', 28, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.642', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.642', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('403a22dc-eb6a-4ac3-8d66-611e169fb42c', 65, 1, 0, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.558', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.238', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('43e5dffa-6c1b-427f-9ac7-3e2cbe124b21', 29, 1, 1, 1, 0, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.670', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.670', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('45f4733e-7ff3-40e2-a3cb-0f0da9b77d60', 55, 1, 1, 1, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-17 17:32:12.925', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.925', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('49f599f1-3a96-476d-b9a7-58f553ba9eec', 16, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-05 17:18:22.255', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:34:25.637', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4a3af6ab-5098-4fae-9094-f820c2626dcc', 68, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.814', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.814', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4d55d4a0-0c4f-419d-bd4d-fe3aa86cdb83', 38, 1, 1, 1, 1, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.737', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.737', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('52294a39-bbaa-4750-a7b8-8021ea3a1d44', 62, 0, 0, 0, 0, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:30:15.986', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.578', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('52fa6e94-3e6e-4d22-abc4-50fb357c22dc', 16, 1, 1, 1, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-05 17:19:42.635', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:33:23.210', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5380cf89-c566-422d-8631-3238947e293c', 33, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.682', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.682', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('54ff7a46-8024-43a6-8dce-f749c722d330', 62, 0, 0, 0, 0, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.787', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.787', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5535651f-f8ec-4bdd-bae7-7c19c62891fc', 30, 1, 1, 1, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-08 16:44:04.019', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.828', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('57db90cf-023f-4a38-a6fd-c9c245814f9a', 69, 1, 1, 1, 1, 0, '33254dc1-628a-4f8d-8427-b01fb63fc7f6', '2025-03-17 17:47:46.773', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:47:46.773', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('584d1800-5b90-499d-8b90-e2821fd72aec', 33, 1, 0, 0, 0, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.697', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.697', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('59165e4b-a197-4c60-8218-69cda115a741', 32, 1, 1, 1, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-08 16:44:04.034', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.853', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5952e10f-c52b-4953-b72b-3ba99d467d30', 54, 1, 1, 1, 0, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:30:47.563', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.563', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5a15426e-3af3-4ad3-8b33-1e709dbd0568', 63, 1, 0, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.541', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.214', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5a8ff576-e494-45ef-bf29-d986e7f34f43', 41, 1, 0, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.523', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.175', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5a91cfa4-f64a-4afc-9db0-80ba64470de5', 25, 1, 1, 1, 1, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:28:58.349', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.445', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5e7c5eb6-27ed-4951-b0c1-b202e0786ca5', 23, 1, 1, 1, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-17 17:33:23.262', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:33:23.262', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5faa3508-eb28-4d8a-ae04-96978566e15a', 36, 1, 0, 0, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.703', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.703', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('60cbac69-6790-4cdc-9f51-3ca12134a9be', 34, 1, 0, 0, 0, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.706', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.706', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('639a0462-b4e2-4819-90c0-50a3a521ff68', 30, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.658', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.658', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6447bb49-059e-4b69-829b-b5c30ac05bde', 27, 1, 0, 0, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-17 17:32:12.797', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.797', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('650881cf-3973-4ead-897a-fcedfd6a0497', 54, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:34.010', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:34.010', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('658067eb-469a-4949-b4b4-5c2a074d98c7', 54, 1, 1, 1, 0, 0, '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-17 17:48:22.157', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:48:22.157', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('66a5497c-8f82-4481-844e-e26dace64167', 28, 1, 1, 1, 1, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:28:58.382', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.476', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('693598fd-728d-4aef-aa82-d55542abf001', 20, 1, 0, 0, 0, 0, '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-17 17:50:00.766', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:50:00.766', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('696626a6-84c5-4a03-8d44-52ed36236feb', 48, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:33.995', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:33.995', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6b3d0cb0-6d2a-4d91-9bc6-29e7078481d7', 21, 1, 1, 1, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-09 17:12:29.494', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:33:23.249', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6e3a0399-3c53-4959-a37b-eb8b1649528b', 62, 1, 1, 1, 1, 0, '33254dc1-628a-4f8d-8427-b01fb63fc7f6', '2025-03-17 17:47:46.720', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:47:46.720', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6fd49d30-4724-4e41-88ad-117af46f409d', 10, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-05 17:18:22.206', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:34:25.589', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('70cac7c0-3843-4810-abb3-5c12c050e793', 36, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:33.946', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:33.946', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('760498e3-1981-4445-9628-2e2a85063f52', 55, 1, 1, 1, 0, 0, '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-17 17:48:22.165', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:48:22.165', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('782f6d92-94b6-4f63-ab28-92f3a54682cc', 70, 1, 0, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.597', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.292', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('79a39a8e-ea14-4cf4-b588-c2ea9b16e326', 42, 1, 0, 0, 0, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:28:58.433', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.542', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('7b8d63d1-2c4b-41c7-b711-696221772958', 30, 1, 1, 1, 0, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.673', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.673', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('7bf44e65-a6f5-466a-8af2-c0eec81d27a0', 69, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:34.061', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:34.061', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('7cea8841-a4f2-466a-a1a5-22dc06490ce5', 29, 1, 1, 1, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-08 18:30:51.293', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.817', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('7e689f75-499a-40b4-b3fd-877bb0c45ba4', 62, 1, 1, 1, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.535', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.203', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('7f471c72-10bf-4187-b93f-0bafe86125df', 56, 1, 0, 0, 0, 0, '84014d09-beba-45f7-8204-dca65b257903', '2025-03-17 17:42:13.955', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:42:13.955', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8092eb7e-337f-4261-b21e-2515ab878996', 40, 1, 0, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.516', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.162', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('811ed7e6-d608-4b07-ab30-924bc0de3991', 13, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-05 17:18:22.228', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:34:25.612', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8161bc43-5dfe-4849-967f-7a2545107f28', 65, 1, 0, 0, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:34.041', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:34.041', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('887f2cc4-5396-46de-8891-6d98f32f5f61', 53, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:34.002', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:34.002', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('889bdcc1-e831-4ec9-ab2d-ce85718469be', 38, 1, 0, 0, 0, 0, '84014d09-beba-45f7-8204-dca65b257903', '2025-03-17 17:42:13.921', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:42:13.921', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8b2439b2-a59c-482a-9f37-c5e44d5a62f1', 28, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:33.930', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:33.930', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8dedefdb-b4dd-4f8a-985c-731211073ed8', 25, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.620', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.620', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8e684322-3f33-416a-b861-d32f8e78938b', 15, 1, 0, 0, 0, 0, '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-17 17:50:00.747', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:50:00.747', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8f0aa0d7-b8e3-4346-8286-d8ee33bb280c', 19, 1, 0, 0, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-05 17:19:42.657', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:33:23.236', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('908fb9e0-d153-4f9f-acbf-cc1accea1137', 36, 1, 1, 1, 1, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.722', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.722', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('909e57fb-d418-4582-89cb-1af9dcafd525', 14, 0, 0, 0, 0, 0, '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-17 17:50:00.741', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:50:00.741', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('90bd1d57-3513-4d97-ae1b-cda977cfe295', 63, 1, 1, 1, 1, 0, '33254dc1-628a-4f8d-8427-b01fb63fc7f6', '2025-03-17 17:47:46.726', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:47:46.726', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('913693d0-c6db-44f2-82b4-c13791b8464f', 53, 1, 1, 1, 0, 0, '4ff9d9cf-3680-4391-9c20-346f9c76c5c1', '2025-03-17 17:48:22.151', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:48:22.151', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('91ff324a-e6a4-4541-895e-e54ff1fc8017', 33, 1, 1, 1, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-08 16:44:04.040', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.864', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9552bf80-f344-4b80-9b3b-23660ee1155a', 40, 1, 0, 0, 0, 0, '84014d09-beba-45f7-8204-dca65b257903', '2025-03-17 17:42:13.935', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:42:13.935', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('95a4379e-4797-4618-82a7-487fba9b9e66', 31, 1, 0, 0, 0, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.678', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.678', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('979a3a3f-d03e-449b-b12d-8556d3cbbeee', 53, 1, 1, 1, 0, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:30:47.553', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.553', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9a27e683-3ec9-4993-91c8-b63ac465f6e4', 34, 1, 1, 1, 1, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:28:58.426', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.534', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a0af41b9-742d-453f-8f1a-44691125cc1f', 67, 1, 1, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.572', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.260', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a137722a-0e32-475e-be62-5cff1b140031', 32, 1, 1, 1, 1, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:28:58.412', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.512', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a3af2804-e2c0-4500-a854-3f4210650884', 65, 1, 1, 1, 1, 0, '33254dc1-628a-4f8d-8427-b01fb63fc7f6', '2025-03-17 17:47:46.742', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:47:46.742', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a502e1c7-5d22-4a5e-ac69-3d10b471afc0', 54, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.772', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.772', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a5d26b5e-2188-4534-8ab9-302a04a2ab8d', 31, 1, 1, 1, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-08 16:44:04.027', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.841', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a6f8fa08-f3c8-443a-a0bc-a826e98651bb', 26, 1, 1, 1, 1, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:28:58.367', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.456', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a9377a25-7dad-43ca-a161-f56e6ceb1651', 67, 1, 1, 1, 1, 0, '33254dc1-628a-4f8d-8427-b01fb63fc7f6', '2025-03-17 17:47:46.757', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:47:46.757', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a9a5136f-332a-41f8-837b-a005e1c1c1c8', 29, 1, 1, 1, 0, 0, '84014d09-beba-45f7-8204-dca65b257903', '2025-03-17 17:42:13.896', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:42:13.896', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ab6fc2e3-628c-4e19-9c66-f6e3c3152549', 56, 1, 0, 0, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.787', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.787', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('acc3b3ab-186c-4731-8a7e-dd63a2f9396e', 48, 1, 1, 1, 1, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.771', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.771', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('accd167d-5437-4361-bc35-5c9af0f5ac30', 34, 1, 1, 1, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-08 16:44:04.048', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.875', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ae6ba776-e6cc-42e8-83d4-9c2217e1c10b', 39, 1, 0, 0, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.728', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.728', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b00e9496-5d35-4cc7-99bf-e64e95891cd2', 37, 1, 0, 0, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.712', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.712', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b184c10b-dbcb-4d0f-b021-61eb76a2886f', 33, 1, 1, 1, 1, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:28:58.419', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.524', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b2d6f429-0d0c-46a2-8e08-4669baad0978', 42, 1, 0, 0, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-17 17:32:12.897', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.897', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b3d57733-a014-495f-99b3-7f6c3e8feb28', 25, 1, 1, 1, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-08 18:30:51.269', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.776', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b42fe759-c523-4fa7-93fa-29d46eb65fa8', 17, 1, 1, 1, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-05 17:19:42.641', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:33:23.220', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b4d8e0e4-375b-4eab-b03c-3564447abfad', 29, 1, 1, 1, 1, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:28:58.389', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.489', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b4f741be-e484-40ac-807c-a2ef2d195add', 56, 1, 0, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.529', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.191', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b661d2bd-76a3-4d6b-b996-460873d03d82', 39, 1, 0, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.510', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.152', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b70da174-38ed-4ac0-89a5-593596e614d5', 64, 1, 1, 1, 1, 0, '33254dc1-628a-4f8d-8427-b01fb63fc7f6', '2025-03-17 17:47:46.734', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:47:46.734', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ba89239c-06c8-4770-ac3c-575473691544', 40, 1, 0, 0, 0, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.753', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.753', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('bb6a4fd2-494d-46a3-a3e5-6e21bf445880', 19, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-05 17:18:22.281', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:34:25.664', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('bbdd3e1f-66ed-4483-9e6b-6ae01367c6ee', 26, 1, 1, 1, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:33.917', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:33.917', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('bfadb0b3-5fdf-44fb-8564-86128b733d0a', 62, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.797', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.797', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c00baa8b-c20e-4909-9a19-ca6e0008ff3a', 40, 1, 0, 0, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.736', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.736', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c1636df6-af5d-4c55-9da2-7446a286a726', 64, 1, 1, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.549', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.228', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c55a46e1-7f03-469a-8a6a-e1e28af4aa0e', 16, 1, 1, 1, 0, 0, '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-17 17:50:00.754', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:50:00.754', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c6e9fc86-804c-4789-b40b-206071844571', 17, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-05 17:18:22.261', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:34:25.644', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c7438ccb-60a1-4247-9715-0a8193fe735a', 31, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.665', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.665', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c7ce4a7e-1b99-40b6-b253-a52fc0823e66', 21, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-17 17:34:25.676', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:34:25.676', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c847be3d-1352-4a2e-9fa1-09b3bb9781e3', 69, 1, 0, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.589', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.280', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ca2c5744-751f-40f6-bf31-3cb322e8c52f', 55, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.779', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.779', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('cb656d1d-51dd-4272-863f-570da005bd91', 53, 1, 0, 1, 0, 0, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-17 17:34:25.704', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:34:25.704', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('cf193bef-4ba1-4036-99b0-a6e8029fd621', 15, 1, 1, 1, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-05 17:19:42.626', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:33:23.203', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d2e93c3b-b313-4b2e-ac93-6ce00d3ce277', 32, 1, 0, 0, 0, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.686', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.686', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d3f4db6a-da24-437d-bf13-50c7194592a0', 55, 1, 1, 1, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-17 17:33:23.286', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:33:23.286', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d55beb44-d0ae-42b2-bf2c-e6477bb570c4', 48, 1, 1, 1, 0, 0, '84014d09-beba-45f7-8204-dca65b257903', '2025-03-17 17:42:13.949', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:42:13.949', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d93363c0-fecf-4c3f-9ab8-be9375c94da4', 69, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.824', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.824', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('da295ace-27bf-422e-9e6d-a50967405911', 53, 1, 1, 1, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-17 17:32:12.906', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.906', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('da4d5992-f5cf-4022-84cf-b53e3edbc09d', 17, 1, 1, 1, 0, 0, '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-17 17:50:00.760', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:50:00.760', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('dc7300c3-2c85-4d8a-b1fb-6dfbb79f0e77', 68, 1, 1, 0, 0, 0, 'e9880af9-6378-47b2-90af-0022c100c01a', '2025-03-17 17:46:38.580', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 18:07:49.271', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('dcd7c6b1-b2f9-43b5-8add-e7c8df4c67a1', 22, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-17 17:34:25.684', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:34:25.684', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('df22a981-ad79-47f7-81bd-e7f7379927e6', 10, 1, 1, 1, 0, 0, 'ed7b1d13-35aa-4b4b-8f43-ebe67508be6f', '2025-03-05 17:19:42.590', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:33:23.161', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('dfff201e-2c72-4bf4-a770-e240cd6b122c', 15, 1, 1, 1, 1, 1, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-05 17:18:22.248', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-17 17:34:25.628', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e0046f31-b198-410f-8063-59bc3baaca00', 38, 1, 0, 0, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:33.963', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:33.963', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e0268f6c-14e8-4085-8ed8-dcec528023e8', 54, 1, 1, 1, 0, 0, '113162ad-be5b-4c90-b24d-8deab568bc8c', '2025-03-17 17:32:12.915', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:32:12.915', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e1d8ad6b-550f-4194-abb0-fe0041170ddd', 34, 1, 0, 0, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.689', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.689', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e1ff79f7-c482-4a60-b2f4-9c88496f4631', 37, 1, 0, 0, 0, 0, 'f99d6fdd-6e75-4bc6-a0fd-4344fcce634c', '2025-03-17 17:37:33.956', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:37:33.956', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e4b0ddae-21e5-40f7-a530-2566d7eccdfc', 55, 1, 1, 1, 0, 0, '3c85d70b-5d5c-478b-9c15-1aeab42f245f', '2025-03-17 17:34:25.717', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:34:25.717', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e78eadd5-e5fb-481d-96be-e82dfb28af2f', 53, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.764', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.764', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e953828d-33e9-4a3a-90e8-679abc340a1a', 37, 1, 1, 1, 0, 0, '84014d09-beba-45f7-8204-dca65b257903', '2025-03-17 17:42:13.916', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:42:13.916', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ea27e464-4d58-4bf1-9d79-46c1b8e333b7', 39, 1, 0, 0, 0, 0, '84014d09-beba-45f7-8204-dca65b257903', '2025-03-17 17:42:13.927', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:42:13.927', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ead637f2-d814-49d5-bbac-29a7489180f3', 65, 1, 0, 0, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.805', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.805', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ed0ac7a1-2450-41d7-b98c-fb7d8dcfb34a', 68, 1, 1, 1, 1, 0, '33254dc1-628a-4f8d-8427-b01fb63fc7f6', '2025-03-17 17:47:46.766', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:47:46.766', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ee4b7b5f-0546-444d-9438-a82ce612977d', 55, 1, 1, 1, 0, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:30:47.571', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.571', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f106bfa6-c6b8-4b44-9ae3-42a5c6e3453f', 56, 1, 0, 0, 0, 0, '2cefa92f-1911-4346-bfb5-16175c23146a', '2025-03-17 17:44:05.778', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:44:05.778', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f1309e63-ea39-4d6b-af5f-a373059913f4', 27, 1, 1, 1, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.634', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.634', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f69c2dc2-e155-49e5-aac9-a45fa1e4b9d1', 27, 1, 1, 1, 1, 0, '590cc281-dfef-480a-9ad0-b9bc7a98624a', '2025-03-17 17:28:58.375', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:30:47.466', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f8f89589-6380-4686-87c6-90f7fa8abd95', 35, 1, 0, 0, 0, 0, '37aad005-bf7c-4a48-b1a5-cd7986965910', '2025-03-17 17:40:20.696', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:40:20.696', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('fc04b18c-80fc-40f0-b3e5-3838beb57da0', 13, 1, 1, 1, 0, 0, '9ead59b2-efea-460f-8af2-f594a949d86b', '2025-03-17 17:50:00.731', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-17 17:50:00.731', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `shifts`
--

CREATE TABLE IF NOT EXISTS `shifts` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_time` datetime(3) NOT NULL,
  `end_time` datetime(3) NOT NULL,
  `grace_start_time` datetime(3) NOT NULL,
  `grace_end_time` datetime(3) NOT NULL,
  `grace_time` int NOT NULL,
  `late_count` int NOT NULL DEFAULT '0',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `shifts_id_key` (`id`),
  KEY `shifts_created_by_idx` (`created_by`),
  KEY `shifts_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `shifts`
--

INSERT INTO `shifts` (`id`, `name`, `start_time`, `end_time`, `grace_start_time`, `grace_end_time`, `grace_time`, `late_count`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES
('81f8f739-8cc0-4787-b54a-b01ce28114b0', 'Shift A', '2025-03-05 01:00:00.000', '2025-03-05 07:00:00.000', '2025-03-05 01:01:00.000', '2025-03-05 01:05:00.000', 5, 0, '2025-03-05 15:51:06.243', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-05 15:51:06.243', '6f587b32-7016-4e98-a447-cfb554adcb0e'),
('e1d8c115-c918-40a3-aeba-449639e93151', 'Ramadan', '2025-03-09 01:00:00.000', '2025-03-09 08:00:00.000', '2025-03-09 01:01:00.000', '2025-03-09 01:15:00.000', 15, 0, '2025-03-08 16:56:27.644', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-08 16:56:27.644', '6f587b32-7016-4e98-a447-cfb554adcb0e');

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

--
-- Table structure for table `stock_transfers`
--

CREATE TABLE IF NOT EXISTS `stock_transfers` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `transfer_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'ST-000001',
  `item_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `source_location_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `source_rack` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `destination_location_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `destination_rack` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'PENDING',
  `raw_material_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `finished_product_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quantity` decimal(20,2) NOT NULL,
  `unit_of_measure` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `source_stock_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `destination_stock_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `stock_transfers_id_key` (`id`),
  UNIQUE KEY `stock_transfers_transfer_number_key` (`transfer_number`),
  KEY `stock_transfers_source_location_id_idx` (`source_location_id`),
  KEY `stock_transfers_destination_location_id_idx` (`destination_location_id`),
  KEY `stock_transfers_raw_material_id_idx` (`raw_material_id`),
  KEY `stock_transfers_finished_product_id_idx` (`finished_product_id`),
  KEY `stock_transfers_created_by_idx` (`created_by`),
  KEY `stock_transfers_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `stock_transfers`
--

INSERT INTO `stock_transfers` (`id`, `transfer_number`, `item_type`, `source_location_id`, `source_rack`, `destination_location_id`, `destination_rack`, `remarks`, `status`, `raw_material_id`, `finished_product_id`, `quantity`, `unit_of_measure`, `source_stock_id`, `destination_stock_id`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('3462ed42-c626-4b9c-9eee-4b973802156e', 'ST-000001', 'RAW_MATERIAL', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '4625c545-7709-47f3-ae84-73feea134a92', NULL, 'COMPLETED', NULL, NULL, 0.00, '', NULL, NULL, '2025-03-14 15:15:54.176', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 15:19:10.137', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6bbd1729-218c-4423-9404-994621c2f69e', 'ST-000003', 'RAW_MATERIAL', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '4625c545-7709-47f3-ae84-73feea134a92', NULL, 'COMPLETED', NULL, NULL, 0.00, '', NULL, NULL, '2025-03-14 15:32:56.026', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 15:34:00.229', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('7922b3a8-14c0-4397-838a-26badadbf307', 'ST-000005', 'FINISHED_PRODUCT', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '4625c545-7709-47f3-ae84-73feea134a92', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', NULL, 'COMPLETED', NULL, '90a2df83-c472-421e-ae89-97092c0c202e', 0.00, '', NULL, NULL, '2025-03-15 17:31:46.699', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:32:05.731', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8e7d7ec0-2a2b-4159-8d70-1cad12660b2a', 'ST-000006', 'RAW_MATERIAL', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '4625c545-7709-47f3-ae84-73feea134a92', '62b11e87-352c-40cc-8ee9-9c0a39048f90', '2543bf33-cfe2-4571-b437-6f02b40d9552', NULL, 'COMPLETED', NULL, NULL, 0.00, '', NULL, NULL, '2025-03-15 20:13:18.028', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 20:13:20.892', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e1322a2f-7c70-4b5f-b18f-cdb226a359fb', 'ST-000004', 'RAW_MATERIAL', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '4625c545-7709-47f3-ae84-73feea134a92', NULL, 'COMPLETED', NULL, NULL, 0.00, '', NULL, NULL, '2025-03-14 15:44:56.055', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 15:45:03.185', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ef216f85-96c4-44a0-87c0-819ffef1e134', 'ST-000002', 'RAW_MATERIAL', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'f2efcc35-5852-43c8-9a6e-861842a26ba7', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '4625c545-7709-47f3-ae84-73feea134a92', NULL, 'COMPLETED', NULL, NULL, 0.00, '', NULL, NULL, '2025-03-14 15:28:58.551', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 15:29:22.647', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `stock_transfer_costings`
--

CREATE TABLE IF NOT EXISTS `stock_transfer_costings` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `transfer_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `costing_head_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit_rate` decimal(20,2) NOT NULL,
  `unit_count` decimal(20,2) NOT NULL,
  `total_amount` decimal(20,2) NOT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `stock_transfer_costings_id_key` (`id`),
  KEY `stock_transfer_costings_transfer_id_idx` (`transfer_id`),
  KEY `stock_transfer_costings_costing_head_id_idx` (`costing_head_id`),
  KEY `stock_transfer_costings_created_by_idx` (`created_by`),
  KEY `stock_transfer_costings_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `stock_transfer_costings`
--

INSERT INTO `stock_transfer_costings` (`id`, `transfer_id`, `costing_head_id`, `unit_rate`, `unit_count`, `total_amount`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('229c73b5-3f9b-4b10-90c7-9e3e43f2bb1f', '6bbd1729-218c-4423-9404-994621c2f69e', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 234.00, 2.00, 468.00, '2025-03-14 15:32:56.055', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 15:32:56.055', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('258aea69-4e6e-4f54-8918-eac762ed9b19', '7922b3a8-14c0-4397-838a-26badadbf307', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 1000.00, 1.00, 1000.00, '2025-03-15 17:31:46.721', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:31:46.721', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('629a9f14-12b7-4284-9b12-0865609f4e7d', '8e7d7ec0-2a2b-4159-8d70-1cad12660b2a', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 100.00, 1.00, 100.00, '2025-03-15 20:13:18.048', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 20:13:18.048', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b48225d4-b916-4629-8cd5-14a575b65a42', '3462ed42-c626-4b9c-9eee-4b973802156e', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 100.00, 2.00, 200.00, '2025-03-14 15:15:54.201', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 15:15:54.201', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d5aa32e6-1669-415b-b0a7-5bfa3156aee6', 'e1322a2f-7c70-4b5f-b18f-cdb226a359fb', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 234.00, 2.00, 468.00, '2025-03-14 15:44:56.075', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 15:44:56.075', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e9998fb6-9db6-4e14-8cdc-8f3b245a2bda', 'ef216f85-96c4-44a0-87c0-819ffef1e134', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 200.00, 1.00, 200.00, '2025-03-14 15:28:58.561', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 15:28:58.561', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `suppliers`
--

CREATE TABLE IF NOT EXISTS `suppliers` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_person` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `alternative_phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `city` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `postal_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tax_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `registration_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `website` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `credit_limit` decimal(20,2) DEFAULT NULL,
  `credit_period` int DEFAULT NULL,
  `payment_terms` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bank_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bank_account` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bank_branch` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `routing_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `suppliers_id_key` (`id`),
  KEY `suppliers_created_by_idx` (`created_by`),
  KEY `suppliers_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `suppliers`
--

INSERT INTO `suppliers` (`id`, `name`, `company_name`, `contact_person`, `email`, `phone`, `alternative_phone`, `address`, `city`, `state`, `postal_code`, `country`, `tax_number`, `registration_number`, `website`, `credit_limit`, `credit_period`, `payment_terms`, `bank_name`, `bank_account`, `bank_branch`, `routing_no`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('27ca86a0-4d2f-49e2-911b-a30e85673f1a', 'Chaina Items', 'Chaina Corporation', '', '', '23456789', '', 'address', '', '', '', '', '', '', '', NULL, NULL, '', '', '', '', '', 1, '2025-03-08 17:33:41.293', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 17:33:41.293', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('51424b2d-ecdf-406a-b754-0bc05dd1911a', 'supp 1', '', '', '', '2345', '', 'q34', '', '', '', '', '', '', '', NULL, NULL, '', '', '', '', '', 1, '2025-03-06 15:22:05.387', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-06 15:22:05.387', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('59202e87-263c-4567-bfc1-620c8a834efb', 'supp 2', '', '', '', '23456789', '', 't432fgsdf', '', '', '', '', '', '', '', NULL, NULL, '', '', '', '', '', 1, '2025-03-06 15:22:17.665', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-06 15:22:17.665', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `target_time_frames`
--

CREATE TABLE IF NOT EXISTS `target_time_frames` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quarter_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `total_days` int NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `target_time_frames_id_key` (`id`),
  KEY `target_time_frames_created_by_idx` (`created_by`),
  KEY `target_time_frames_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `target_time_frames`
--

INSERT INTO `target_time_frames` (`id`, `quarter_name`, `start_date`, `end_date`, `total_days`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('283d81eb-8783-46b1-b604-74ffa4845918', 'First quarter 2025', '2024-12-31', '2025-03-30', 90, 1, '2025-03-15 20:43:53.049', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:22:04.017', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9feb13df-abd1-42f3-96d9-5d5f8186c2fa', 'May 2025', '2025-04-30', '2025-05-30', 31, 1, '2025-03-18 16:51:39.089', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 16:51:39.089', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ee2a485d-13a5-4160-b8a8-1bfe684eef82', 'April 2025', '2025-03-31', '2025-04-29', 30, 1, '2025-03-17 16:19:27.753', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:21:57.219', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `tax_terms`
--

CREATE TABLE IF NOT EXISTS `tax_terms` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `percentage` decimal(10,2) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `tax_terms_id_key` (`id`),
  KEY `tax_terms_created_by_idx` (`created_by`),
  KEY `tax_terms_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tax_terms`
--

INSERT INTO `tax_terms` (`id`, `name`, `start_date`, `end_date`, `percentage`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('566123ea-1e13-427b-84c7-4005ab7ed759', 'tax 10%', '2025-02-28', '2025-06-29', 10.00, 1, '2025-03-16 05:20:40.373', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-16 05:20:40.373', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('801392bc-8181-45dc-9595-dbdd73afa0cd', 'no tax', '2024-12-31', '2025-12-30', 0.00, 1, '2025-03-17 16:20:12.659', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:20:12.659', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('bead7b89-6880-4fbe-a82c-cc655acfeba2', 'tax 5%', '2024-12-31', '2025-12-30', 5.00, 1, '2025-03-16 05:20:19.420', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-16 05:20:19.420', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `users`
--

CREATE TABLE IF NOT EXISTS `users` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `fullname` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `username` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_active` tinyint(1) DEFAULT NULL,
  `is_admin` tinyint(1) DEFAULT NULL,
  `is_password_reset` tinyint(1) DEFAULT NULL,
  `user_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `employee_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `users_id_key` (`id`),
  UNIQUE KEY `users_email_key` (`email`),
  KEY `users_created_by_idx` (`created_by`),
  KEY `users_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `fullname`, `username`, `email`, `password`, `address`, `phone`, `is_active`, `is_admin`, `is_password_reset`, `user_type`, `employee_id`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('06997109-e773-4e84-a982-2296ff53b602', 'HR Manager', 'hr_m', 'hm@gmail.com', '$2b$10$xhkCA66qXAAWXy3c6MnF1OufiOtJKDwrTugEPxlF1iE7bqBb.MvrO', '', '987654', 1, NULL, NULL, 'user', '4d5cd466-6559-43e7-89fe-af6183148965', '2025-03-18 13:52:00.807', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:52:00.807', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('16926d31-2a07-47ef-82c7-8a987906977e', 'Warehouse Executive', 'war_e', 'we@gmail.com', '$2b$10$nNNxiTy2sJR4veqYD7jgT.Bkg4VeQ0KrB01.YqkKyUquIJduwyMAG', '', '098765', 1, NULL, NULL, 'user', 'cd16cf2b-9264-4d71-b56e-70894c236521', '2025-03-18 13:54:03.166', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:54:03.166', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('30af4edd-c2c1-4b3b-bd9f-5d5fc300eb2c', 'Sales Executive', 'sales_e', 'se@gmail.com', '$2b$10$347DamUdpmewhix1YT7HaOXW2hliLM1J2IDU9TPqpgEw7Pw/tMCsi', '', '0987654', 1, NULL, NULL, 'user', '5324ebd1-6145-4146-aead-f955206f6518', '2025-03-18 13:50:06.912', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:50:06.912', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('3722dec7-9a64-4a78-b741-954a0e710536', 'Factory Executive', 'fac_e', 'fe@gmail.com', '$2b$10$j8o6sfKKC3A9i4PZEX48KOTiUYmuYW7xvKwNDVLxg7WrhzSZ5OM96', '', '098765', 1, NULL, NULL, 'user', '6d0a44b6-ca78-4ea6-9a7a-4a4305389528', '2025-03-18 13:53:19.478', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:53:19.478', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6547f10b-c45f-4136-b5a4-613225818822', 'SCM Executive', 'scm_e', 'scme@gmail.com', '$2b$10$ZMqnnM8Zui5XVknawvyB5eejt7ypkrCzOgvMEBIzv2kGMg531vCIe', '', '0987654', 1, NULL, NULL, 'user', '2a00fb43-48d1-4b44-b20c-d4c38cc2148f', '2025-03-18 13:51:19.065', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:51:19.065', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6df27c2f-a33a-4b2c-a581-efa999e5d5d8', 'Warehouse Manager', 'war_m', 'wm@gmail.com', '$2b$10$ISUBMjUpkPW/pNYOz8nO6uPNp04kK6VAsyatMw34i7W59sxnmX0hq', '', '987654', 1, NULL, NULL, 'user', 'f62989ee-f270-4c50-ac63-57b1f4799ec8', '2025-03-18 13:53:41.861', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:53:41.861', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6f587b32-7016-4e98-a447-cfb554adcb0e', 'asad', 'asad', 'asad.dev08@gmail.com', '$2b$10$Gix1TRtPOGvlRSR2Af9BX.8nUD1rTKgnUU2otpOe2pJIoQFxnGsb6', '', '34', 1, 1, NULL, 'super_admin', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', '2025-03-05 15:47:12.876', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-05 15:47:12.876', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('720e01eb-81c9-45da-ac6e-64c6ba37f8a1', 'SCM Manager', 'scm_m', 'scmm@gmail.com', '$2b$10$OQfP7qQfmZWSxgBX90E8se9wJ9bms6J/jjxmO7z5ucQGVr331RyKO', '', '098765', NULL, NULL, NULL, 'user', 'dbac0cff-2228-4b42-bbcb-738e8d11e4b2', '2025-03-18 13:50:44.818', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:50:44.818', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('89a22510-54ec-4df1-9200-dfd6a53dd226', 'Sales Manager', 'sales_m', 'sm@gmail.com', '$2b$10$AAx8wzRNnpSX68t7mGc3/.EgFGol3WnET94HSXvCKcgGf0GVHYiSq', '', '56789', 1, NULL, NULL, 'user', '2631c985-e0f3-4b90-8a6f-abe39c243e94', '2025-03-18 13:47:54.314', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:47:54.314', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b2044532-8dd9-4b43-8c52-b88763206db6', 'Factory Manager', 'fac_m', 'fm@gmail.com', '$2b$10$wOAcxmvq6esWtYO2TRDsE.cQP9BZ..vRNmLVgB9qF2Qdj6UivJhTm', '', '098765', 1, NULL, NULL, 'user', '6500eda9-4a21-449f-8c6a-e04adffd339f', '2025-03-18 13:52:57.892', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:52:57.892', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('be624e23-65fe-435d-8728-3c9c6352a848', 'Kamrul Islam', 'kamrul', 'kamrul@email.com', '$2b$10$.esFxoYwV1gKCy0VnFX5MOqYwY3xBexxqHVs.QkVXJaNyEiocePdG', '', '1770872374', 1, NULL, NULL, 'user', 'fa11279e-76a1-45c4-92be-010878598fde', '2025-03-08 17:03:13.927', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 17:03:13.927', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f048801a-4c4e-4e0f-8862-833a780dce2b', 'test', 'test', 'test@gmail.com', '$2b$10$p1nKIcTgzi/fDIQm/VBgde.KoREvTUIkAP7YoJZ6AYeJntFcatVOu', '', 'test', 1, 1, NULL, 'admin', 'acae5569-45d3-483c-bef5-288bdb3f48a1', '2025-03-05 16:07:13.310', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-05 16:07:13.310', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f6f7f9aa-a55c-4c23-a547-f2d10cce1e07', 'HR Executive', 'hr_e', 'hre@gmail.com', '$2b$10$0kLGypBaEXpq1SkxLdFNqecMAZBEQsz7IyirneJC0IZyr2fzVIExa', '', '56789', 1, NULL, NULL, 'user', '86401c64-7fdb-4974-8137-a4ae39c277e8', '2025-03-18 13:52:31.538', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:52:31.538', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', 'admin', 'admin', 'admin@gmail.com', '$2b$10$ZT.JWHYt37iOQdSTWpWj5uBz1HkCefLtfGNEa1wE1r5veooRyUZl.', 'na', '56789', 1, 1, NULL, 'super_admin', NULL, '2025-02-24 14:18:19.523', '18e7ab49-9640-49b5-9f89-9365a1c7fbea', '::1', '2025-02-24 14:18:19.523', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `user_group`
--

CREATE TABLE IF NOT EXISTS `user_group` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `group_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `user_group_id_key` (`id`),
  KEY `user_group_user_id_fkey` (`user_id`),
  KEY `user_group_group_id_fkey` (`group_id`),
  KEY `user_group_created_by_idx` (`created_by`),
  KEY `user_group_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `user_group`
--

INSERT INTO `user_group` (`id`, `user_id`, `group_id`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('09b132b2-8063-4bca-88ab-615ad7e91ac2', '6df27c2f-a33a-4b2c-a581-efa999e5d5d8', '4efd2051-f4fa-497f-9408-7f89b2ad60b1', '2025-03-18 13:53:41.878', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:53:41.879', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('0ce263ca-cf57-4e68-b842-da7d41c2e627', 'be624e23-65fe-435d-8728-3c9c6352a848', '2b953dd0-27fa-401d-9e8b-ae37bf7b7b82', '2025-03-08 17:03:13.950', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 17:03:13.951', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('1a597eaf-d42d-4447-b3d2-471ea8fb6611', '720e01eb-81c9-45da-ac6e-64c6ba37f8a1', '26dd1ba9-c0e0-468b-af44-2b048e0f1d4c', '2025-03-18 13:50:44.841', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:50:44.843', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('24cea6d2-0f5b-44ba-844e-b846685fb006', '30af4edd-c2c1-4b3b-bd9f-5d5fc300eb2c', '085c6302-bb5d-43fe-95f3-d50ed8dd95d6', '2025-03-18 13:50:06.932', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:50:06.934', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4f9d1146-a316-4341-a934-0533bf02b16e', '6547f10b-c45f-4136-b5a4-613225818822', '9d51ee81-7ce3-4e3b-87ec-b71327b9b6dc', '2025-03-18 13:51:19.087', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:51:19.089', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('56033351-7f02-40ae-a6e9-d3c0ab806e34', '6f587b32-7016-4e98-a447-cfb554adcb0e', '159f9f70-8c99-4255-a258-274d56c3781c', '2025-03-05 15:47:12.897', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-05 15:47:12.900', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('73077346-30bd-4403-8bae-df04da5c6c0c', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '159f9f70-8c99-4255-a258-274d56c3781c', '2025-02-24 14:18:19.535', '18e7ab49-9640-49b5-9f89-9365a1c7fbea', '::1', '2025-02-24 14:18:19.537', NULL, NULL, 'test'),
('98945f01-0cbd-40bf-8b92-9f9154051b72', 'f6f7f9aa-a55c-4c23-a547-f2d10cce1e07', 'f2e9286f-54b0-46fa-9f71-a959de64d5f4', '2025-03-18 13:52:31.557', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:52:31.558', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a2c4e3b3-91c0-408c-a370-71e37d87127b', '16926d31-2a07-47ef-82c7-8a987906977e', '4acf89a3-7e4e-4b48-b154-8f4c16d42469', '2025-03-18 13:54:03.184', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:54:03.185', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b8a67d52-f284-4032-b4fa-fdbaa6f0e3a8', '89a22510-54ec-4df1-9200-dfd6a53dd226', 'a0250da6-459f-4d5a-992f-efd4528500ca', '2025-03-18 13:47:54.337', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:47:54.344', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c1ca855d-e3a5-42d4-857d-a830ad8669de', 'b2044532-8dd9-4b43-8c52-b88763206db6', 'c4ba0212-8074-4b8e-91a2-4d291672a973', '2025-03-18 13:52:57.913', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:52:57.914', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ecf57631-2eed-420a-a5b9-d2a212827c23', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '159f9f70-8c99-4255-a258-274d56c3781c', '2025-03-05 16:07:13.320', 'f9dabc25-2cb3-4fbc-a8ce-4dc112f35478', '::1', '2025-03-05 16:07:13.322', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f157f9b1-7469-4d6e-90ed-09220fc53dac', '06997109-e773-4e84-a982-2296ff53b602', '65faaab9-0abb-4761-8782-4323510ea480', '2025-03-18 13:52:00.826', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:52:00.827', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f4cc7b7f-207d-4054-a852-da3127956eda', '3722dec7-9a64-4a78-b741-954a0e710536', '8c98d8ca-29ce-44ef-bf02-ab7acb9433ac', '2025-03-18 13:53:19.497', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 13:53:19.498', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `visit_costings`
--

CREATE TABLE IF NOT EXISTS `visit_costings` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `visit_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `costing_head_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit_rate` decimal(20,2) NOT NULL,
  `unit_count` decimal(20,2) NOT NULL,
  `total_amount` decimal(20,2) NOT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `visit_costings_id_key` (`id`),
  KEY `visit_costings_visit_id_idx` (`visit_id`),
  KEY `visit_costings_costing_head_id_idx` (`costing_head_id`),
  KEY `visit_costings_created_by_idx` (`created_by`),
  KEY `visit_costings_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visit_costings`
--

INSERT INTO `visit_costings` (`id`, `visit_id`, `costing_head_id`, `unit_rate`, `unit_count`, `total_amount`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('0d4bde54-8eca-491c-953d-d9fd4562b207', 'a5415572-3bdc-49e9-af64-73a3c5310d5c', '6cad1630-78b6-4dc6-8904-38484eae791e', 150.00, 1.00, 150.00, '2025-03-14 20:10:19.091', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-14 20:10:19.091', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('886ed4a4-2171-45dc-971e-36a02433f633', 'b25eee7b-3bff-44b1-afb3-04cce934de38', '818a0e7f-7ca4-4d4b-b0b7-50ac44bf77be', 2000.00, 1.00, 2000.00, '2025-03-21 17:00:07.201', '89a22510-54ec-4df1-9200-dfd6a53dd226', '::1', '2025-03-21 17:00:07.201', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('99f1675f-e2d8-47c4-ae10-c0f1c7044ab0', 'fe12fa88-8146-47d5-ace8-77f047cc387f', '6cad1630-78b6-4dc6-8904-38484eae791e', 150.00, 1.00, 150.00, '2025-03-15 17:36:03.784', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-15 17:36:03.784', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a6204b9c-db30-46ea-9a4d-205913fdb139', 'd0b7b7d7-8522-4cd9-9549-ab8e56d6abf4', '6cad1630-78b6-4dc6-8904-38484eae791e', 350.00, 2.00, 700.00, '2025-03-18 16:43:52.634', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 16:43:52.634', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('aef5b257-d563-4573-8321-0557222fed51', 'd0b7b7d7-8522-4cd9-9549-ab8e56d6abf4', '818a0e7f-7ca4-4d4b-b0b7-50ac44bf77be', 2000.00, 1.00, 2000.00, '2025-03-18 16:43:52.634', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 16:43:52.634', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e0dd84cd-0298-4200-b0aa-5d0404b4b5c4', 'e46be457-b25d-4b69-9423-6fbec7765701', '6cad1630-78b6-4dc6-8904-38484eae791e', 150.00, 1.00, 150.00, '2025-03-21 12:02:12.299', '30af4edd-c2c1-4b3b-bd9f-5d5fc300eb2c', '::1', '2025-03-21 12:02:12.299', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `visit_histories`
--

CREATE TABLE IF NOT EXISTS `visit_histories` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `visit_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'VH-000001',
  `visit_type_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `visit_date` datetime(3) NOT NULL,
  `reason` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `remarks` text COLLATE utf8mb4_unicode_ci,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'PENDING',
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `latitude` decimal(10,8) DEFAULT NULL,
  `longitude` decimal(11,8) DEFAULT NULL,
  `address` text COLLATE utf8mb4_unicode_ci,
  `district` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `thana` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `postal_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 'Bangladesh',
  `contact_person_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_person_phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_person_email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `person_type_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `attachment_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `division` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `visit_histories_id_key` (`id`),
  UNIQUE KEY `visit_histories_visit_number_key` (`visit_number`),
  KEY `visit_histories_visit_type_id_idx` (`visit_type_id`),
  KEY `visit_histories_person_type_id_idx` (`person_type_id`),
  KEY `visit_histories_created_by_idx` (`created_by`),
  KEY `visit_histories_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visit_histories`
--

INSERT INTO `visit_histories` (`id`, `visit_number`, `visit_type_id`, `visit_date`, `reason`, `remarks`, `status`, `is_active`, `latitude`, `longitude`, `address`, `district`, `thana`, `postal_code`, `country`, `contact_person_name`, `contact_person_phone`, `contact_person_email`, `person_type_id`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `attachment_url`, `division`) VALUES
('a5415572-3bdc-49e9-af64-73a3c5310d5c', 'VH-000001', '805bbd22-2bdf-4d44-9b94-35d501953460', '2025-03-08 16:00:00.000', 'test visit', '', 'COMPLETED', 1, -32.01433600, 116.01838080, 'asfasfd', 'q', 'eq', '', 'Bangladesh', 'asad', '234', '', '51edce5a-5786-48eb-8a83-32e8064908c7', '2025-03-14 20:00:20.309', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-14 20:10:19.091', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'uploads/visit-attachments/WhatsApp Image 2025-02-15 at 5.32.01 PM_1741982420294_371.jpeg', NULL),
('b25eee7b-3bff-44b1-afb3-04cce934de38', 'VH-000005', 'b4c5dfc4-530a-482f-89a1-7dbef26b9546', '2025-03-22 16:00:00.000', 'asfsadfsa', '', 'PENDING', 1, -32.01372060, 116.02955560, 'qwfadsf', 'rng', 'rng', '', 'Bangladesh', 'test', '12345678', '', '51edce5a-5786-48eb-8a83-32e8064908c7', '2025-03-21 17:00:07.201', '89a22510-54ec-4df1-9200-dfd6a53dd226', '::1', '2025-03-21 17:00:07.201', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'uploads/visit-attachments/snow flake, kawaii cartoon style, soft colors, black outline, isolated image, white background and no shadow_1742576407193_8001.png', 'rng'),
('d0b7b7d7-8522-4cd9-9549-ab8e56d6abf4', 'VH-000003', '2e6a1b1b-6c98-4c7c-ab3d-b6b1eb645b58', '2025-03-21 16:00:00.000', 'outside production inspection', '', 'COMPLETED', 1, -32.01372060, 116.02955560, 'Gazipur', 'Dhaka', 'Gazipur', '', 'Bangladesh', 'Mr X', '566788', '', '51edce5a-5786-48eb-8a83-32e8064908c7', '2025-03-18 16:43:52.634', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 16:43:52.634', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, 'Dhaka'),
('e46be457-b25d-4b69-9423-6fbec7765701', 'VH-000004', '2e6a1b1b-6c98-4c7c-ab3d-b6b1eb645b58', '2025-03-21 16:00:00.000', 'test', '', 'APPROVED', 1, -32.01230440, 116.02320320, 'test', 'dhaka', 'banani', '', 'Bangladesh', 'asad', '1245689', '', '51edce5a-5786-48eb-8a83-32e8064908c7', '2025-03-21 12:02:12.299', '30af4edd-c2c1-4b3b-bd9f-5d5fc300eb2c', '::1', '2025-03-21 17:48:25.514', '89a22510-54ec-4df1-9200-dfd6a53dd226', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'uploads/visit-attachments/cat icon_1742558532290_9152.jpg', 'dhaka'),
('fe12fa88-8146-47d5-ace8-77f047cc387f', 'VH-000002', 'b4c5dfc4-530a-482f-89a1-7dbef26b9546', '2025-03-16 16:00:00.000', 'follow up', '', 'COMPLETED', 1, -32.01592390, 116.00886630, 'banani', 'dhaka', 'banani', '', 'Bangladesh', 'kayser ahmed', '0987654', '', '70b99fb1-4b8c-44bc-943b-635da5613d13', '2025-03-15 17:36:03.784', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-15 17:36:03.784', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'uploads/visit-attachments/carven_1742060163777_176.png', NULL);

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

--
-- Table structure for table `visit_history_approvals`
--

CREATE TABLE IF NOT EXISTS `visit_history_approvals` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `visit_history_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `employee_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `supervisor_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `approved_at` datetime(3) DEFAULT NULL,
  `rejected_at` datetime(3) DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `visit_history_approvals_id_key` (`id`),
  UNIQUE KEY `visit_history_approvals_visit_history_id_key` (`visit_history_id`),
  UNIQUE KEY `visit_history_approvals_employee_id_key` (`employee_id`),
  KEY `visit_history_approvals_supervisor_id_fkey` (`supervisor_id`),
  KEY `visit_history_approvals_created_by_idx` (`created_by`),
  KEY `visit_history_approvals_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visit_history_approvals`
--

INSERT INTO `visit_history_approvals` (`id`, `visit_history_id`, `employee_id`, `supervisor_id`, `status`, `remarks`, `approved_at`, `rejected_at`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('256a28b6-7178-47c4-9b89-f981cbd0fa45', 'b25eee7b-3bff-44b1-afb3-04cce934de38', '2631c985-e0f3-4b90-8a6f-abe39c243e94', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'PENDING', NULL, NULL, NULL, '2025-03-21 17:00:07.225', '89a22510-54ec-4df1-9200-dfd6a53dd226', '::1', '2025-03-21 17:00:07.225', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8fc0f104-5dae-40de-ae4f-d53663946e0a', 'e46be457-b25d-4b69-9423-6fbec7765701', '5324ebd1-6145-4146-aead-f955206f6518', '2631c985-e0f3-4b90-8a6f-abe39c243e94', 'APPROVED', 'done', '2025-03-21 17:48:25.503', NULL, '2025-03-21 12:02:12.315', '30af4edd-c2c1-4b3b-bd9f-5d5fc300eb2c', '::1', '2025-03-21 17:48:25.509', '89a22510-54ec-4df1-9200-dfd6a53dd226', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `visit_types`
--

CREATE TABLE IF NOT EXISTS `visit_types` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `visit_types_id_key` (`id`),
  UNIQUE KEY `visit_types_code_key` (`code`),
  KEY `visit_types_created_by_idx` (`created_by`),
  KEY `visit_types_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visit_types`
--

INSERT INTO `visit_types` (`id`, `name`, `code`, `description`, `type`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('2e6a1b1b-6c98-4c7c-ab3d-b6b1eb645b58', 'Factory Visit', 'fv', '', 'FACTORY', 1, '2025-03-18 16:39:35.817', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 16:39:35.817', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('805bbd22-2bdf-4d44-9b94-35d501953460', 'Field visit', 'fs', '', 'FIELD', 1, '2025-03-14 17:45:54.106', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-14 17:45:54.106', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b4c5dfc4-530a-482f-89a1-7dbef26b9546', 'Market visit', 'mv', 'market', 'MARKET', 1, '2025-03-14 17:52:40.575', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-14 17:52:47.398', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `vouchers`
--

CREATE TABLE IF NOT EXISTS `vouchers` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `voucher_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `voucher_date` datetime(3) NOT NULL,
  `fiscal_year_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `voucher_type_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `reference_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total_debit` decimal(20,2) NOT NULL,
  `total_credit` decimal(20,2) NOT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'PENDING',
  `posted` tinyint(1) NOT NULL DEFAULT '0',
  `posted_date` datetime(3) DEFAULT NULL,
  `posted_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `vouchers_id_key` (`id`),
  UNIQUE KEY `vouchers_voucher_no_key` (`voucher_no`),
  KEY `vouchers_fiscal_year_id_idx` (`fiscal_year_id`),
  KEY `vouchers_voucher_type_id_idx` (`voucher_type_id`),
  KEY `vouchers_created_by_idx` (`created_by`),
  KEY `vouchers_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vouchers`
--

INSERT INTO `vouchers` (`id`, `voucher_no`, `voucher_date`, `fiscal_year_id`, `voucher_type_id`, `reference_no`, `description`, `total_debit`, `total_credit`, `status`, `posted`, `posted_date`, `posted_by`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('371170b4-c0ec-434e-9724-4fb6db5830dc', 'JV-fiscal year 2025-0001', '2025-03-27 16:00:00.000', '3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b', '858e0139-46d6-4158-b64e-18c36129ed88', 'test voucher', 'testing', 4000.00, 4000.00, 'APPROVED', 1, '2025-03-28 14:39:08.753', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 14:17:27.443', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 14:39:08.755', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f', 'JV-fiscal year 2025-0002', '2025-03-28 15:28:07.800', '3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b', '858e0139-46d6-4158-b64e-18c36129ed88', NULL, NULL, 2.00, 2.00, 'APPROVED', 1, '2025-03-28 15:29:53.092', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 15:29:43.440', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 15:29:53.094', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `voucher_details`
--

CREATE TABLE IF NOT EXISTS `voucher_details` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `voucher_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ledger_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `debit_amount` decimal(20,2) NOT NULL,
  `credit_amount` decimal(20,2) NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reference_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cost_center_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `voucher_details_id_key` (`id`),
  KEY `voucher_details_voucher_id_idx` (`voucher_id`),
  KEY `voucher_details_ledger_id_idx` (`ledger_id`),
  KEY `voucher_details_created_by_idx` (`created_by`),
  KEY `voucher_details_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `voucher_details`
--

INSERT INTO `voucher_details` (`id`, `voucher_id`, `ledger_id`, `debit_amount`, `credit_amount`, `description`, `reference_no`, `cost_center_id`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('004afc45-cdca-4c27-8399-6fe456a1060d', '371170b4-c0ec-434e-9724-4fb6db5830dc', '877b9dc7-6d2b-467c-883e-12f675afac22', 4000.00, 0.00, '', NULL, NULL, '2025-03-28 14:17:27.443', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 14:29:05.481', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('340b0bc8-91c2-4008-b11d-3677d0326f25', '371170b4-c0ec-434e-9724-4fb6db5830dc', '877b9dc7-6d2b-467c-883e-12f675afac22', 0.00, 4000.00, '', NULL, NULL, '2025-03-28 14:17:27.443', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 14:29:05.481', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a67d9217-a4ad-452c-84a7-6a64e5e1c4c3', 'd13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f', '877b9dc7-6d2b-467c-883e-12f675afac22', 2.00, 0.00, '', NULL, NULL, '2025-03-28 15:29:43.440', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 15:29:43.440', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f8c66390-fc66-471a-a216-4cc8089f142b', 'd13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f', '877b9dc7-6d2b-467c-883e-12f675afac22', 0.00, 2.00, '', NULL, NULL, '2025-03-28 15:29:43.440', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 15:29:43.440', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `voucher_types`
--

CREATE TABLE IF NOT EXISTS `voucher_types` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `voucher_types_id_key` (`id`),
  UNIQUE KEY `voucher_types_code_key` (`code`),
  KEY `voucher_types_created_by_idx` (`created_by`),
  KEY `voucher_types_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `voucher_types`
--

INSERT INTO `voucher_types` (`id`, `name`, `code`, `description`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('19da22ab-9f9d-487d-9411-75e70ab4a55e', 'Cash Voucher', 'CV', NULL, 1, '2025-03-28 13:32:21.102', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 13:32:21.102', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('344e4d6b-0d35-417d-8a05-07ac2af20c9a', 'Bank Payment', 'BV', '', 1, '2025-03-28 15:02:08.731', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 15:02:08.731', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('858e0139-46d6-4158-b64e-18c36129ed88', 'Journal Voucher', 'JV', NULL, 1, '2025-03-28 13:29:39.328', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 13:29:39.328', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9427a335-b13f-44b6-aacf-34a8be248b78', 'Payment Voucher', 'PV', NULL, 1, '2025-03-28 13:31:43.389', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 13:31:43.389', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f656d73a-6ac6-46f6-a421-61fac9d2a165', 'Contra Voucher', 'CNV', NULL, 1, '2025-03-28 13:32:53.805', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 15:01:54.359', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `_prisma_migrations`
--

CREATE TABLE IF NOT EXISTS `_prisma_migrations` (
  `id` varchar(36) COLLATE utf8mb4_unicode_ci NOT NULL,
  `checksum` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `finished_at` datetime(3) DEFAULT NULL,
  `migration_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `logs` text COLLATE utf8mb4_unicode_ci,
  `rolled_back_at` datetime(3) DEFAULT NULL,
  `started_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `applied_steps_count` int UNSIGNED NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `_prisma_migrations`
--

INSERT INTO `_prisma_migrations` (`id`, `checksum`, `finished_at`, `migration_name`, `logs`, `rolled_back_at`, `started_at`, `applied_steps_count`) VALUES
('5ef33f34-0fd4-4a49-b1cb-7fb9529a9744', 'a4563d5e13ba6c86550896de9452b828f9908ec99c34a9e142ac4a6b14a83f71', '2025-03-05 15:15:46.885', '20250305151545_create_base_tables', NULL, NULL, '2025-03-05 15:15:45.821', 1);

--
-- Constraints for dumped tables
--

--
-- Constraints for table `account_groups`
--
ALTER TABLE `account_groups`
  ADD CONSTRAINT `account_groups_parent_id_fkey` FOREIGN KEY (`parent_id`) REFERENCES `account_groups` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `account_ledgers`
--
ALTER TABLE `account_ledgers`
  ADD CONSTRAINT `account_ledgers_account_group_id_fkey` FOREIGN KEY (`account_group_id`) REFERENCES `account_groups` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `account_ledgers_bank_id_fkey` FOREIGN KEY (`bank_id`) REFERENCES `banks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `attendances`
--
ALTER TABLE `attendances`
  ADD CONSTRAINT `attendances_employee_id_fkey` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `attendances_shift_id_fkey` FOREIGN KEY (`shift_id`) REFERENCES `shifts` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `attendance_summaries`
--
ALTER TABLE `attendance_summaries`
  ADD CONSTRAINT `attendance_summaries_attendance_id_fkey` FOREIGN KEY (`attendance_id`) REFERENCES `attendances` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `collection_targets`
--
ALTER TABLE `collection_targets`
  ADD CONSTRAINT `collection_targets_order_id_fkey` FOREIGN KEY (`order_id`) REFERENCES `sales_orders` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `crm_costing_heads`
--
ALTER TABLE `crm_costing_heads`
  ADD CONSTRAINT `crm_costing_heads_account_ledger_id_fkey` FOREIGN KEY (`account_ledger_id`) REFERENCES `account_ledgers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `demands`
--
ALTER TABLE `demands`
  ADD CONSTRAINT `demands_delivery_location_id_fkey` FOREIGN KEY (`delivery_location_id`) REFERENCES `locations` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `demands_factory_location_id_fkey` FOREIGN KEY (`factory_location_id`) REFERENCES `locations` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `demands_finishedProductId_fkey` FOREIGN KEY (`finishedProductId`) REFERENCES `finished_products` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `demands_requisition_by_fkey` FOREIGN KEY (`requisition_by`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `demand_items`
--
ALTER TABLE `demand_items`
  ADD CONSTRAINT `demand_items_demand_id_fkey` FOREIGN KEY (`demand_id`) REFERENCES `demands` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `demand_items_product_id_fkey` FOREIGN KEY (`product_id`) REFERENCES `finished_products` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `designations`
--
ALTER TABLE `designations`
  ADD CONSTRAINT `designations_department_id_fkey` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `employees`
--
ALTER TABLE `employees`
  ADD CONSTRAINT `employees_department_id_fkey` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `employees_designation_id_fkey` FOREIGN KEY (`designation_id`) REFERENCES `designations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `employees_office_location_id_fkey` FOREIGN KEY (`office_location_id`) REFERENCES `office_locations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `employees_person_id_fkey` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `employees_shift_id_fkey` FOREIGN KEY (`shift_id`) REFERENCES `shifts` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `employees_supervisor_id_fkey` FOREIGN KEY (`supervisor_id`) REFERENCES `employees` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `employee_leave_balances`
--
ALTER TABLE `employee_leave_balances`
  ADD CONSTRAINT `employee_leave_balances_employee_id_fkey` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `employee_leave_balances_leave_type_id_fkey` FOREIGN KEY (`leave_type_id`) REFERENCES `leave_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `invoices`
--
ALTER TABLE `invoices`
  ADD CONSTRAINT `invoices_collection_target_id_fkey` FOREIGN KEY (`collection_target_id`) REFERENCES `collection_targets` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `invoices_customer_id_fkey` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `invoices_order_id_fkey` FOREIGN KEY (`order_id`) REFERENCES `sales_orders` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `leave_applications`
--
ALTER TABLE `leave_applications`
  ADD CONSTRAINT `leave_applications_employee_id_fkey` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `leave_applications_leave_type_id_fkey` FOREIGN KEY (`leave_type_id`) REFERENCES `leave_types` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `ledger_balances`
--
ALTER TABLE `ledger_balances`
  ADD CONSTRAINT `ledger_balances_fiscal_year_id_fkey` FOREIGN KEY (`fiscal_year_id`) REFERENCES `fiscal_years` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `ledger_balances_ledger_id_fkey` FOREIGN KEY (`ledger_id`) REFERENCES `account_ledgers` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `locations`
--
ALTER TABLE `locations`
  ADD CONSTRAINT `locations_manager_id_fkey` FOREIGN KEY (`manager_id`) REFERENCES `employees` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `manufacturing_confirmations`
--
ALTER TABLE `manufacturing_confirmations`
  ADD CONSTRAINT `manufacturing_confirmations_factory_location_id_fkey` FOREIGN KEY (`factory_location_id`) REFERENCES `locations` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `manufacturing_confirmations_manufacturing_id_fkey` FOREIGN KEY (`manufacturing_id`) REFERENCES `product_manufacturings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `manufacturing_confirmations_rack_id_fkey` FOREIGN KEY (`rack_id`) REFERENCES `racks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `manufacturing_confirmation_items`
--
ALTER TABLE `manufacturing_confirmation_items`
  ADD CONSTRAINT `manufacturing_confirmation_items_manufacturing_confirmation_fkey` FOREIGN KEY (`manufacturing_confirmation_id`) REFERENCES `manufacturing_confirmations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `manufacturing_confirmation_items_manufacturing_item_id_fkey` FOREIGN KEY (`manufacturing_item_id`) REFERENCES `manufacturing_items` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `manufacturing_costings`
--
ALTER TABLE `manufacturing_costings`
  ADD CONSTRAINT `manufacturing_costings_costing_head_id_fkey` FOREIGN KEY (`costing_head_id`) REFERENCES `manufacturing_costing_heads` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `manufacturing_costings_manufacturing_id_fkey` FOREIGN KEY (`manufacturing_id`) REFERENCES `product_manufacturings` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `manufacturing_costing_heads`
--
ALTER TABLE `manufacturing_costing_heads`
  ADD CONSTRAINT `manufacturing_costing_heads_account_ledger_id_fkey` FOREIGN KEY (`account_ledger_id`) REFERENCES `account_ledgers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `manufacturing_items`
--
ALTER TABLE `manufacturing_items`
  ADD CONSTRAINT `manufacturing_items_manufacturing_id_fkey` FOREIGN KEY (`manufacturing_id`) REFERENCES `product_manufacturings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `manufacturing_items_product_id_fkey` FOREIGN KEY (`product_id`) REFERENCES `finished_products` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `payment_receipt_details`
--
ALTER TABLE `payment_receipt_details`
  ADD CONSTRAINT `payment_receipt_details_bank_id_fkey` FOREIGN KEY (`bank_id`) REFERENCES `banks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `payment_receipt_details_invoice_id_fkey` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `payment_receipt_details_master_id_fkey` FOREIGN KEY (`master_id`) REFERENCES `payment_receipt_masters` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `payment_receipt_masters`
--
ALTER TABLE `payment_receipt_masters`
  ADD CONSTRAINT `payment_receipt_masters_sales_order_id_fkey` FOREIGN KEY (`sales_order_id`) REFERENCES `sales_orders` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `productdelivery`
--
ALTER TABLE `productdelivery`
  ADD CONSTRAINT `ProductDelivery_location_id_fkey` FOREIGN KEY (`location_id`) REFERENCES `locations` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `ProductDelivery_rack_id_fkey` FOREIGN KEY (`rack_id`) REFERENCES `racks` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `ProductDelivery_sales_order_id_fkey` FOREIGN KEY (`sales_order_id`) REFERENCES `sales_orders` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `productdeliverycosting`
--
ALTER TABLE `productdeliverycosting`
  ADD CONSTRAINT `ProductDeliveryCosting_costing_head_id_fkey` FOREIGN KEY (`costing_head_id`) REFERENCES `manufacturing_costing_heads` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `ProductDeliveryCosting_delivery_id_fkey` FOREIGN KEY (`delivery_id`) REFERENCES `productdelivery` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `productdeliverydetail`
--
ALTER TABLE `productdeliverydetail`
  ADD CONSTRAINT `ProductDeliveryDetail_delivery_id_fkey` FOREIGN KEY (`delivery_id`) REFERENCES `productdelivery` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `ProductDeliveryDetail_product_id_fkey` FOREIGN KEY (`product_id`) REFERENCES `finished_products` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `product_formulas`
--
ALTER TABLE `product_formulas`
  ADD CONSTRAINT `product_formulas_finished_product_id_fkey` FOREIGN KEY (`finished_product_id`) REFERENCES `finished_products` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `product_formulas_raw_material_id_fkey` FOREIGN KEY (`raw_material_id`) REFERENCES `raw_materials` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `product_manufacturings`
--
ALTER TABLE `product_manufacturings`
  ADD CONSTRAINT `product_manufacturings_demand_id_fkey` FOREIGN KEY (`demand_id`) REFERENCES `demands` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `product_manufacturings_factory_location_id_fkey` FOREIGN KEY (`factory_location_id`) REFERENCES `locations` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `product_manufacturings_finishedProductId_fkey` FOREIGN KEY (`finishedProductId`) REFERENCES `finished_products` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `product_onboardings`
--
ALTER TABLE `product_onboardings`
  ADD CONSTRAINT `product_onboardings_location_id_fkey` FOREIGN KEY (`location_id`) REFERENCES `locations` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `product_onboardings_product_id_fkey` FOREIGN KEY (`product_id`) REFERENCES `finished_products` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `product_onboardings_rack_id_fkey` FOREIGN KEY (`rack_id`) REFERENCES `racks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `product_onboardings_supplier_id_fkey` FOREIGN KEY (`supplier_id`) REFERENCES `suppliers` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `product_purchases`
--
ALTER TABLE `product_purchases`
  ADD CONSTRAINT `product_purchases_location_id_fkey` FOREIGN KEY (`location_id`) REFERENCES `locations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `product_purchases_rack_id_fkey` FOREIGN KEY (`rack_id`) REFERENCES `racks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `product_purchases_raw_material_id_fkey` FOREIGN KEY (`raw_material_id`) REFERENCES `raw_materials` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `product_purchases_supplier_id_fkey` FOREIGN KEY (`supplier_id`) REFERENCES `suppliers` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `racks`
--
ALTER TABLE `racks`
  ADD CONSTRAINT `racks_location_id_fkey` FOREIGN KEY (`location_id`) REFERENCES `locations` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `raw_material_consumptions`
--
ALTER TABLE `raw_material_consumptions`
  ADD CONSTRAINT `raw_material_consumptions_manufacturing_id_fkey` FOREIGN KEY (`manufacturing_id`) REFERENCES `product_manufacturings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `raw_material_consumptions_raw_material_id_fkey` FOREIGN KEY (`raw_material_id`) REFERENCES `raw_materials` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `raw_material_stocks`
--
ALTER TABLE `raw_material_stocks`
  ADD CONSTRAINT `raw_material_stocks_location_id_fkey` FOREIGN KEY (`location_id`) REFERENCES `locations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `raw_material_stocks_rack_id_fkey` FOREIGN KEY (`rack_id`) REFERENCES `racks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `raw_material_stocks_raw_material_id_fkey` FOREIGN KEY (`raw_material_id`) REFERENCES `raw_materials` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `ready_product_stocks`
--
ALTER TABLE `ready_product_stocks`
  ADD CONSTRAINT `ready_product_stocks_location_id_fkey` FOREIGN KEY (`location_id`) REFERENCES `locations` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `ready_product_stocks_manufacturingConfirmationId_fkey` FOREIGN KEY (`manufacturingConfirmationId`) REFERENCES `manufacturing_confirmations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `ready_product_stocks_onboarding_id_fkey` FOREIGN KEY (`onboarding_id`) REFERENCES `product_onboardings` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `ready_product_stocks_product_id_fkey` FOREIGN KEY (`product_id`) REFERENCES `finished_products` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `ready_product_stocks_rack_fkey` FOREIGN KEY (`rack`) REFERENCES `racks` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `sales_amount_targets`
--
ALTER TABLE `sales_amount_targets`
  ADD CONSTRAINT `sales_amount_targets_employeeId_fkey` FOREIGN KEY (`employeeId`) REFERENCES `employees` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_amount_targets_sales_target_id_fkey` FOREIGN KEY (`sales_target_id`) REFERENCES `sales_targets` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_amount_targets_targetTimeFrameId_fkey` FOREIGN KEY (`targetTimeFrameId`) REFERENCES `target_time_frames` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `sales_orders`
--
ALTER TABLE `sales_orders`
  ADD CONSTRAINT `sales_orders_created_by_fkey` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_orders_customer_id_fkey` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_orders_quotation_id_fkey` FOREIGN KEY (`quotation_id`) REFERENCES `sales_quotations` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `sales_order_details`
--
ALTER TABLE `sales_order_details`
  ADD CONSTRAINT `sales_order_details_order_id_fkey` FOREIGN KEY (`order_id`) REFERENCES `sales_orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_order_details_product_id_fkey` FOREIGN KEY (`product_id`) REFERENCES `finished_products` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_order_details_quotation_detail_id_fkey` FOREIGN KEY (`quotation_detail_id`) REFERENCES `sales_quotation_details` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `sales_product_targets`
--
ALTER TABLE `sales_product_targets`
  ADD CONSTRAINT `sales_product_targets_employeeId_fkey` FOREIGN KEY (`employeeId`) REFERENCES `employees` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_product_targets_product_id_fkey` FOREIGN KEY (`product_id`) REFERENCES `finished_products` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_product_targets_sales_target_id_fkey` FOREIGN KEY (`sales_target_id`) REFERENCES `sales_targets` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_product_targets_targetTimeFrameId_fkey` FOREIGN KEY (`targetTimeFrameId`) REFERENCES `target_time_frames` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `sales_quotations`
--
ALTER TABLE `sales_quotations`
  ADD CONSTRAINT `sales_quotations_customer_id_fkey` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_quotations_location_id_fkey` FOREIGN KEY (`location_id`) REFERENCES `locations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_quotations_visit_history_id_fkey` FOREIGN KEY (`visit_history_id`) REFERENCES `visit_histories` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `sales_quotation_details`
--
ALTER TABLE `sales_quotation_details`
  ADD CONSTRAINT `sales_quotation_details_product_id_fkey` FOREIGN KEY (`product_id`) REFERENCES `finished_products` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_quotation_details_quotation_id_fkey` FOREIGN KEY (`quotation_id`) REFERENCES `sales_quotations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_quotation_details_tax_term_id_fkey` FOREIGN KEY (`tax_term_id`) REFERENCES `tax_terms` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

--
-- Constraints for table `sales_returns`
--
ALTER TABLE `sales_returns`
  ADD CONSTRAINT `sales_returns_location_id_fkey` FOREIGN KEY (`location_id`) REFERENCES `locations` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_returns_rack_id_fkey` FOREIGN KEY (`rack_id`) REFERENCES `racks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_returns_sales_order_id_fkey` FOREIGN KEY (`sales_order_id`) REFERENCES `sales_orders` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `sales_return_costings`
--
ALTER TABLE `sales_return_costings`
  ADD CONSTRAINT `sales_return_costings_costing_head_id_fkey` FOREIGN KEY (`costing_head_id`) REFERENCES `manufacturing_costing_heads` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_return_costings_return_id_fkey` FOREIGN KEY (`return_id`) REFERENCES `sales_returns` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `sales_return_details`
--
ALTER TABLE `sales_return_details`
  ADD CONSTRAINT `sales_return_details_product_id_fkey` FOREIGN KEY (`product_id`) REFERENCES `finished_products` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_return_details_return_id_fkey` FOREIGN KEY (`return_id`) REFERENCES `sales_returns` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `sales_targets`
--
ALTER TABLE `sales_targets`
  ADD CONSTRAINT `sales_targets_employee_id_fkey` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `sales_targets_time_frame_id_fkey` FOREIGN KEY (`time_frame_id`) REFERENCES `target_time_frames` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `security_group_rule`
--
ALTER TABLE `security_group_rule`
  ADD CONSTRAINT `security_group_rule_group_id_fkey` FOREIGN KEY (`group_id`) REFERENCES `security_group` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `security_group_rule_rule_id_fkey` FOREIGN KEY (`rule_id`) REFERENCES `security_rule` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `security_rule_wise_menu_permission`
--
ALTER TABLE `security_rule_wise_menu_permission`
  ADD CONSTRAINT `security_rule_wise_menu_permission_rule_id_fkey` FOREIGN KEY (`rule_id`) REFERENCES `security_rule` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `stock_transfers`
--
ALTER TABLE `stock_transfers`
  ADD CONSTRAINT `stock_transfers_destination_location_id_fkey` FOREIGN KEY (`destination_location_id`) REFERENCES `locations` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `stock_transfers_finished_product_id_fkey` FOREIGN KEY (`finished_product_id`) REFERENCES `finished_products` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `stock_transfers_raw_material_id_fkey` FOREIGN KEY (`raw_material_id`) REFERENCES `raw_materials` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `stock_transfers_source_location_id_fkey` FOREIGN KEY (`source_location_id`) REFERENCES `locations` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `stock_transfer_costings`
--
ALTER TABLE `stock_transfer_costings`
  ADD CONSTRAINT `stock_transfer_costings_costing_head_id_fkey` FOREIGN KEY (`costing_head_id`) REFERENCES `manufacturing_costing_heads` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `stock_transfer_costings_transfer_id_fkey` FOREIGN KEY (`transfer_id`) REFERENCES `stock_transfers` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `user_group`
--
ALTER TABLE `user_group`
  ADD CONSTRAINT `user_group_group_id_fkey` FOREIGN KEY (`group_id`) REFERENCES `security_group` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `user_group_user_id_fkey` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `visit_costings`
--
ALTER TABLE `visit_costings`
  ADD CONSTRAINT `visit_costings_costing_head_id_fkey` FOREIGN KEY (`costing_head_id`) REFERENCES `crm_costing_heads` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `visit_costings_visit_id_fkey` FOREIGN KEY (`visit_id`) REFERENCES `visit_histories` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `visit_histories`
--
ALTER TABLE `visit_histories`
  ADD CONSTRAINT `visit_histories_person_type_id_fkey` FOREIGN KEY (`person_type_id`) REFERENCES `person_types` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `visit_histories_visit_type_id_fkey` FOREIGN KEY (`visit_type_id`) REFERENCES `visit_types` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `visit_history_approvals`
--
ALTER TABLE `visit_history_approvals`
  ADD CONSTRAINT `visit_history_approvals_employee_id_fkey` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `visit_history_approvals_supervisor_id_fkey` FOREIGN KEY (`supervisor_id`) REFERENCES `employees` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `visit_history_approvals_visit_history_id_fkey` FOREIGN KEY (`visit_history_id`) REFERENCES `visit_histories` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `vouchers`
--
ALTER TABLE `vouchers`
  ADD CONSTRAINT `vouchers_fiscal_year_id_fkey` FOREIGN KEY (`fiscal_year_id`) REFERENCES `fiscal_years` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `vouchers_voucher_type_id_fkey` FOREIGN KEY (`voucher_type_id`) REFERENCES `voucher_types` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

--
-- Constraints for table `voucher_details`
--
ALTER TABLE `voucher_details`
  ADD CONSTRAINT `voucher_details_ledger_id_fkey` FOREIGN KEY (`ledger_id`) REFERENCES `account_ledgers` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  ADD CONSTRAINT `voucher_details_voucher_id_fkey` FOREIGN KEY (`voucher_id`) REFERENCES `vouchers` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
COMMIT;

