INSERT INTO `audit_logs` (`id`, `table_name`, `record_id`, `action`, `previous_data`, `new_data`, `changed_by`, `timestamp`) VALUES
('22f30dbc-4b6d-4057-89f9-7a55e656435c', 'payment-receipt-master', 'e11eebdb-73cf-48bd-8e93-47884b8473b2', 'CREATE', '{}', '{\"id\": \"e11eebdb-73cf-48bd-8e93-47884b8473b2\", \"status\": \"COMPLETED\", \"remarks\": null, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:25:47.533Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"receipt_no\": \"PR2025030009\", \"updated_at\": \"2025-03-18T17:25:47.533Z\", \"updated_by\": null, \"updated_ip\": null, \"sales_order\": {\"id\": \"38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee\", \"status\": \"CREATED\", \"remarks\": null, \"end_date\": \"2025-04-30T00:00:00.000Z\", \"order_no\": \"SO2025030008\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:18:57.422Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"start_date\": \"2025-03-19T00:00:00.000Z\", \"updated_at\": \"2025-03-18T17:18:57.422Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"quotation_id\": \"ad2e3661-4568-4f21-9473-1bfa3a61a41b\", \"total_amount\": 100750.0}, \"receipt_date\": \"2025-03-18T17:25:08.000Z\", \"total_amount\": 100000.0, \"sales_order_id\": \"38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee\", \"receipt_details\": [{\"id\": \"b0040ecb-c3ff-462c-b0dd-234cd09d6364\", \"bank\": null, \"bank_id\": null, \"invoice\": {\"id\": \"10df369e-f65c-4a2c-ad48-06ed1964bf8e\", \"status\": \"GENERATED\", \"remarks\": \"Second amount\", \"order_id\": \"38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:18:57.484Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"invoice_no\": \"INV2025030012\", \"updated_at\": \"2025-03-18T17:18:57.484Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"paid_amount\": 0.0, \"target_date\": \"2025-04-30T00:00:00.000Z\", \"invoice_date\": \"2025-04-01T00:00:00.000Z\", \"invoice_amount\": 100000.0, \"collection_target_id\": \"c26c753b-5175-4c1d-88c6-cd91ca8698d2\"}, \"cheque_no\": null, \"master_id\": \"e11eebdb-73cf-48bd-8e93-47884b8473b2\", \"wallet_no\": \"45478768\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:25:47.533Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"invoice_id\": \"10df369e-f65c-4a2c-ad48-06ed1964bf8e\", \"mfs_amount\": 10000.0, \"updated_at\": \"2025-03-18T17:25:47.533Z\", \"updated_by\": null, \"updated_ip\": null, \"bank_amount\": null, \"cash_amount\": null, \"cheque_bank\": null, \"cheque_date\": null, \"paid_amount\": 10000.0, \"mfs_provider\": \"bKash\", \"payment_mode\": \"MFS\", \"cheque_amount\": null, \"cheque_branch\": null, \"transaction_id\": \"657687\", \"transaction_date\": \"2025-03-31T00:00:00.000Z\"}], \"cheque_image_url\": null, \"receipt_image_url\": \"uploads/payment-receipts/carven_1742318747527_2365.png\", \"bank_statement_url\": null}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 17:25:47.556'),
('410dbbcd-10c4-46a9-91da-32688f6af28f', 'product-delivery', 'f1796a36-2658-4ce4-8d95-83f0650e3609', 'CREATE', '{}', '{\"id\": \"f1796a36-2658-4ce4-8d95-83f0650e3609\", \"rack\": {\"id\": \"2543bf33-cfe2-4571-b437-6f02b40d9552\", \"name\": \"Rack main\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T14:59:51.947Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-06T15:01:03.753Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": \"sdf\", \"location_id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\"}, \"status\": \"CREATED\", \"rack_id\": \"2543bf33-cfe2-4571-b437-6f02b40d9552\", \"remarks\": \"Deliver with care\", \"location\": {\"id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"city\": \"\", \"name\": \"Main\", \"type\": \"office\", \"email\": \"\", \"phone\": \"\", \"state\": \"\", \"address\": \"asdfa\", \"country\": \"\", \"latitude\": 0.0, \"is_active\": true, \"longitude\": 0.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T14:24:50.709Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"manager_id\": \"8c04fc8c-ce58-49e0-a1e7-897f38b47d11\", \"updated_at\": \"2025-03-06T14:33:19.975Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"postal_code\": \"\"}, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:39:35.397Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_at\": \"2025-03-18T17:39:35.397Z\", \"updated_by\": null, \"delivery_no\": \"DL2025030004\", \"location_id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"sales_order\": {\"id\": \"38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee\", \"status\": \"CREATED\", \"remarks\": null, \"customer\": {\"id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"email\": \"\", \"phone\": \"0987654\", \"thana\": \"banani\", \"address\": \"banani\", \"district\": \"dhaka\", \"division\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:08:06.681Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-18T17:08:06.681Z\", \"updated_by\": null, \"updated_ip\": null, \"organization_name\": \"kayser ahmed\", \"contact_person_name\": \"kayser ahmed\", \"contact_person_email\": \"\", \"contact_person_phone\": \"0987654\"}, \"end_date\": \"2025-04-30T00:00:00.000Z\", \"order_no\": \"SO2025030008\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:18:57.422Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"start_date\": \"2025-03-19T00:00:00.000Z\", \"updated_at\": \"2025-03-18T17:18:57.422Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"quotation_id\": \"ad2e3661-4568-4f21-9473-1bfa3a61a41b\", \"total_amount\": 100750.0}, \"total_amount\": 0.0, \"delivery_agent\": \"68d8a13f-cc72-4f17-9374-8aa507d444e9\", \"sales_order_id\": \"38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee\", \"customer_address\": \"banani\", \"delivery_details\": [{\"id\": \"888faa5f-0068-4210-9d95-6171db631a22\", \"product\": {\"id\": \"62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4\", \"code\": \"pc1\", \"name\": \"PRAN Chips\", \"brand\": \"PRAN\", \"category\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-07T19:13:04.014Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"shelf_life\": null, \"unit_price\": 15.0, \"updated_at\": \"2025-03-07T19:13:04.014Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": \"\", \"reorder_level\": null, \"specifications\": \"\", \"unit_of_measure\": \"pcs\", \"minimum_quantity\": null, \"storage_location\": null}, \"remarks\": \"\", \"quantity\": 50, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:39:35.397Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"product_id\": \"62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4\", \"unit_price\": 15.0, \"delivery_id\": \"f1796a36-2658-4ce4-8d95-83f0650e3609\", \"total_amount\": 750.0, \"delivery_quantity\": 50}], \"delivery_costings\": [{\"id\": \"2dab8fb4-021d-4546-893d-3bab9aaaaba5\", \"unit_rate\": 1000.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:39:35.397Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"unit_count\": 1, \"delivery_id\": \"f1796a36-2658-4ce4-8d95-83f0650e3609\", \"costing_head\": {\"id\": \"9b1400b3-d63c-49be-a86b-9137b0a65df2\", \"code\": \"dc\", \"name\": \"Delivery cost\", \"rate\": 2000.0, \"duration\": null, \"pay_type\": \"PER_UNIT\", \"is_active\": true, \"rate_type\": \"FIXED\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-13T17:17:22.309Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-15T17:19:51.135Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\", \"description\": null, \"account_ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\"}, \"total_amount\": 1000.0, \"costing_head_id\": \"9b1400b3-d63c-49be-a86b-9137b0a65df2\"}], \"expected_delivery_date\": \"2025-03-31T00:00:00.000Z\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 17:39:35.414'),
('346f57b0-9dc3-4202-a25a-eee77db207d4', 'product-delivery', 'f1796a36-2658-4ce4-8d95-83f0650e3609', 'UPDATE_STATUS', '{\"status\": \"CREATED\"}', '{\"status\": \"GOFORDELIVERY\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 17:40:39.758'),
('0c17cab3-6774-41d9-a0b8-ea4e78d86f32', 'product-delivery', 'f1796a36-2658-4ce4-8d95-83f0650e3609', 'UPDATE_STATUS', '{\"status\": \"GOFORDELIVERY\"}', '{\"status\": \"DELIVERED\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 17:41:22.877'),
('87a72675-b91e-401b-b0df-f72401915174', 'sales-return', '2a086c16-b651-4105-ad16-5e95efa8c18c', 'CREATE', '{}', '{\"id\": \"2a086c16-b651-4105-ad16-5e95efa8c18c\", \"rack\": {\"id\": \"80605747-4275-428c-ab79-9b228279452f\", \"name\": \"Rack warehouse\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T15:00:05.065Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-06T15:00:57.127Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": \"dtqe\", \"location_id\": \"c62883d1-389e-47b9-ba0c-0f431a92484b\"}, \"status\": \"PENDING\", \"rack_id\": \"80605747-4275-428c-ab79-9b228279452f\", \"remarks\": null, \"location\": {\"id\": \"c62883d1-389e-47b9-ba0c-0f431a92484b\", \"city\": \"\", \"name\": \"Warehouse\", \"type\": \"warehouse\", \"email\": \"\", \"phone\": \"\", \"state\": \"\", \"address\": \"asdfasf\", \"country\": \"\", \"latitude\": 0.0, \"is_active\": true, \"longitude\": 0.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T14:26:07.229Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"manager_id\": \"8c04fc8c-ce58-49e0-a1e7-897f38b47d11\", \"updated_at\": \"2025-03-06T14:33:04.897Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"postal_code\": \"\"}, \"return_no\": \"SR2025030003\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:48:23.372Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-18T17:48:23.372Z\", \"updated_by\": null, \"updated_ip\": null, \"location_id\": \"c62883d1-389e-47b9-ba0c-0f431a92484b\", \"return_date\": \"2025-03-19T00:00:00.000Z\", \"sales_order\": {\"id\": \"38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee\", \"status\": \"CREATED\", \"remarks\": null, \"customer\": {\"id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"email\": \"\", \"phone\": \"0987654\", \"thana\": \"banani\", \"address\": \"banani\", \"district\": \"dhaka\", \"division\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:08:06.681Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-18T17:08:06.681Z\", \"updated_by\": null, \"updated_ip\": null, \"organization_name\": \"kayser ahmed\", \"contact_person_name\": \"kayser ahmed\", \"contact_person_email\": \"\", \"contact_person_phone\": \"0987654\"}, \"end_date\": \"2025-04-30T00:00:00.000Z\", \"order_no\": \"SO2025030008\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:18:57.422Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"start_date\": \"2025-03-19T00:00:00.000Z\", \"updated_at\": \"2025-03-18T17:18:57.422Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"quotation_id\": \"ad2e3661-4568-4f21-9473-1bfa3a61a41b\", \"total_amount\": 100750.0}, \"total_amount\": 150.0, \"return_details\": [{\"id\": \"8f238165-43f2-4234-adeb-b9fee4d9a665\", \"product\": {\"id\": \"62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4\", \"code\": \"pc1\", \"name\": \"PRAN Chips\", \"brand\": \"PRAN\", \"category\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-07T19:13:04.014Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"shelf_life\": null, \"unit_price\": 15.0, \"updated_at\": \"2025-03-07T19:13:04.014Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": \"\", \"reorder_level\": null, \"specifications\": \"\", \"unit_of_measure\": \"pcs\", \"minimum_quantity\": null, \"storage_location\": null}, \"remarks\": \"damaged product\", \"quantity\": 50.0, \"return_id\": \"2a086c16-b651-4105-ad16-5e95efa8c18c\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:48:23.372Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"product_id\": \"62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4\", \"unit_price\": 15.0, \"updated_at\": \"2025-03-18T17:48:23.372Z\", \"updated_by\": null, \"updated_ip\": null, \"total_amount\": 150.0, \"return_quantity\": 10.0}], \"sales_order_id\": \"38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee\", \"return_costings\": [{\"id\": \"0c20587a-e3f5-4bf5-9f5d-2502ab7cfc05\", \"return_id\": \"2a086c16-b651-4105-ad16-5e95efa8c18c\", \"unit_rate\": 100.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:48:23.372Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"unit_count\": 1.0, \"updated_at\": \"2025-03-18T17:48:23.372Z\", \"updated_by\": null, \"updated_ip\": null, \"costing_head\": {\"id\": \"9b1400b3-d63c-49be-a86b-9137b0a65df2\", \"code\": \"dc\", \"name\": \"Delivery cost\", \"rate\": 2000.0, \"duration\": null, \"pay_type\": \"PER_UNIT\", \"is_active\": true, \"rate_type\": \"FIXED\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-13T17:17:22.309Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-15T17:19:51.135Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\", \"description\": null, \"account_ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\"}, \"total_amount\": 100.0, \"costing_head_id\": \"9b1400b3-d63c-49be-a86b-9137b0a65df2\"}]}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 17:48:23.382'),
('ba85fcda-c176-4028-b019-5dcdc92184c5', 'sales-return', '2a086c16-b651-4105-ad16-5e95efa8c18c', 'UPDATE_STATUS', '{\"status\": \"PENDING\"}', '{\"status\": \"RETURN_RECEIVED\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 17:48:55.496'),
('3a445b32-c68f-40f0-9db1-199e4c471df4', 'security-rule', 'e9880af9-6378-47b2-90af-0022c100c01a', 'UPDATE', '{\"id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"name\": \"Sales executive\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.481Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-17T17:46:38.481Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": \"\"}', '{\"id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"name\": \"Sales executive\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.481Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-18T18:07:49.119Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": \"\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.126'),
('331449db-9a79-45ab-adcd-dfd1962efeeb', 'security-rule-wise-menu-permission', '13d57507-ce2b-4e5b-8a0c-9d4d25a542e2', 'UPDATE', '{\"id\": \"13d57507-ce2b-4e5b-8a0c-9d4d25a542e2\", \"menu_id\": 29, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": false, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.504Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.504Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"13d57507-ce2b-4e5b-8a0c-9d4d25a542e2\", \"menu_id\": 29, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": false, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.504Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.138Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.142'),
('a316ab22-50ab-4c26-a032-84518e8a37f7', 'security-rule-wise-menu-permission', 'b661d2bd-76a3-4d6b-b996-460873d03d82', 'UPDATE', '{\"id\": \"b661d2bd-76a3-4d6b-b996-460873d03d82\", \"menu_id\": 39, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.510Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.510Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"b661d2bd-76a3-4d6b-b996-460873d03d82\", \"menu_id\": 39, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.510Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.152Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.155'),
('8630a918-ad8d-4c30-b314-6dfbc0664be0', 'security-rule-wise-menu-permission', '8092eb7e-337f-4261-b21e-2515ab878996', 'UPDATE', '{\"id\": \"8092eb7e-337f-4261-b21e-2515ab878996\", \"menu_id\": 40, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.516Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.516Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"8092eb7e-337f-4261-b21e-2515ab878996\", \"menu_id\": 40, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.516Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.162Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.164'),
('daab2938-b114-4cbb-99f7-a7686c76a9af', 'security-rule-wise-menu-permission', '5a8ff576-e494-45ef-bf29-d986e7f34f43', 'UPDATE', '{\"id\": \"5a8ff576-e494-45ef-bf29-d986e7f34f43\", \"menu_id\": 41, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.523Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.523Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"5a8ff576-e494-45ef-bf29-d986e7f34f43\", \"menu_id\": 41, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.523Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.175Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.180'),
('c6001182-105f-4d37-9a11-feb68d6310bb', 'security-rule-wise-menu-permission', 'b4f741be-e484-40ac-807c-a2ef2d195add', 'UPDATE', '{\"id\": \"b4f741be-e484-40ac-807c-a2ef2d195add\", \"menu_id\": 56, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.529Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.529Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"b4f741be-e484-40ac-807c-a2ef2d195add\", \"menu_id\": 56, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.529Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.191Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.197'),
('3c20f4cf-bcd7-4cec-b5c2-96c37a409201', 'security-rule-wise-menu-permission', '7e689f75-499a-40b4-b3fd-877bb0c45ba4', 'UPDATE', '{\"id\": \"7e689f75-499a-40b4-b3fd-877bb0c45ba4\", \"menu_id\": 62, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": true, \"can_delete\": false, \"can_report\": false, \"can_update\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.535Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.535Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"7e689f75-499a-40b4-b3fd-877bb0c45ba4\", \"menu_id\": 62, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": true, \"can_delete\": false, \"can_report\": false, \"can_update\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.535Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.203Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.205'),
('8d776a20-34c2-4462-a37d-38ca7661e948', 'security-rule-wise-menu-permission', '5a15426e-3af3-4ad3-8b33-1e709dbd0568', 'UPDATE', '{\"id\": \"5a15426e-3af3-4ad3-8b33-1e709dbd0568\", \"menu_id\": 63, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.541Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.541Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"5a15426e-3af3-4ad3-8b33-1e709dbd0568\", \"menu_id\": 63, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.541Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.214Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.218'),
('b537a432-b0e6-489b-ac67-52be000faae5', 'security-rule-wise-menu-permission', 'c1636df6-af5d-4c55-9da2-7446a286a726', 'UPDATE', '{\"id\": \"c1636df6-af5d-4c55-9da2-7446a286a726\", \"menu_id\": 64, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": true, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.549Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.549Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"c1636df6-af5d-4c55-9da2-7446a286a726\", \"menu_id\": 64, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": true, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.549Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.228Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.230'),
('996e61bf-eade-47af-a32d-ae6ba4aaae4b', 'security-rule-wise-menu-permission', '403a22dc-eb6a-4ac3-8d66-611e169fb42c', 'UPDATE', '{\"id\": \"403a22dc-eb6a-4ac3-8d66-611e169fb42c\", \"menu_id\": 65, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": true, \"can_delete\": false, \"can_report\": false, \"can_update\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.558Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.558Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"403a22dc-eb6a-4ac3-8d66-611e169fb42c\", \"menu_id\": 65, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.558Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.238Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.241'),
('6708d96f-76c6-4683-86bd-f4f44380c7a0', 'security-rule-wise-menu-permission', '23118aa9-0040-4523-be2a-a5c00660f9f1', 'UPDATE', '{\"id\": \"23118aa9-0040-4523-be2a-a5c00660f9f1\", \"menu_id\": 66, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": true, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.565Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.565Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"23118aa9-0040-4523-be2a-a5c00660f9f1\", \"menu_id\": 66, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": true, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.565Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.248Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.252'),
('985a3c3c-675f-4cfd-a9e9-919314291965', 'security-rule-wise-menu-permission', 'a0af41b9-742d-453f-8f1a-44691125cc1f', 'UPDATE', '{\"id\": \"a0af41b9-742d-453f-8f1a-44691125cc1f\", \"menu_id\": 67, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": true, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.572Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.572Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"a0af41b9-742d-453f-8f1a-44691125cc1f\", \"menu_id\": 67, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": true, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.572Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.260Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.264'),
('64c53710-a3f5-4bf5-8628-56005f097a6f', 'security-rule-wise-menu-permission', 'dc7300c3-2c85-4d8a-b1fb-6dfbb79f0e77', 'UPDATE', '{\"id\": \"dc7300c3-2c85-4d8a-b1fb-6dfbb79f0e77\", \"menu_id\": 68, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": true, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.580Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.580Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"dc7300c3-2c85-4d8a-b1fb-6dfbb79f0e77\", \"menu_id\": 68, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": true, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.580Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.271Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.273'),
('d6d3f5f0-3e02-4544-9538-a7565706882d', 'security-rule-wise-menu-permission', 'c847be3d-1352-4a2e-9fa1-09b3bb9781e3', 'UPDATE', '{\"id\": \"c847be3d-1352-4a2e-9fa1-09b3bb9781e3\", \"menu_id\": 69, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.589Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.589Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"c847be3d-1352-4a2e-9fa1-09b3bb9781e3\", \"menu_id\": 69, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.589Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.280Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.284'),
('3a14e37c-8539-4cbf-b0a5-d2d83414acca', 'security-rule-wise-menu-permission', '782f6d92-94b6-4f63-ab28-92f3a54682cc', 'UPDATE', '{\"id\": \"782f6d92-94b6-4f63-ab28-92f3a54682cc\", \"menu_id\": 70, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.597Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-17T17:46:38.597Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"782f6d92-94b6-4f63-ab28-92f3a54682cc\", \"menu_id\": 70, \"rule_id\": \"e9880af9-6378-47b2-90af-0022c100c01a\", \"can_view\": true, \"can_create\": false, \"can_delete\": false, \"can_report\": false, \"can_update\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-17T17:46:38.597Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T18:07:49.292Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-18 18:07:49.296'),
('7c9f7495-5e37-4c20-8348-0abbad4ee9c6', 'visit_histories', 'e46be457-b25d-4b69-9423-6fbec7765701', 'CREATE', '{}', '{\"id\": \"e46be457-b25d-4b69-9423-6fbec7765701\", \"thana\": \"banani\", \"reason\": \"test\", \"status\": \"PENDING\", \"address\": \"test\", \"country\": \"Bangladesh\", \"remarks\": \"\", \"district\": \"dhaka\", \"division\": \"dhaka\", \"latitude\": -32.0123044, \"is_active\": true, \"longitude\": 116.0232032, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-21T12:02:12.299Z\", \"created_by\": \"30af4edd-c2c1-4b3b-bd9f-5d5fc300eb2c\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-21T12:02:12.299Z\", \"updated_by\": null, \"updated_ip\": null, \"visit_date\": \"2025-03-21T16:00:00.000Z\", \"visit_type\": {\"id\": \"2e6a1b1b-6c98-4c7c-ab3d-b6b1eb645b58\", \"code\": \"fv\", \"name\": \"Factory Visit\", \"type\": \"FACTORY\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T16:39:35.817Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T16:39:35.817Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": \"\"}, \"person_type\": {\"id\": \"51edce5a-5786-48eb-8a83-32e8064908c7\", \"code\": \"far\", \"name\": \"Farmer\", \"type\": \"FARMER\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-14T18:01:42.015Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-14T18:01:42.015Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": \"\"}, \"postal_code\": \"\", \"visit_number\": \"VH-000004\", \"visit_type_id\": \"2e6a1b1b-6c98-4c7c-ab3d-b6b1eb645b58\", \"attachment_url\": \"uploads/visit-attachments/cat icon_1742558532290_9152.jpg\", \"person_type_id\": \"51edce5a-5786-48eb-8a83-32e8064908c7\", \"visit_costings\": [{\"id\": \"e0dd84cd-0298-4200-b0aa-5d0404b4b5c4\", \"visit_id\": \"e46be457-b25d-4b69-9423-6fbec7765701\", \"unit_rate\": 150.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-21T12:02:12.299Z\", \"created_by\": \"30af4edd-c2c1-4b3b-bd9f-5d5fc300eb2c\", \"created_ip\": \"::1\", \"unit_count\": 1.0, \"updated_at\": \"2025-03-21T12:02:12.299Z\", \"updated_by\": null, \"updated_ip\": null, \"total_amount\": 150.0, \"costing_head_id\": \"6cad1630-78b6-4dc6-8904-38484eae791e\", \"crm_costing_head\": {\"id\": \"6cad1630-78b6-4dc6-8904-38484eae791e\", \"code\": \"tc\", \"name\": \"Travel cost\", \"rate\": 150.0, \"duration\": null, \"pay_type\": \"DAILY\", \"is_active\": true, \"rate_type\": \"FIXED\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-14T18:39:16.939Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-14T18:39:25.729Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\", \"description\": \"test\", \"account_ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\"}}], \"contact_person_name\": \"asad\", \"contact_person_email\": \"\", \"contact_person_phone\": \"1245689\"}', '30af4edd-c2c1-4b3b-bd9f-5d5fc300eb2c', '2025-03-21 12:02:12.319'),
('42dc2f1c-580a-4970-b324-8cae04c2468c', 'visit_histories', 'b25eee7b-3bff-44b1-afb3-04cce934de38', 'CREATE', '{}', '{\"id\": \"b25eee7b-3bff-44b1-afb3-04cce934de38\", \"thana\": \"rng\", \"reason\": \"asfsadfsa\", \"status\": \"PENDING\", \"address\": \"qwfadsf\", \"country\": \"Bangladesh\", \"remarks\": \"\", \"district\": \"rng\", \"division\": \"rng\", \"latitude\": -32.0137206, \"is_active\": true, \"longitude\": 116.0295556, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-21T17:00:07.201Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-21T17:00:07.201Z\", \"updated_by\": null, \"updated_ip\": null, \"visit_date\": \"2025-03-22T16:00:00.000Z\", \"visit_type\": {\"id\": \"b4c5dfc4-530a-482f-89a1-7dbef26b9546\", \"code\": \"mv\", \"name\": \"Market visit\", \"type\": \"MARKET\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-14T17:52:40.575Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-14T17:52:47.398Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\", \"description\": \"market\"}, \"person_type\": {\"id\": \"51edce5a-5786-48eb-8a83-32e8064908c7\", \"code\": \"far\", \"name\": \"Farmer\", \"type\": \"FARMER\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-14T18:01:42.015Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-14T18:01:42.015Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": \"\"}, \"postal_code\": \"\", \"visit_number\": \"VH-000005\", \"visit_type_id\": \"b4c5dfc4-530a-482f-89a1-7dbef26b9546\", \"attachment_url\": \"uploads/visit-attachments/snow flake, kawaii cartoon style, soft colors, black outline, isolated image, white background and no shadow_1742576407193_8001.png\", \"person_type_id\": \"51edce5a-5786-48eb-8a83-32e8064908c7\", \"visit_costings\": [{\"id\": \"886ed4a4-2171-45dc-971e-36a02433f633\", \"visit_id\": \"b25eee7b-3bff-44b1-afb3-04cce934de38\", \"unit_rate\": 2000.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-21T17:00:07.201Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": \"::1\", \"unit_count\": 1.0, \"updated_at\": \"2025-03-21T17:00:07.201Z\", \"updated_by\": null, \"updated_ip\": null, \"total_amount\": 2000.0, \"costing_head_id\": \"818a0e7f-7ca4-4d4b-b0b7-50ac44bf77be\", \"crm_costing_head\": {\"id\": \"818a0e7f-7ca4-4d4b-b0b7-50ac44bf77be\", \"code\": \"acccost\", \"name\": \"Accommodation Cost\", \"rate\": 2000.0, \"duration\": 1, \"pay_type\": \"DAILY\", \"is_active\": true, \"rate_type\": \"FIXED\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T16:41:21.137Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-18T16:41:21.137Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": null, \"account_ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\"}}], \"contact_person_name\": \"test\", \"contact_person_email\": \"\", \"contact_person_phone\": \"12345678\"}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-21 17:00:07.230'),
('a2556d0c-5a12-40f9-89e9-139bf0c7c7c6', 'sales-target', '6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9', 'CREATE', '{}', '{\"id\": \"6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T08:05:01.862Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"updated_at\": \"2025-03-22T08:05:01.862Z\", \"updated_by\": null, \"updated_ip\": null, \"employee_id\": \"5324ebd1-6145-4146-aead-f955206f6518\", \"time_frame_id\": \"ee2a485d-13a5-4160-b8a8-1bfe684eef82\"}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 08:05:01.880'),
('d0bbec08-547a-41b3-88a7-654b257a946d', 'sales-amount-target', 'e085ef3a-07da-4f8b-ab2b-a8be73399495', 'CREATE', '{}', '{\"id\": \"e085ef3a-07da-4f8b-ab2b-a8be73399495\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T08:05:01.893Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"employeeId\": null, \"updated_at\": \"2025-03-22T08:05:01.893Z\", \"updated_by\": null, \"updated_ip\": null, \"is_achieved\": false, \"amount_target\": 60.0, \"achieved_amount\": 0.0, \"sales_target_id\": \"6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9\", \"achievement_date\": null, \"targetTimeFrameId\": null}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 08:05:01.899'),
('30fab746-a71e-4884-9435-6a19753ab859', 'sales-product-target', '7647c3ea-bf1a-4a4f-ba95-209b3d88d0df', 'CREATE', '{}', '{\"id\": \"7647c3ea-bf1a-4a4f-ba95-209b3d88d0df\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T08:05:01.905Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"employeeId\": null, \"product_id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"updated_at\": \"2025-03-22T08:05:01.905Z\", \"updated_by\": null, \"updated_ip\": null, \"is_achieved\": false, \"sales_target_id\": \"6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9\", \"target_quantity\": 2.0, \"achievement_date\": null, \"achieved_quantity\": 0.0, \"targetTimeFrameId\": null}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 08:05:01.911'),
('bb72a5e1-8330-45a3-b43d-94eae93033a1', 'sales-target', '6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9', 'UPDATE', '{\"id\": \"6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T08:05:01.862Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"updated_at\": \"2025-03-22T08:05:01.862Z\", \"updated_by\": null, \"updated_ip\": null, \"employee_id\": \"5324ebd1-6145-4146-aead-f955206f6518\", \"time_frame_id\": \"ee2a485d-13a5-4160-b8a8-1bfe684eef82\"}', '{\"id\": \"6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T08:05:01.862Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"updated_at\": \"2025-03-22T14:42:11.043Z\", \"updated_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"updated_ip\": null, \"employee_id\": \"5324ebd1-6145-4146-aead-f955206f6518\", \"time_frame_id\": \"ee2a485d-13a5-4160-b8a8-1bfe684eef82\"}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 14:42:11.049'),
('10c02e13-153a-4d07-a60c-1527f076e625', 'sales-amount-target', 'e085ef3a-07da-4f8b-ab2b-a8be73399495', 'UPDATE', '{\"id\": \"e085ef3a-07da-4f8b-ab2b-a8be73399495\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T08:05:01.893Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"employeeId\": null, \"updated_at\": \"2025-03-22T08:05:01.893Z\", \"updated_by\": null, \"updated_ip\": null, \"is_achieved\": false, \"amount_target\": 60.0, \"achieved_amount\": 0.0, \"sales_target_id\": \"6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9\", \"achievement_date\": null, \"targetTimeFrameId\": null}', '{\"id\": \"e085ef3a-07da-4f8b-ab2b-a8be73399495\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T08:05:01.893Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"employeeId\": null, \"updated_at\": \"2025-03-22T14:42:11.073Z\", \"updated_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"updated_ip\": null, \"is_achieved\": false, \"amount_target\": 90.0, \"achieved_amount\": 0.0, \"sales_target_id\": \"6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9\", \"achievement_date\": null, \"targetTimeFrameId\": null}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 14:42:11.079'),
('1fa3f230-05d2-4831-a8e8-5ca11cbc1b32', 'sales-product-target', '53e2a683-0b4d-4eb9-829c-7f2a53a31d13', 'CREATE', '{}', '{\"id\": \"53e2a683-0b4d-4eb9-829c-7f2a53a31d13\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T14:42:11.091Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"employeeId\": null, \"product_id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"updated_at\": \"2025-03-22T14:42:11.091Z\", \"updated_by\": null, \"updated_ip\": null, \"is_achieved\": false, \"sales_target_id\": \"6ba1a48a-fbc8-44cf-b2a5-d4763e7d97d9\", \"target_quantity\": 3.0, \"achievement_date\": null, \"achieved_quantity\": 0.0, \"targetTimeFrameId\": null}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 14:42:11.096'),
('75b1f2c8-e2de-448b-821c-3216a0b934a3', 'sales-quotation', '98426e9f-0015-4a81-be70-dead3c277c6f', 'CREATE', '{}', '{\"id\": \"98426e9f-0015-4a81-be70-dead3c277c6f\", \"date\": \"2025-03-22T00:00:00.000Z\", \"email\": null, \"phone\": null, \"thana\": null, \"status\": \"CREATED\", \"address\": null, \"remarks\": null, \"customer\": {\"id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"email\": \"\", \"phone\": \"0987654\", \"thana\": \"banani\", \"address\": \"banani\", \"district\": \"dhaka\", \"division\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:08:06.681Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-18T17:08:06.681Z\", \"updated_by\": null, \"updated_ip\": null, \"organization_name\": \"kayser ahmed\", \"contact_person_name\": \"kayser ahmed\", \"contact_person_email\": \"\", \"contact_person_phone\": \"0987654\"}, \"district\": null, \"division\": null, \"location\": {\"id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"city\": \"\", \"name\": \"Main\", \"type\": \"office\", \"email\": \"\", \"phone\": \"\", \"state\": \"\", \"address\": \"asdfa\", \"country\": \"\", \"latitude\": 0.0, \"is_active\": true, \"longitude\": 0.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T14:24:50.709Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"manager_id\": \"8c04fc8c-ce58-49e0-a1e7-897f38b47d11\", \"updated_at\": \"2025-03-06T14:33:19.975Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"postal_code\": \"\"}, \"total_tax\": 0.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T14:44:43.215Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"updated_at\": \"2025-03-22T14:44:43.215Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"grand_total\": 90.0, \"location_id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"quotation_no\": \"QT2025030006\", \"total_amount\": 90.0, \"customer_type\": \"EXISTING\", \"visit_history\": null, \"total_discount\": 0.0, \"visit_history_id\": null, \"organization_name\": null, \"quotation_details\": [{\"id\": \"5f058a0f-069b-49dd-b9da-cd5cd46b9b01\", \"tax\": 0.0, \"rate\": 30.0, \"total\": 0.0, \"product\": {\"id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"code\": \"chips\", \"name\": \"Chips\", \"brand\": \"\", \"category\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T18:25:21.736Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"shelf_life\": null, \"unit_price\": 30.0, \"updated_at\": \"2025-03-07T19:09:56.705Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": \"\", \"reorder_level\": null, \"specifications\": \"\", \"unit_of_measure\": \"pcs\", \"minimum_quantity\": null, \"storage_location\": null}, \"discount\": 0.0, \"quantity\": 3.0, \"tax_term\": null, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T14:44:43.215Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"product_id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"updated_at\": \"2025-03-22T14:44:43.215Z\", \"updated_by\": null, \"updated_ip\": null, \"tax_term_id\": null, \"quotation_id\": \"98426e9f-0015-4a81-be70-dead3c277c6f\", \"expected_date\": \"2025-03-24T00:00:00.000Z\", \"total_with_tax\": 0.0}], \"contact_person_name\": null, \"contact_person_email\": null, \"contact_person_phone\": null}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 14:44:43.236');
INSERT INTO `audit_logs` (`id`, `table_name`, `record_id`, `action`, `previous_data`, `new_data`, `changed_by`, `timestamp`) VALUES
('2c255feb-013a-4c0d-8cbb-ff2ad5137f8b', 'sales-order', '01cbc716-79e8-418a-ac04-e81bf329d006', 'CREATE', '{}', '{\"id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"status\": \"CREATED\", \"remarks\": null, \"customer\": {\"id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"email\": \"\", \"phone\": \"0987654\", \"thana\": \"banani\", \"address\": \"banani\", \"district\": \"dhaka\", \"division\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:08:06.681Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-18T17:08:06.681Z\", \"updated_by\": null, \"updated_ip\": null, \"organization_name\": \"kayser ahmed\", \"contact_person_name\": \"kayser ahmed\", \"contact_person_email\": \"\", \"contact_person_phone\": \"0987654\"}, \"end_date\": \"2025-03-31T00:00:00.000Z\", \"invoices\": [{\"id\": \"a26a62a2-3ecf-4374-8539-5e1bbef0b8fe\", \"status\": \"GENERATED\", \"remarks\": \"\", \"order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.860Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"invoice_no\": \"INV2025030013\", \"updated_at\": \"2025-03-22T15:19:28.860Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"paid_amount\": 0.0, \"target_date\": \"2025-03-31T00:00:00.000Z\", \"invoice_date\": \"2025-03-23T00:00:00.000Z\", \"invoice_amount\": 54.0, \"collection_target_id\": \"5c523167-56ec-47fa-b4e4-2d4d5f929c7b\"}], \"order_no\": \"SO2025030009\", \"quotation\": {\"id\": \"98426e9f-0015-4a81-be70-dead3c277c6f\", \"date\": \"2025-03-22T00:00:00.000Z\", \"email\": null, \"phone\": null, \"thana\": null, \"status\": \"SALE_IN_PROCESS\", \"address\": null, \"remarks\": null, \"district\": null, \"division\": null, \"total_tax\": 0.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T14:44:43.215Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"updated_at\": \"2025-03-22T15:19:28.868Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"grand_total\": 90.0, \"location_id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"quotation_no\": \"QT2025030006\", \"total_amount\": 90.0, \"customer_type\": \"EXISTING\", \"total_discount\": 0.0, \"visit_history_id\": null, \"organization_name\": null, \"contact_person_name\": null, \"contact_person_email\": null, \"contact_person_phone\": null}, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.823Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"start_date\": \"2025-03-22T00:00:00.000Z\", \"updated_at\": \"2025-03-22T15:19:28.823Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"quotation_id\": \"98426e9f-0015-4a81-be70-dead3c277c6f\", \"total_amount\": 90.0, \"order_details\": [{\"id\": \"54206cee-0ffa-4040-9d2c-ecb4343e559a\", \"rate\": 30.0, \"total\": 90.0, \"product\": {\"id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"code\": \"chips\", \"name\": \"Chips\", \"brand\": \"\", \"category\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T18:25:21.736Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"shelf_life\": null, \"unit_price\": 30.0, \"updated_at\": \"2025-03-07T19:09:56.705Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": \"\", \"reorder_level\": null, \"specifications\": \"\", \"unit_of_measure\": \"pcs\", \"minimum_quantity\": null, \"storage_location\": null}, \"order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"quantity\": 3.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.823Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"product_id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"updated_at\": \"2025-03-22T15:19:28.823Z\", \"updated_by\": null, \"updated_ip\": null, \"expected_date\": \"2025-03-23T00:00:00.000Z\", \"quotation_detail_id\": \"5f058a0f-069b-49dd-b9da-cd5cd46b9b01\"}], \"collection_targets\": [{\"id\": \"5c523167-56ec-47fa-b4e4-2d4d5f929c7b\", \"remarks\": \"\", \"end_date\": \"2025-03-31T00:00:00.000Z\", \"order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.849Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"start_date\": \"2025-03-23T00:00:00.000Z\", \"updated_at\": \"2025-03-22T15:19:28.849Z\", \"updated_by\": null, \"updated_ip\": null, \"target_amount\": 54.0, \"collected_amount\": 0.0, \"target_percentage\": 0.0}]}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 15:19:28.880'),
('f04f822f-db71-454f-9f9a-4f13dce93203', 'sales-order', '01cbc716-79e8-418a-ac04-e81bf329d006', 'UPDATE', '{\"id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"status\": \"CREATED\", \"remarks\": null, \"end_date\": \"2025-03-31T00:00:00.000Z\", \"invoices\": [{\"id\": \"a26a62a2-3ecf-4374-8539-5e1bbef0b8fe\", \"status\": \"GENERATED\", \"remarks\": \"\", \"order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.860Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"invoice_no\": \"INV2025030013\", \"updated_at\": \"2025-03-22T15:19:28.860Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"paid_amount\": 0.0, \"target_date\": \"2025-03-31T00:00:00.000Z\", \"invoice_date\": \"2025-03-23T00:00:00.000Z\", \"invoice_amount\": 54.0, \"collection_target_id\": \"5c523167-56ec-47fa-b4e4-2d4d5f929c7b\"}], \"order_no\": \"SO2025030009\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.823Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"start_date\": \"2025-03-22T00:00:00.000Z\", \"updated_at\": \"2025-03-22T15:19:28.823Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"quotation_id\": \"98426e9f-0015-4a81-be70-dead3c277c6f\", \"total_amount\": 90.0, \"order_details\": [{\"id\": \"54206cee-0ffa-4040-9d2c-ecb4343e559a\", \"rate\": 30.0, \"total\": 90.0, \"order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"quantity\": 3.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.823Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"product_id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"updated_at\": \"2025-03-22T15:19:28.823Z\", \"updated_by\": null, \"updated_ip\": null, \"expected_date\": \"2025-03-23T00:00:00.000Z\", \"quotation_detail_id\": \"5f058a0f-069b-49dd-b9da-cd5cd46b9b01\"}], \"collection_targets\": [{\"id\": \"5c523167-56ec-47fa-b4e4-2d4d5f929c7b\", \"remarks\": \"\", \"end_date\": \"2025-03-31T00:00:00.000Z\", \"order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.849Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"start_date\": \"2025-03-23T00:00:00.000Z\", \"updated_at\": \"2025-03-22T15:19:28.849Z\", \"updated_by\": null, \"updated_ip\": null, \"target_amount\": 54.0, \"collected_amount\": 0.0, \"target_percentage\": 0.0}]}', '{\"id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"status\": \"CREATED\", \"remarks\": null, \"customer\": {\"id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"email\": \"\", \"phone\": \"0987654\", \"thana\": \"banani\", \"address\": \"banani\", \"district\": \"dhaka\", \"division\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:08:06.681Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-18T17:08:06.681Z\", \"updated_by\": null, \"updated_ip\": null, \"organization_name\": \"kayser ahmed\", \"contact_person_name\": \"kayser ahmed\", \"contact_person_email\": \"\", \"contact_person_phone\": \"0987654\"}, \"end_date\": \"2025-03-31T00:00:00.000Z\", \"invoices\": [{\"id\": \"a36c426e-a4b7-45b1-8e41-ffab7aa677c9\", \"status\": \"GENERATED\", \"remarks\": \"\", \"order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:21:18.151Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"invoice_no\": \"INV2025030013\", \"updated_at\": \"2025-03-22T15:21:18.151Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"paid_amount\": 0.0, \"target_date\": \"2025-03-31T00:00:00.000Z\", \"invoice_date\": \"2025-03-23T00:00:00.000Z\", \"invoice_amount\": 18.0, \"collection_target_id\": \"eb9ff3b6-d7b2-43b7-abfd-97534f0a685e\"}], \"order_no\": \"SO2025030009\", \"quotation\": {\"id\": \"98426e9f-0015-4a81-be70-dead3c277c6f\", \"date\": \"2025-03-22T00:00:00.000Z\", \"email\": null, \"phone\": null, \"thana\": null, \"status\": \"SALE_IN_PROCESS\", \"address\": null, \"remarks\": null, \"district\": null, \"division\": null, \"total_tax\": 0.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T14:44:43.215Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"updated_at\": \"2025-03-22T15:19:28.868Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"grand_total\": 90.0, \"location_id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"quotation_no\": \"QT2025030006\", \"total_amount\": 90.0, \"customer_type\": \"EXISTING\", \"total_discount\": 0.0, \"visit_history_id\": null, \"organization_name\": null, \"contact_person_name\": null, \"contact_person_email\": null, \"contact_person_phone\": null}, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.823Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"start_date\": \"2025-03-22T00:00:00.000Z\", \"updated_at\": \"2025-03-22T15:21:18.137Z\", \"updated_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"quotation_id\": \"98426e9f-0015-4a81-be70-dead3c277c6f\", \"total_amount\": 90.0, \"order_details\": [{\"id\": \"e86d14cf-486d-4451-8963-7aaab8ef0e9e\", \"rate\": 30.0, \"total\": 90.0, \"product\": {\"id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"code\": \"chips\", \"name\": \"Chips\", \"brand\": \"\", \"category\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T18:25:21.736Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"shelf_life\": null, \"unit_price\": 30.0, \"updated_at\": \"2025-03-07T19:09:56.705Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": \"\", \"reorder_level\": null, \"specifications\": \"\", \"unit_of_measure\": \"pcs\", \"minimum_quantity\": null, \"storage_location\": null}, \"order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"quantity\": 3.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:21:18.137Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"product_id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"updated_at\": \"2025-03-22T15:21:18.137Z\", \"updated_by\": null, \"updated_ip\": null, \"expected_date\": \"2025-03-23T00:00:00.000Z\", \"quotation_detail\": {\"id\": \"5f058a0f-069b-49dd-b9da-cd5cd46b9b01\", \"tax\": 0.0, \"rate\": 30.0, \"total\": 0.0, \"discount\": 0.0, \"quantity\": 3.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T14:44:43.215Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"product_id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"updated_at\": \"2025-03-22T14:44:43.215Z\", \"updated_by\": null, \"updated_ip\": null, \"tax_term_id\": null, \"quotation_id\": \"98426e9f-0015-4a81-be70-dead3c277c6f\", \"expected_date\": \"2025-03-24T00:00:00.000Z\", \"total_with_tax\": 0.0}, \"quotation_detail_id\": \"5f058a0f-069b-49dd-b9da-cd5cd46b9b01\"}], \"collection_targets\": [{\"id\": \"eb9ff3b6-d7b2-43b7-abfd-97534f0a685e\", \"remarks\": \"\", \"end_date\": \"2025-03-31T00:00:00.000Z\", \"order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:21:18.145Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"start_date\": \"2025-03-23T00:00:00.000Z\", \"updated_at\": \"2025-03-22T15:21:18.145Z\", \"updated_by\": null, \"updated_ip\": null, \"target_amount\": 18.0, \"collected_amount\": 0.0, \"target_percentage\": 20.0}]}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 15:21:18.163'),
('4d9bb80a-ef5a-47e5-82ec-1c73aff76b62', 'payment-receipt-master', 'b5776af0-9ace-4b37-ba56-73e635679754', 'CREATE', '{}', '{\"id\": \"b5776af0-9ace-4b37-ba56-73e635679754\", \"status\": \"COMPLETED\", \"remarks\": null, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:10:54.831Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"receipt_no\": \"PR2025030010\", \"updated_at\": \"2025-03-22T16:10:54.831Z\", \"updated_by\": null, \"updated_ip\": null, \"sales_order\": {\"id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"status\": \"CREATED\", \"remarks\": null, \"end_date\": \"2025-03-31T00:00:00.000Z\", \"order_no\": \"SO2025030009\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.823Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"start_date\": \"2025-03-22T00:00:00.000Z\", \"updated_at\": \"2025-03-22T15:21:18.137Z\", \"updated_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"quotation_id\": \"98426e9f-0015-4a81-be70-dead3c277c6f\", \"total_amount\": 90.0}, \"receipt_date\": \"2025-03-22T16:10:34.000Z\", \"total_amount\": 18.0, \"sales_order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"receipt_details\": [{\"id\": \"c8b30c42-46ca-4fea-9570-2e3406f9c913\", \"bank\": null, \"bank_id\": null, \"invoice\": {\"id\": \"a36c426e-a4b7-45b1-8e41-ffab7aa677c9\", \"status\": \"GENERATED\", \"remarks\": \"\", \"order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:21:18.151Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"invoice_no\": \"INV2025030013\", \"updated_at\": \"2025-03-22T15:21:18.151Z\", \"updated_by\": null, \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"paid_amount\": 0.0, \"target_date\": \"2025-03-31T00:00:00.000Z\", \"invoice_date\": \"2025-03-23T00:00:00.000Z\", \"invoice_amount\": 18.0, \"collection_target_id\": \"eb9ff3b6-d7b2-43b7-abfd-97534f0a685e\"}, \"cheque_no\": null, \"master_id\": \"b5776af0-9ace-4b37-ba56-73e635679754\", \"wallet_no\": null, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:10:54.831Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"invoice_id\": \"a36c426e-a4b7-45b1-8e41-ffab7aa677c9\", \"mfs_amount\": null, \"updated_at\": \"2025-03-22T16:10:54.831Z\", \"updated_by\": null, \"updated_ip\": null, \"bank_amount\": null, \"cash_amount\": 18.0, \"cheque_bank\": null, \"cheque_date\": null, \"paid_amount\": 18.0, \"mfs_provider\": null, \"payment_mode\": \"CASH\", \"cheque_amount\": null, \"cheque_branch\": null, \"transaction_id\": null, \"transaction_date\": null}], \"cheque_image_url\": null, \"receipt_image_url\": \"uploads/payment-receipts/train, kawaii cartoon style, soft colors, black outline, isolated image, white background and no shadow_1742659854819_6971.jpg\", \"bank_statement_url\": null}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 16:10:54.853'),
('0cdc0dbd-217a-4a2d-a299-e3e743a3e7f2', 'customer', '38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4', 'UPDATE', '{\"id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"code\": null, \"email\": \"\", \"phone\": \"0987654\", \"thana\": \"banani\", \"address\": \"banani\", \"district\": \"dhaka\", \"division\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:08:06.681Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-18T17:08:06.681Z\", \"updated_by\": null, \"updated_ip\": null, \"organization_name\": \"kayser ahmed\", \"contact_person_name\": \"kayser ahmed\", \"contact_person_email\": \"\", \"contact_person_phone\": \"0987654\"}', '{\"id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"code\": \"k0001\", \"email\": \"\", \"phone\": \"0987654\", \"thana\": \"banani\", \"address\": \"banani\", \"district\": \"dhaka\", \"division\": \"wert\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:08:06.681Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-22T16:21:04.121Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"organization_name\": \"kayser ahmed\", \"contact_person_name\": \"kayser ahmed\", \"contact_person_email\": \"\", \"contact_person_phone\": \"0987654\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-22 16:21:04.129'),
('674fcee3-460d-44c0-b783-4d3c0db015da', 'product-delivery', 'f69af4d0-22cc-4d24-88b8-89d482677c04', 'CREATE', '{}', '{\"id\": \"f69af4d0-22cc-4d24-88b8-89d482677c04\", \"rack\": {\"id\": \"2543bf33-cfe2-4571-b437-6f02b40d9552\", \"name\": \"Rack main\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T14:59:51.947Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-06T15:01:03.753Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": \"sdf\", \"location_id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\"}, \"status\": \"CREATED\", \"rack_id\": \"2543bf33-cfe2-4571-b437-6f02b40d9552\", \"remarks\": \"asdfasfasf\", \"location\": {\"id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"city\": \"\", \"name\": \"Main\", \"type\": \"office\", \"email\": \"\", \"phone\": \"\", \"state\": \"\", \"address\": \"asdfa\", \"country\": \"\", \"latitude\": 0.0, \"is_active\": true, \"longitude\": 0.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T14:24:50.709Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"manager_id\": \"8c04fc8c-ce58-49e0-a1e7-897f38b47d11\", \"updated_at\": \"2025-03-06T14:33:19.975Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"postal_code\": \"\"}, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:23:05.129Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"updated_at\": \"2025-03-22T16:23:05.129Z\", \"updated_by\": null, \"delivery_no\": \"DL2025030005\", \"location_id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"sales_order\": {\"id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"status\": \"CREATED\", \"remarks\": null, \"customer\": {\"id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"code\": \"k0001\", \"email\": \"\", \"phone\": \"0987654\", \"thana\": \"banani\", \"address\": \"banani\", \"district\": \"dhaka\", \"division\": \"wert\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:08:06.681Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-22T16:21:04.121Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"organization_name\": \"kayser ahmed\", \"contact_person_name\": \"kayser ahmed\", \"contact_person_email\": \"\", \"contact_person_phone\": \"0987654\"}, \"end_date\": \"2025-03-31T00:00:00.000Z\", \"order_no\": \"SO2025030009\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.823Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"start_date\": \"2025-03-22T00:00:00.000Z\", \"updated_at\": \"2025-03-22T15:21:18.137Z\", \"updated_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"quotation_id\": \"98426e9f-0015-4a81-be70-dead3c277c6f\", \"total_amount\": 90.0}, \"total_amount\": 0.0, \"delivery_agent\": \"68d8a13f-cc72-4f17-9374-8aa507d444e9\", \"sales_order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"customer_address\": \"banani\", \"delivery_details\": [{\"id\": \"3e28868a-c860-4189-9d28-6d267951be9c\", \"product\": {\"id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"code\": \"chips\", \"name\": \"Chips\", \"brand\": \"\", \"category\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T18:25:21.736Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"shelf_life\": null, \"unit_price\": 30.0, \"updated_at\": \"2025-03-07T19:09:56.705Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": \"\", \"reorder_level\": null, \"specifications\": \"\", \"unit_of_measure\": \"pcs\", \"minimum_quantity\": null, \"storage_location\": null}, \"remarks\": \"\", \"quantity\": 3, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:23:05.129Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"product_id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"unit_price\": 30.0, \"delivery_id\": \"f69af4d0-22cc-4d24-88b8-89d482677c04\", \"total_amount\": 90.0, \"delivery_quantity\": 3}], \"delivery_costings\": [{\"id\": \"d1e7d6fd-8fea-4796-ab79-0462612b7bfd\", \"unit_rate\": 200.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:23:05.129Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"unit_count\": 2, \"delivery_id\": \"f69af4d0-22cc-4d24-88b8-89d482677c04\", \"costing_head\": {\"id\": \"9b1400b3-d63c-49be-a86b-9137b0a65df2\", \"code\": \"dc\", \"name\": \"Delivery cost\", \"rate\": 2000.0, \"duration\": null, \"pay_type\": \"PER_UNIT\", \"is_active\": true, \"rate_type\": \"FIXED\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-13T17:17:22.309Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-15T17:19:51.135Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\", \"description\": null, \"account_ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\"}, \"total_amount\": 400.0, \"costing_head_id\": \"9b1400b3-d63c-49be-a86b-9137b0a65df2\"}], \"expected_delivery_date\": \"2025-03-24T00:00:00.000Z\"}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 16:23:05.145'),
('afa4d1ee-b14b-442e-bd2a-358a040b108f', 'product-delivery', 'f69af4d0-22cc-4d24-88b8-89d482677c04', 'UPDATE', '{\"id\": \"f69af4d0-22cc-4d24-88b8-89d482677c04\", \"status\": \"CREATED\", \"rack_id\": \"2543bf33-cfe2-4571-b437-6f02b40d9552\", \"remarks\": \"asdfasfasf\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:23:05.129Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"updated_at\": \"2025-03-22T16:23:05.129Z\", \"updated_by\": null, \"delivery_no\": \"DL2025030005\", \"location_id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"total_amount\": 0.0, \"delivery_agent\": \"68d8a13f-cc72-4f17-9374-8aa507d444e9\", \"sales_order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"customer_address\": \"banani\", \"delivery_details\": [{\"id\": \"3e28868a-c860-4189-9d28-6d267951be9c\", \"remarks\": \"\", \"quantity\": 3, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:23:05.129Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"product_id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"unit_price\": 30.0, \"delivery_id\": \"f69af4d0-22cc-4d24-88b8-89d482677c04\", \"total_amount\": 90.0, \"delivery_quantity\": 3}], \"delivery_costings\": [{\"id\": \"d1e7d6fd-8fea-4796-ab79-0462612b7bfd\", \"unit_rate\": 200.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:23:05.129Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"unit_count\": 2, \"delivery_id\": \"f69af4d0-22cc-4d24-88b8-89d482677c04\", \"total_amount\": 400.0, \"costing_head_id\": \"9b1400b3-d63c-49be-a86b-9137b0a65df2\"}], \"expected_delivery_date\": \"2025-03-24T00:00:00.000Z\"}', '{\"id\": \"f69af4d0-22cc-4d24-88b8-89d482677c04\", \"rack\": {\"id\": \"2543bf33-cfe2-4571-b437-6f02b40d9552\", \"name\": \"Rack main\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T14:59:51.947Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-06T15:01:03.753Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": \"sdf\", \"location_id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\"}, \"status\": \"CREATED\", \"rack_id\": \"2543bf33-cfe2-4571-b437-6f02b40d9552\", \"remarks\": \"asdfasfasf\", \"location\": {\"id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"city\": \"\", \"name\": \"Main\", \"type\": \"office\", \"email\": \"\", \"phone\": \"\", \"state\": \"\", \"address\": \"asdfa\", \"country\": \"\", \"latitude\": 0.0, \"is_active\": true, \"longitude\": 0.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T14:24:50.709Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"manager_id\": \"8c04fc8c-ce58-49e0-a1e7-897f38b47d11\", \"updated_at\": \"2025-03-06T14:33:19.975Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"postal_code\": \"\"}, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:23:05.129Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"updated_at\": \"2025-03-22T16:27:01.267Z\", \"updated_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"delivery_no\": \"DL2025030005\", \"location_id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"sales_order\": {\"id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"status\": \"CREATED\", \"remarks\": null, \"customer\": {\"id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"code\": \"k0001\", \"email\": \"\", \"phone\": \"0987654\", \"thana\": \"banani\", \"address\": \"banani\", \"district\": \"dhaka\", \"division\": \"wert\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:08:06.681Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-22T16:21:04.121Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"organization_name\": \"kayser ahmed\", \"contact_person_name\": \"kayser ahmed\", \"contact_person_email\": \"\", \"contact_person_phone\": \"0987654\"}, \"end_date\": \"2025-03-31T00:00:00.000Z\", \"order_no\": \"SO2025030009\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.823Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"start_date\": \"2025-03-22T00:00:00.000Z\", \"updated_at\": \"2025-03-22T15:21:18.137Z\", \"updated_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"quotation_id\": \"98426e9f-0015-4a81-be70-dead3c277c6f\", \"total_amount\": 90.0}, \"total_amount\": 0.0, \"delivery_agent\": \"68d8a13f-cc72-4f17-9374-8aa507d444e9\", \"sales_order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"customer_address\": \"banani\", \"delivery_details\": [{\"id\": \"c56cc8e4-b90a-4c78-99a3-d11b1a32bfc6\", \"product\": {\"id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"code\": \"chips\", \"name\": \"Chips\", \"brand\": \"\", \"category\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T18:25:21.736Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"shelf_life\": null, \"unit_price\": 30.0, \"updated_at\": \"2025-03-07T19:09:56.705Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": \"\", \"reorder_level\": null, \"specifications\": \"\", \"unit_of_measure\": \"pcs\", \"minimum_quantity\": null, \"storage_location\": null}, \"remarks\": \"\", \"quantity\": 3, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:27:01.269Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"product_id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"unit_price\": 30.0, \"delivery_id\": \"f69af4d0-22cc-4d24-88b8-89d482677c04\", \"total_amount\": 90.0, \"delivery_quantity\": 3}], \"delivery_costings\": [{\"id\": \"6dcc0865-a4ff-434d-9e4b-3d454dedc7c7\", \"unit_rate\": 200.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:27:01.269Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"unit_count\": 2, \"delivery_id\": \"f69af4d0-22cc-4d24-88b8-89d482677c04\", \"costing_head\": {\"id\": \"9b1400b3-d63c-49be-a86b-9137b0a65df2\", \"code\": \"dc\", \"name\": \"Delivery cost\", \"rate\": 2000.0, \"duration\": null, \"pay_type\": \"PER_UNIT\", \"is_active\": true, \"rate_type\": \"FIXED\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-13T17:17:22.309Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-15T17:19:51.135Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\", \"description\": null, \"account_ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\"}, \"total_amount\": 400.0, \"costing_head_id\": \"9b1400b3-d63c-49be-a86b-9137b0a65df2\"}], \"expected_delivery_date\": \"2025-03-24T00:00:00.000Z\"}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 16:27:01.282'),
('b7585569-1053-4d4d-a405-e7c85c4f7364', 'sales-return', '1aa58aac-1a89-42c1-bb4b-0bfd38093729', 'CREATE', '{}', '{\"id\": \"1aa58aac-1a89-42c1-bb4b-0bfd38093729\", \"rack\": {\"id\": \"2543bf33-cfe2-4571-b437-6f02b40d9552\", \"name\": \"Rack main\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T14:59:51.947Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-06T15:01:03.753Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": \"sdf\", \"location_id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\"}, \"status\": \"PENDING\", \"rack_id\": \"2543bf33-cfe2-4571-b437-6f02b40d9552\", \"remarks\": null, \"location\": {\"id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"city\": \"\", \"name\": \"Main\", \"type\": \"office\", \"email\": \"\", \"phone\": \"\", \"state\": \"\", \"address\": \"asdfa\", \"country\": \"\", \"latitude\": 0.0, \"is_active\": true, \"longitude\": 0.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T14:24:50.709Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"manager_id\": \"8c04fc8c-ce58-49e0-a1e7-897f38b47d11\", \"updated_at\": \"2025-03-06T14:33:19.975Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"postal_code\": \"\"}, \"return_no\": \"SR2025030004\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:42:31.893Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"updated_at\": \"2025-03-22T16:42:31.893Z\", \"updated_by\": null, \"updated_ip\": null, \"location_id\": \"62b11e87-352c-40cc-8ee9-9c0a39048f90\", \"return_date\": \"2025-03-25T00:00:00.000Z\", \"sales_order\": {\"id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"status\": \"CREATED\", \"remarks\": null, \"customer\": {\"id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"code\": \"k0001\", \"email\": \"\", \"phone\": \"0987654\", \"thana\": \"banani\", \"address\": \"banani\", \"district\": \"dhaka\", \"division\": \"wert\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-18T17:08:06.681Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-22T16:21:04.121Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"organization_name\": \"kayser ahmed\", \"contact_person_name\": \"kayser ahmed\", \"contact_person_email\": \"\", \"contact_person_phone\": \"0987654\"}, \"end_date\": \"2025-03-31T00:00:00.000Z\", \"order_no\": \"SO2025030009\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T15:19:28.823Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"start_date\": \"2025-03-22T00:00:00.000Z\", \"updated_at\": \"2025-03-22T15:21:18.137Z\", \"updated_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"updated_ip\": null, \"customer_id\": \"38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4\", \"quotation_id\": \"98426e9f-0015-4a81-be70-dead3c277c6f\", \"total_amount\": 90.0}, \"total_amount\": 30.0, \"return_details\": [{\"id\": \"6d0a9979-65b8-407d-b45d-84ce25eb4773\", \"product\": {\"id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"code\": \"chips\", \"name\": \"Chips\", \"brand\": \"\", \"category\": \"\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-06T18:25:21.736Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"shelf_life\": null, \"unit_price\": 30.0, \"updated_at\": \"2025-03-07T19:09:56.705Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": \"\", \"reorder_level\": null, \"specifications\": \"\", \"unit_of_measure\": \"pcs\", \"minimum_quantity\": null, \"storage_location\": null}, \"remarks\": \"\", \"quantity\": 3.0, \"return_id\": \"1aa58aac-1a89-42c1-bb4b-0bfd38093729\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:42:31.893Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"product_id\": \"0784ba0e-7b6e-4776-9b31-54822b0d6f65\", \"unit_price\": 30.0, \"updated_at\": \"2025-03-22T16:42:31.893Z\", \"updated_by\": null, \"updated_ip\": null, \"total_amount\": 30.0, \"return_quantity\": 1.0}], \"sales_order_id\": \"01cbc716-79e8-418a-ac04-e81bf329d006\", \"return_costings\": [{\"id\": \"99cac599-7b88-49b2-bab2-87f07e315c68\", \"return_id\": \"1aa58aac-1a89-42c1-bb4b-0bfd38093729\", \"unit_rate\": 100.0, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-22T16:42:31.893Z\", \"created_by\": \"89a22510-54ec-4df1-9200-dfd6a53dd226\", \"created_ip\": null, \"unit_count\": 0.0, \"updated_at\": \"2025-03-22T16:42:31.893Z\", \"updated_by\": null, \"updated_ip\": null, \"costing_head\": {\"id\": \"9b1400b3-d63c-49be-a86b-9137b0a65df2\", \"code\": \"dc\", \"name\": \"Delivery cost\", \"rate\": 2000.0, \"duration\": null, \"pay_type\": \"PER_UNIT\", \"is_active\": true, \"rate_type\": \"FIXED\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-13T17:17:22.309Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": \"::1\", \"updated_at\": \"2025-03-15T17:19:51.135Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": \"::1\", \"description\": null, \"account_ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\"}, \"total_amount\": 0.0, \"costing_head_id\": \"9b1400b3-d63c-49be-a86b-9137b0a65df2\"}]}', '89a22510-54ec-4df1-9200-dfd6a53dd226', '2025-03-22 16:42:31.906'),
('3519e5d1-96da-4b72-a20c-6698e2c69550', 'voucher_type', '858e0139-46d6-4158-b64e-18c36129ed88', 'CREATE', '{}', '{\"id\": \"858e0139-46d6-4158-b64e-18c36129ed88\", \"code\": \"JV\", \"name\": \"Journal Voucher\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:29:39.328Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T13:29:39.328Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": null}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:29:39.334'),
('1811820f-92e5-426a-98e7-0f868ba0c718', 'voucher_type', '9427a335-b13f-44b6-aacf-34a8be248b78', 'CREATE', '{}', '{\"id\": \"9427a335-b13f-44b6-aacf-34a8be248b78\", \"code\": \"PV\", \"name\": \"Payment Voucher\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:31:43.389Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T13:31:43.389Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": null}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:31:43.390'),
('da00c056-c197-425d-91b5-0031c250a672', 'voucher_type', '19da22ab-9f9d-487d-9411-75e70ab4a55e', 'CREATE', '{}', '{\"id\": \"19da22ab-9f9d-487d-9411-75e70ab4a55e\", \"code\": \"CV\", \"name\": \"Cash Voucher\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:32:21.102Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T13:32:21.102Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": null}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:32:21.119'),
('e8389b94-15e7-4d94-b547-0f96ddc72754', 'voucher_type', 'f656d73a-6ac6-46f6-a421-61fac9d2a165', 'CREATE', '{}', '{\"id\": \"f656d73a-6ac6-46f6-a421-61fac9d2a165\", \"code\": \"CONV\", \"name\": \"Contra Voucher\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:32:53.805Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T13:32:53.805Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": null}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:32:53.828'),
('67370dcd-f1b2-4c59-8c52-45be720b6147', 'fiscal_year', '3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b', 'CREATE', '{}', '{\"id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"name\": \"fiscal year 2025\", \"end_date\": \"2025-12-30T16:00:00.000Z\", \"is_active\": true, \"is_closed\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:37:53.025Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"start_date\": \"2024-12-31T16:00:00.000Z\", \"updated_at\": \"2025-03-28T13:37:53.025Z\", \"updated_by\": null, \"updated_ip\": null}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:37:53.042'),
('1466a05e-66a0-4a53-9f22-89d5b4a3a8f6', 'fiscal_year', 'b7aa842c-8591-49dd-b696-0c27de4b1422', 'CREATE', '{}', '{\"id\": \"b7aa842c-8591-49dd-b696-0c27de4b1422\", \"name\": \"test\", \"end_date\": \"2025-03-19T16:00:00.000Z\", \"is_active\": true, \"is_closed\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:38:11.316Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"start_date\": \"2025-02-28T16:00:00.000Z\", \"updated_at\": \"2025-03-28T13:38:11.316Z\", \"updated_by\": null, \"updated_ip\": null}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:38:11.332'),
('28877389-f8f4-45cc-82c3-8cde97f46145', 'voucher_type', '605734b1-aefb-47f3-b4c5-3458f662bac2', 'CREATE', '{}', '{\"id\": \"605734b1-aefb-47f3-b4c5-3458f662bac2\", \"code\": \"test\", \"name\": \"test\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:39:47.654Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T13:39:47.654Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": \"test\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:39:47.677'),
('ceae18d6-b837-4a92-91fb-104cd10fb983', 'voucher_type', '3496372e-5f56-46da-9f71-b77c4080ae1f', 'CREATE', '{}', '{\"id\": \"3496372e-5f56-46da-9f71-b77c4080ae1f\", \"code\": \"t\", \"name\": \"t\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:47:47.725Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T13:47:47.725Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": \"\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:47:47.742'),
('1516ef56-533e-4e48-b8b2-fe27c46761cf', 'voucher_type', '3496372e-5f56-46da-9f71-b77c4080ae1f', 'DELETE', '{\"id\": \"3496372e-5f56-46da-9f71-b77c4080ae1f\", \"code\": \"t\", \"name\": \"t\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:47:47.725Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T13:47:47.725Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": \"\"}', '{}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:51:55.061'),
('e454b195-5b0d-4591-b175-1245967c6edd', 'voucher_type', '605734b1-aefb-47f3-b4c5-3458f662bac2', 'DELETE', '{\"id\": \"605734b1-aefb-47f3-b4c5-3458f662bac2\", \"code\": \"test\", \"name\": \"test\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:39:47.654Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T13:39:47.654Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": \"test\"}', '{}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:52:01.931'),
('05533915-c02f-43bc-949d-bc2b7aed31d8', 'fiscal_year', '1628eb8b-eb9b-479d-b6d6-b3919f05da4d', 'CREATE', '{}', '{\"id\": \"1628eb8b-eb9b-479d-b6d6-b3919f05da4d\", \"name\": \"t\", \"end_date\": \"2025-03-05T16:00:00.000Z\", \"is_active\": true, \"is_closed\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:52:16.243Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"start_date\": \"2025-03-05T16:00:00.000Z\", \"updated_at\": \"2025-03-28T13:52:16.243Z\", \"updated_by\": null, \"updated_ip\": null}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:52:16.259'),
('a8f6272a-4d41-4b44-bef3-be55bba6c321', 'fiscal_year', '1628eb8b-eb9b-479d-b6d6-b3919f05da4d', 'UPDATE', '{\"id\": \"1628eb8b-eb9b-479d-b6d6-b3919f05da4d\", \"name\": \"t\", \"end_date\": \"2025-03-05T16:00:00.000Z\", \"is_active\": true, \"is_closed\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:52:16.243Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"start_date\": \"2025-03-05T16:00:00.000Z\", \"updated_at\": \"2025-03-28T13:52:16.243Z\", \"updated_by\": null, \"updated_ip\": null}', '{\"id\": \"1628eb8b-eb9b-479d-b6d6-b3919f05da4d\", \"name\": \"tasfasfa\", \"end_date\": \"2025-03-05T16:00:00.000Z\", \"is_active\": true, \"is_closed\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:52:16.243Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"start_date\": \"2025-03-05T16:00:00.000Z\", \"updated_at\": \"2025-03-28T13:52:23.796Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:52:23.803'),
('ac151dda-5bbd-48ea-adbf-c4151154909b', 'fiscal_year', '1628eb8b-eb9b-479d-b6d6-b3919f05da4d', 'DELETE', '{\"id\": \"1628eb8b-eb9b-479d-b6d6-b3919f05da4d\", \"name\": \"tasfasfa\", \"end_date\": \"2025-03-05T16:00:00.000Z\", \"is_active\": true, \"is_closed\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:52:16.243Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"start_date\": \"2025-03-05T16:00:00.000Z\", \"updated_at\": \"2025-03-28T13:52:23.796Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null}', '{}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:52:29.745'),
('80d36674-f060-47ab-aba2-e61da2e44b2e', 'fiscal_year', 'b7aa842c-8591-49dd-b696-0c27de4b1422', 'DELETE', '{\"id\": \"b7aa842c-8591-49dd-b696-0c27de4b1422\", \"name\": \"test\", \"end_date\": \"2025-03-19T16:00:00.000Z\", \"is_active\": true, \"is_closed\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:38:11.316Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"start_date\": \"2025-02-28T16:00:00.000Z\", \"updated_at\": \"2025-03-28T13:38:11.316Z\", \"updated_by\": null, \"updated_ip\": null}', '{}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 13:53:18.913'),
('2cb6e114-6bd4-4c5e-8805-d116938d18b7', 'voucher', '371170b4-c0ec-434e-9724-4fb6db5830dc', 'CREATE', '{}', '{\"id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"posted\": false, \"status\": \"PENDING\", \"posted_by\": null, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:17:27.443Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_no\": \"JV-fiscal year 2025-0001\", \"description\": \"34rgdfs\", \"posted_date\": null, \"total_debit\": 2000.0, \"reference_no\": \"123456\", \"total_credit\": 2000.0, \"voucher_date\": \"2025-03-28T14:16:34.700Z\", \"fiscal_year_id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"voucher_details\": [{\"id\": \"004afc45-cdca-4c27-8399-6fe456a1060d\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:17:27.443Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 2000.0, \"reference_no\": null, \"credit_amount\": 0.0, \"cost_center_id\": null}, {\"id\": \"340b0bc8-91c2-4008-b11d-3677d0326f25\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:17:27.443Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 0.0, \"reference_no\": null, \"credit_amount\": 2000.0, \"cost_center_id\": null}], \"voucher_type_id\": \"858e0139-46d6-4158-b64e-18c36129ed88\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 14:17:27.461');
INSERT INTO `audit_logs` (`id`, `table_name`, `record_id`, `action`, `previous_data`, `new_data`, `changed_by`, `timestamp`) VALUES
('b3a7fb32-5f7a-44e9-88da-2178447964cf', 'voucher', '371170b4-c0ec-434e-9724-4fb6db5830dc', 'UPDATE', '{\"id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"posted\": false, \"status\": \"PENDING\", \"posted_by\": null, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:17:27.443Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_no\": \"JV-fiscal year 2025-0001\", \"description\": \"34rgdfs\", \"posted_date\": null, \"total_debit\": 2000.0, \"reference_no\": \"123456\", \"total_credit\": 2000.0, \"voucher_date\": \"2025-03-28T14:16:34.700Z\", \"fiscal_year_id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"voucher_details\": [{\"id\": \"004afc45-cdca-4c27-8399-6fe456a1060d\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:17:27.443Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 2000.0, \"reference_no\": null, \"credit_amount\": 0.0, \"cost_center_id\": null}, {\"id\": \"340b0bc8-91c2-4008-b11d-3677d0326f25\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:17:27.443Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 0.0, \"reference_no\": null, \"credit_amount\": 2000.0, \"cost_center_id\": null}], \"voucher_type_id\": \"858e0139-46d6-4158-b64e-18c36129ed88\"}', '{\"id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"posted\": false, \"status\": \"PENDING\", \"posted_by\": null, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:24:16.697Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_no\": \"JV-fiscal year 2025-0001\", \"description\": \"testing\", \"posted_date\": null, \"total_debit\": 3000.0, \"reference_no\": \"test voucher\", \"total_credit\": 3000.0, \"voucher_date\": \"2025-03-28T14:16:34.700Z\", \"fiscal_year_id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"voucher_details\": [{\"id\": \"004afc45-cdca-4c27-8399-6fe456a1060d\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:24:16.697Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 3000.0, \"reference_no\": null, \"credit_amount\": 0.0, \"cost_center_id\": null}, {\"id\": \"340b0bc8-91c2-4008-b11d-3677d0326f25\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:24:16.697Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 0.0, \"reference_no\": null, \"credit_amount\": 3000.0, \"cost_center_id\": null}], \"voucher_type_id\": \"858e0139-46d6-4158-b64e-18c36129ed88\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 14:24:16.723'),
('7d36594e-cfe7-4318-b710-09e34885f945', 'voucher', '371170b4-c0ec-434e-9724-4fb6db5830dc', 'UPDATE', '{\"id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"posted\": false, \"status\": \"PENDING\", \"posted_by\": null, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:24:16.697Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_no\": \"JV-fiscal year 2025-0001\", \"description\": \"testing\", \"posted_date\": null, \"total_debit\": 3000.0, \"reference_no\": \"test voucher\", \"total_credit\": 3000.0, \"voucher_date\": \"2025-03-28T14:16:34.700Z\", \"fiscal_year_id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"voucher_details\": [{\"id\": \"004afc45-cdca-4c27-8399-6fe456a1060d\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:24:16.697Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 3000.0, \"reference_no\": null, \"credit_amount\": 0.0, \"cost_center_id\": null}, {\"id\": \"340b0bc8-91c2-4008-b11d-3677d0326f25\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:24:16.697Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 0.0, \"reference_no\": null, \"credit_amount\": 3000.0, \"cost_center_id\": null}], \"voucher_type_id\": \"858e0139-46d6-4158-b64e-18c36129ed88\"}', '{\"id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"posted\": false, \"status\": \"PENDING\", \"posted_by\": null, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:29:05.481Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_no\": \"JV-fiscal year 2025-0001\", \"description\": \"testing\", \"posted_date\": null, \"total_debit\": 4000.0, \"reference_no\": \"test voucher\", \"total_credit\": 4000.0, \"voucher_date\": \"2025-03-27T16:00:00.000Z\", \"fiscal_year_id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"voucher_details\": [{\"id\": \"004afc45-cdca-4c27-8399-6fe456a1060d\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:29:05.481Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 4000.0, \"reference_no\": null, \"credit_amount\": 0.0, \"cost_center_id\": null}, {\"id\": \"340b0bc8-91c2-4008-b11d-3677d0326f25\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:29:05.481Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 0.0, \"reference_no\": null, \"credit_amount\": 4000.0, \"cost_center_id\": null}], \"voucher_type_id\": \"858e0139-46d6-4158-b64e-18c36129ed88\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 14:29:05.503'),
('67197d9c-081e-4574-9f91-47dbf9f353b0', 'voucher', '371170b4-c0ec-434e-9724-4fb6db5830dc', 'POST', '{\"id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"posted\": false, \"status\": \"PENDING\", \"posted_by\": null, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:29:05.481Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_no\": \"JV-fiscal year 2025-0001\", \"description\": \"testing\", \"fiscal_year\": {\"id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"name\": \"fiscal year 2025\", \"end_date\": \"2025-12-30T16:00:00.000Z\", \"is_active\": true, \"is_closed\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:37:53.025Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"start_date\": \"2024-12-31T16:00:00.000Z\", \"updated_at\": \"2025-03-28T13:37:53.025Z\", \"updated_by\": null, \"updated_ip\": null}, \"posted_date\": null, \"total_debit\": 4000.0, \"reference_no\": \"test voucher\", \"total_credit\": 4000.0, \"voucher_date\": \"2025-03-27T16:00:00.000Z\", \"fiscal_year_id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"voucher_details\": [{\"id\": \"004afc45-cdca-4c27-8399-6fe456a1060d\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:29:05.481Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 4000.0, \"reference_no\": null, \"credit_amount\": 0.0, \"cost_center_id\": null}, {\"id\": \"340b0bc8-91c2-4008-b11d-3677d0326f25\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:29:05.481Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 0.0, \"reference_no\": null, \"credit_amount\": 4000.0, \"cost_center_id\": null}], \"voucher_type_id\": \"858e0139-46d6-4158-b64e-18c36129ed88\"}', '{\"id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"posted\": true, \"status\": \"APPROVED\", \"posted_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:39:08.755Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_no\": \"JV-fiscal year 2025-0001\", \"description\": \"testing\", \"posted_date\": \"2025-03-28T14:39:08.753Z\", \"total_debit\": 4000.0, \"reference_no\": \"test voucher\", \"total_credit\": 4000.0, \"voucher_date\": \"2025-03-27T16:00:00.000Z\", \"fiscal_year_id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"voucher_details\": [{\"id\": \"004afc45-cdca-4c27-8399-6fe456a1060d\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:29:05.481Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 4000.0, \"reference_no\": null, \"credit_amount\": 0.0, \"cost_center_id\": null}, {\"id\": \"340b0bc8-91c2-4008-b11d-3677d0326f25\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T14:17:27.443Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T14:29:05.481Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_id\": \"371170b4-c0ec-434e-9724-4fb6db5830dc\", \"description\": \"\", \"debit_amount\": 0.0, \"reference_no\": null, \"credit_amount\": 4000.0, \"cost_center_id\": null}], \"voucher_type_id\": \"858e0139-46d6-4158-b64e-18c36129ed88\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 14:39:08.775'),
('ee91fe6c-8b6e-4bda-9aac-e0a355863623', 'voucher_type', 'f656d73a-6ac6-46f6-a421-61fac9d2a165', 'UPDATE', '{\"id\": \"f656d73a-6ac6-46f6-a421-61fac9d2a165\", \"code\": \"CONV\", \"name\": \"Contra Voucher\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:32:53.805Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T13:32:53.805Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": null}', '{\"id\": \"f656d73a-6ac6-46f6-a421-61fac9d2a165\", \"code\": \"CNV\", \"name\": \"Contra Voucher\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:32:53.805Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T15:01:54.359Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"description\": null}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 15:01:54.363'),
('5e12cae9-2e37-47a6-b1c7-f0b4a11afa55', 'voucher_type', '344e4d6b-0d35-417d-8a05-07ac2af20c9a', 'CREATE', '{}', '{\"id\": \"344e4d6b-0d35-417d-8a05-07ac2af20c9a\", \"code\": \"BV\", \"name\": \"Bank Payment\", \"is_active\": true, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T15:02:08.731Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T15:02:08.731Z\", \"updated_by\": null, \"updated_ip\": null, \"description\": \"\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 15:02:08.748'),
('c93bc666-1999-44f7-9473-862be0f518ec', 'voucher', 'd13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f', 'CREATE', '{}', '{\"id\": \"d13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f\", \"posted\": false, \"status\": \"PENDING\", \"posted_by\": null, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T15:29:43.440Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T15:29:43.440Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_no\": \"JV-fiscal year 2025-0002\", \"description\": null, \"posted_date\": null, \"total_debit\": 2.0, \"reference_no\": null, \"total_credit\": 2.0, \"voucher_date\": \"2025-03-28T15:28:07.800Z\", \"fiscal_year_id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"voucher_details\": [{\"id\": \"a67d9217-a4ad-452c-84a7-6a64e5e1c4c3\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T15:29:43.440Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T15:29:43.440Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_id\": \"d13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f\", \"description\": \"\", \"debit_amount\": 2.0, \"reference_no\": null, \"credit_amount\": 0.0, \"cost_center_id\": null}, {\"id\": \"f8c66390-fc66-471a-a216-4cc8089f142b\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T15:29:43.440Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T15:29:43.440Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_id\": \"d13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f\", \"description\": \"\", \"debit_amount\": 0.0, \"reference_no\": null, \"credit_amount\": 2.0, \"cost_center_id\": null}], \"voucher_type_id\": \"858e0139-46d6-4158-b64e-18c36129ed88\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 15:29:43.446'),
('92c45253-ff1b-41b8-aefb-4bcb7bd54983', 'voucher', 'd13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f', 'POST', '{\"id\": \"d13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f\", \"posted\": false, \"status\": \"PENDING\", \"posted_by\": null, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T15:29:43.440Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T15:29:43.440Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_no\": \"JV-fiscal year 2025-0002\", \"description\": null, \"fiscal_year\": {\"id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"name\": \"fiscal year 2025\", \"end_date\": \"2025-12-30T16:00:00.000Z\", \"is_active\": true, \"is_closed\": false, \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T13:37:53.025Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"start_date\": \"2024-12-31T16:00:00.000Z\", \"updated_at\": \"2025-03-28T13:37:53.025Z\", \"updated_by\": null, \"updated_ip\": null}, \"posted_date\": null, \"total_debit\": 2.0, \"reference_no\": null, \"total_credit\": 2.0, \"voucher_date\": \"2025-03-28T15:28:07.800Z\", \"fiscal_year_id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"voucher_details\": [{\"id\": \"a67d9217-a4ad-452c-84a7-6a64e5e1c4c3\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T15:29:43.440Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T15:29:43.440Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_id\": \"d13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f\", \"description\": \"\", \"debit_amount\": 2.0, \"reference_no\": null, \"credit_amount\": 0.0, \"cost_center_id\": null}, {\"id\": \"f8c66390-fc66-471a-a216-4cc8089f142b\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T15:29:43.440Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T15:29:43.440Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_id\": \"d13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f\", \"description\": \"\", \"debit_amount\": 0.0, \"reference_no\": null, \"credit_amount\": 2.0, \"cost_center_id\": null}], \"voucher_type_id\": \"858e0139-46d6-4158-b64e-18c36129ed88\"}', '{\"id\": \"d13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f\", \"posted\": true, \"status\": \"APPROVED\", \"posted_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T15:29:43.440Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T15:29:53.094Z\", \"updated_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"updated_ip\": null, \"voucher_no\": \"JV-fiscal year 2025-0002\", \"description\": null, \"posted_date\": \"2025-03-28T15:29:53.092Z\", \"total_debit\": 2.0, \"reference_no\": null, \"total_credit\": 2.0, \"voucher_date\": \"2025-03-28T15:28:07.800Z\", \"fiscal_year_id\": \"3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b\", \"voucher_details\": [{\"id\": \"a67d9217-a4ad-452c-84a7-6a64e5e1c4c3\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T15:29:43.440Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T15:29:43.440Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_id\": \"d13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f\", \"description\": \"\", \"debit_amount\": 2.0, \"reference_no\": null, \"credit_amount\": 0.0, \"cost_center_id\": null}, {\"id\": \"f8c66390-fc66-471a-a216-4cc8089f142b\", \"ledger_id\": \"877b9dc7-6d2b-467c-883e-12f675afac22\", \"company_id\": \"fff9f990-2e3e-49f1-bc24-8f0fbe405f80\", \"created_at\": \"2025-03-28T15:29:43.440Z\", \"created_by\": \"6f587b32-7016-4e98-a447-cfb554adcb0e\", \"created_ip\": null, \"updated_at\": \"2025-03-28T15:29:43.440Z\", \"updated_by\": null, \"updated_ip\": null, \"voucher_id\": \"d13c5a0f-aee5-4bf5-a0b2-b6d2d2009d8f\", \"description\": \"\", \"debit_amount\": 0.0, \"reference_no\": null, \"credit_amount\": 2.0, \"cost_center_id\": null}], \"voucher_type_id\": \"858e0139-46d6-4158-b64e-18c36129ed88\"}', '6f587b32-7016-4e98-a447-cfb554adcb0e', '2025-03-28 15:29:53.111');

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

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

CREATE TABLE IF NOT EXISTS `banks` (
  `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,
  `branch_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `routing_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `swift_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 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,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `website` 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 `banks_id_key` (`id`),
  UNIQUE KEY `banks_routing_no_key` (`routing_no`),
  UNIQUE KEY `banks_code_key` (`code`),
  KEY `banks_created_by_idx` (`created_by`),
  KEY `banks_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `banks`
--

INSERT INTO `banks` (`id`, `name`, `code`, `branch_name`, `routing_no`, `swift_code`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `website`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('36e6516a-ba0a-49d1-ac05-b391c82ae9fc', 'City Bank', 'CB-001', 'Banani', '123467', NULL, 'Banani, Kamal ataturk', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, '2025-03-14 03:17:31.737', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 03:17:51.069', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4a0c8dfe-9647-4b7f-a2bb-369b6f7a32ad', 'EBL', 'E-001', 'Gulshan', '56789', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, '2025-03-14 03:16:38.027', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 03:16:38.027', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `collection_targets`
--

CREATE TABLE IF NOT EXISTS `collection_targets` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `order_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` datetime(3) NOT NULL,
  `end_date` datetime(3) NOT NULL,
  `target_amount` decimal(20,2) NOT NULL,
  `collected_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,
  `target_percentage` decimal(20,2) NOT NULL DEFAULT '0.00',
  UNIQUE KEY `collection_targets_id_key` (`id`),
  KEY `collection_targets_order_id_idx` (`order_id`),
  KEY `collection_targets_created_by_idx` (`created_by`),
  KEY `collection_targets_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `collection_targets`
--

INSERT INTO `collection_targets` (`id`, `order_id`, `start_date`, `end_date`, `target_amount`, `collected_amount`, `remarks`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `target_percentage`) VALUES
('0a5e94a2-90e3-48e6-8317-34092c6fe3c4', '998e79b1-3639-4c08-bc26-487d2523898c', '2025-03-18 00:00:00.000', '2025-03-20 00:00:00.000', 100000.00, 0.00, '', '2025-03-17 11:09:01.338', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 11:09:01.338', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('0fba42c5-70bc-4baf-947b-7c8db4e98580', 'ff371850-d007-431b-b3aa-9107ef37f1c9', '2025-03-17 00:00:00.000', '2025-03-17 00:00:00.000', 243.00, 0.00, '', '2025-03-17 01:40:43.560', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 01:40:43.560', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('239ecb15-6c15-4e52-a644-99bfa8608e29', 'ad0eba4c-b8b0-4b7d-ab48-fcc6566c6eab', '2025-03-21 00:00:00.000', '2025-03-23 00:00:00.000', 15.00, 0.00, '', '2025-03-17 19:48:30.014', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:48:30.014', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('3b1748a8-82df-4398-9025-623f4a94fcba', '49a2d414-344a-4cfb-ab7f-6f1866039d2e', '2025-03-18 00:00:00.000', '2025-03-20 00:00:00.000', 46.00, 0.00, '', '2025-03-17 19:43:02.589', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:43:02.589', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('3ef9e1e0-4d2b-4926-b533-81f7ecb83e2c', 'ad0eba4c-b8b0-4b7d-ab48-fcc6566c6eab', '2025-03-19 00:00:00.000', '2025-03-20 00:00:00.000', 40.00, 0.00, '', '2025-03-17 19:48:29.994', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:48:29.994', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('4b1427f2-f324-43ae-89b4-72f457be5fec', 'd2f6b77d-f38f-4929-8827-03be8d98617e', '2025-03-24 00:00:00.000', '2025-03-30 00:00:00.000', 7500.00, 0.00, 'second product target', '2025-03-17 16:48:50.393', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:48:50.393', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('5c481c63-2387-4c32-a468-9f04d7394375', '10a245ca-6136-4e26-be6e-615e4ec2112a', '2025-03-17 00:00:00.000', '2025-03-19 00:00:00.000', 1234.00, 0.00, 'test', '2025-03-17 01:33:38.963', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 01:33:38.963', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('66cbce5e-2d21-4e5b-937a-9ef2e947ea89', '38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee', '2025-03-19 00:00:00.000', '2025-03-19 00:00:00.000', 750.00, 0.00, 'First payment', '2025-03-18 17:18:57.442', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:18:57.442', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('89e3a2e1-584a-4165-88f9-3a74b6fd3c71', 'd2f6b77d-f38f-4929-8827-03be8d98617e', '2025-03-18 00:00:00.000', '2025-03-22 00:00:00.000', 20000.00, 0.00, 'first product target', '2025-03-17 16:48:50.376', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:48:50.376', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('a678c51e-52a9-4dc9-9d5f-15d9862fdfc7', '6711b65b-1a9c-48c7-9531-503c92294077', '2025-03-18 00:00:00.000', '2025-03-18 00:00:00.000', 32.00, 0.00, '', '2025-03-17 19:43:57.386', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:43:57.386', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('c001de78-3a0c-4352-8c29-fb92b71291ae', '10a245ca-6136-4e26-be6e-615e4ec2112a', '2025-03-20 00:00:00.000', '2025-03-21 00:00:00.000', 8746.00, 0.00, 'asad', '2025-03-17 01:33:38.950', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 01:33:38.950', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('c26c753b-5175-4c1d-88c6-cd91ca8698d2', '38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee', '2025-04-01 00:00:00.000', '2025-04-30 00:00:00.000', 100000.00, 0.00, 'Second amount', '2025-03-18 17:18:57.479', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:18:57.479', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('eb9ff3b6-d7b2-43b7-abfd-97534f0a685e', '01cbc716-79e8-418a-ac04-e81bf329d006', '2025-03-23 00:00:00.000', '2025-03-31 00:00:00.000', 18.00, 0.00, '', '2025-03-22 15:21:18.145', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 15:21:18.145', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 20.00);

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

--
-- Table structure for table `companies`
--

CREATE TABLE IF NOT EXISTS `companies` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_short_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `registration_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tax_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `postal_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `website` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `industry` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `number_of_employees` int DEFAULT NULL,
  `annual_revenue` decimal(20,2) DEFAULT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_active` tinyint(1) 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,
  `logo_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `companies_id_key` (`id`),
  KEY `companies_created_by_idx` (`created_by`),
  KEY `companies_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `companies`
--

INSERT INTO `companies` (`id`, `company_name`, `company_short_name`, `company_code`, `registration_number`, `tax_id`, `address`, `city`, `state`, `country`, `postal_code`, `phone`, `email`, `website`, `industry`, `number_of_employees`, `annual_revenue`, `description`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `logo_url`) VALUES
('fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'carven agro', 'carven', 'ca', 'ca reg', 'ca tax', 'Address:House #3 Road no#20,Gulshan-1,Dhaka-1212, Bangladesh', 'dhaka', 'null', 'null', 'null', '09606670888', 'carvenagro@gmail.com', 'https://carvenagrolimited.com', 'null', NULL, NULL, 'null', 1, '2025-02-23 07:09:14.332', '18e7ab49-9640-49b5-9f89-9365a1c7fbea', '::1', '2025-03-08 15:05:54.176', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'uploads/company-logos/carven_1741446354171_1625.jpg');

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

--
-- Table structure for table `company_additional_info`
--

CREATE TABLE IF NOT EXISTS `company_additional_info` (
  `id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `short_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `facebook_link` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `twitter_link` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `instagram_link` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `linkedin_link` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `youtube_link` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `whatsapp_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `google_map_link` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `vision` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `mission` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `company_additional_info_id_key` (`id`),
  KEY `company_additional_info_created_by_idx` (`created_by`),
  KEY `company_additional_info_created_at_idx` (`created_at`),
  KEY `company_additional_info_company_id_fkey` (`company_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_additional_info`
--

INSERT INTO `company_additional_info` (`id`, `company_id`, `short_description`, `facebook_link`, `twitter_link`, `instagram_link`, `linkedin_link`, `youtube_link`, `whatsapp_number`, `google_map_link`, `vision`, `mission`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`) VALUES
('6b1b88dd-da92-4b0c-94a6-5e2759961da8', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'dsfa', 'fa', 'tw', 'ins', 'li', 'yt', 'wa', 'gm', 'sfsdfa', '23432', '2025-02-23 07:09:14.334', '18e7ab49-9640-49b5-9f89-9365a1c7fbea', '::1', '2025-03-08 15:05:54.176', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1');

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

--
-- Table structure for table `crm_costing_heads`
--

CREATE TABLE IF NOT EXISTS `crm_costing_heads` (
  `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,
  `rate` decimal(20,2) NOT NULL,
  `rate_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `pay_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `duration` int DEFAULT NULL,
  `account_ledger_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 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 `crm_costing_heads_id_key` (`id`),
  UNIQUE KEY `crm_costing_heads_code_key` (`code`),
  KEY `crm_costing_heads_account_ledger_id_idx` (`account_ledger_id`),
  KEY `crm_costing_heads_created_by_idx` (`created_by`),
  KEY `crm_costing_heads_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `crm_costing_heads`
--

INSERT INTO `crm_costing_heads` (`id`, `name`, `code`, `rate`, `rate_type`, `pay_type`, `duration`, `account_ledger_id`, `description`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('6cad1630-78b6-4dc6-8904-38484eae791e', 'Travel cost', 'tc', 150.00, 'FIXED', 'DAILY', NULL, '877b9dc7-6d2b-467c-883e-12f675afac22', 'test', 1, '2025-03-14 18:39:16.939', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-14 18:39:25.729', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('818a0e7f-7ca4-4d4b-b0b7-50ac44bf77be', 'Accommodation Cost', 'acccost', 2000.00, 'FIXED', 'DAILY', 1, '877b9dc7-6d2b-467c-883e-12f675afac22', NULL, 1, '2025-03-18 16:41:21.137', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 16:41:21.137', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `customers`
--

CREATE TABLE IF NOT EXISTS `customers` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `organization_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `division` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `district` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `thana` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_person_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `contact_person_phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `contact_person_email` 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,
  `code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `customers_id_key` (`id`),
  KEY `customers_created_by_idx` (`created_by`),
  KEY `customers_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `customers`
--

INSERT INTO `customers` (`id`, `organization_name`, `address`, `division`, `district`, `thana`, `phone`, `email`, `contact_person_name`, `contact_person_phone`, `contact_person_email`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `code`) VALUES
('2a14d58a-2474-45e5-bc6f-157e6e6cb88a', 'asad\'s co', 'House:09, road:16, nikunja 2, khilkhet, dhaka', 'dhaka', 'dhaka', 'banani', '56789', '', 'Asadullah sarker', '23456', '', 1, '2025-03-15 20:54:18.665', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 20:54:18.665', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4', 'kayser ahmed', 'banani', 'wert', 'dhaka', 'banani', '0987654', '', 'kayser ahmed', '0987654', '', 1, '2025-03-18 17:08:06.681', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-22 16:21:04.121', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'k0001'),
('6e689ac9-c0d8-477f-88dc-798610a7660e', 'test', 'test', 'test', 'test', 'test', 'test', 'test@gmail.com', 'test', '98765', NULL, 1, '2025-03-16 17:03:22.144', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-16 17:03:22.144', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('76c92164-7a24-4f61-8ff0-673a985fdaf7', 'kayser ahmed', 'banani', '', 'dhaka', 'banani', '0987654', '', 'kayser ahmed', '0987654', '', 1, '2025-03-16 16:55:20.057', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-16 16:55:20.057', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL);

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

--
-- Table structure for table `delivery_agents`
--

CREATE TABLE IF NOT EXISTS `delivery_agents` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `organization_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `division` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `district` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `thana` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_person_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `contact_person_phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `contact_person_email` 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 `delivery_agents_id_key` (`id`),
  KEY `delivery_agents_created_by_idx` (`created_by`),
  KEY `delivery_agents_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `delivery_agents`
--

INSERT INTO `delivery_agents` (`id`, `organization_name`, `address`, `division`, `district`, `thana`, `phone`, `email`, `contact_person_name`, `contact_person_phone`, `contact_person_email`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('68d8a13f-cc72-4f17-9374-8aa507d444e9', 'Pathao banani', 'banani, dhaka', 'dhaka', 'dhaka', 'banani', '6789', '', 'aman', '45678', '', 1, '2025-03-16 05:31:19.956', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:20:38.681', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `demands`
--

CREATE TABLE IF NOT EXISTS `demands` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `demand_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'DM-000001',
  `requisition_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sales_reference` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `expected_date` datetime(3) NOT NULL,
  `delivery_location_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `factory_location_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'DEMAND_CREATED',
  `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,
  UNIQUE KEY `demands_id_key` (`id`),
  UNIQUE KEY `demands_demand_number_key` (`demand_number`),
  KEY `demands_delivery_location_id_idx` (`delivery_location_id`),
  KEY `demands_factory_location_id_idx` (`factory_location_id`),
  KEY `demands_requisition_by_fkey` (`requisition_by`),
  KEY `demands_finishedProductId_fkey` (`finishedProductId`),
  KEY `demands_created_by_idx` (`created_by`),
  KEY `demands_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `demands`
--

INSERT INTO `demands` (`id`, `demand_number`, `requisition_by`, `sales_reference`, `expected_date`, `delivery_location_id`, `factory_location_id`, `status`, `remarks`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `finishedProductId`) VALUES
('1a0ecf96-4b4b-450a-8359-d8ef5648974e', 'DM-000010', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-14 16:00:00.000', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'DEMAND_CREATED', '', '2025-03-14 07:46:01.234', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:46:01.234', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('2722310f-ef85-44ad-83e5-f864c4a8fff0', 'DM-000011', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-13 16:00:00.000', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'MANUFACTURING_COMPLETED', '', '2025-03-14 07:46:48.084', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:48:01.384', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('2d257087-7116-40b8-8826-ef236eee4d26', 'DM-000008', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-13 16:00:00.000', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 'MANUFACTURING_COMPLETED', '', '2025-03-13 17:03:54.976', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-13 17:05:17.158', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('2fa39a8f-b4b5-4fca-a9bd-3b95ada1ca70', 'DM-000002', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-16 16:00:00.000', 'c62883d1-389e-47b9-ba0c-0f431a92484b', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 'MANUFACTURING_COMPLETED', 'adf', '2025-03-07 15:23:48.671', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-13 16:58:53.966', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('3d8fcb33-c389-4ff5-a1ec-146d29ff65f6', 'DM-000009', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-11 16:00:00.000', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'MANUFACTURING_COMPLETED', '', '2025-03-14 04:14:57.383', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:04:54.335', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('605afc27-ffd9-47ce-97a1-b4d545219170', 'DM-000013', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-12 16:00:00.000', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 'MANUFACTURING_COMPLETED', '', '2025-03-15 17:20:50.657', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:22:25.750', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('6d6bd335-95d1-4397-8519-676b1594aaa0', 'DM-000003', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-14 16:00:00.000', 'c62883d1-389e-47b9-ba0c-0f431a92484b', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 'MANUFACTURING_COMPLETED', '', '2025-03-07 19:17:45.819', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:34:09.642', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('724ba491-5b93-4ac9-b5dc-aa1e9e8297ed', 'DM-000005', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-10 16:00:00.000', 'c62883d1-389e-47b9-ba0c-0f431a92484b', 'c62883d1-389e-47b9-ba0c-0f431a92484b', 'MANUFACTURING_COMPLETED', 'sadgds', '2025-03-08 13:10:08.927', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:11:59.669', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('8992326f-4b6c-4758-a2ab-4a98bc316763', 'DM-000012', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-13 16:00:00.000', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 'MANUFACTURING_COMPLETED', '', '2025-03-14 08:20:35.375', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 08:22:48.693', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('b34fa5f3-61b6-4b7f-b387-8ad03de8c60c', 'DM-000001', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-11 16:00:00.000', 'c62883d1-389e-47b9-ba0c-0f431a92484b', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 'DEMAND_CREATED', '123', '2025-03-07 15:18:46.402', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 15:18:46.402', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('e63ef454-b888-40f1-ac41-650db14f9dad', 'DM-000006', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-19 16:00:00.000', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', 'MANUFACTURING_COMPLETED', '', '2025-03-08 17:54:00.015', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 18:03:56.289', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('f8877a5e-395a-48e2-a36b-31b236519a39', 'DM-000004', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-19 16:00:00.000', '62b11e87-352c-40cc-8ee9-9c0a39048f90', '62b11e87-352c-40cc-8ee9-9c0a39048f90', 'MANUFACTURING_COMPLETED', 'asdfgh', '2025-03-07 20:51:05.012', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 08:01:29.454', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL),
('feadf8d6-895e-4068-b70d-a9d29aec34a5', 'DM-000007', '6f587b32-7016-4e98-a447-cfb554adcb0e', '', '2025-03-10 16:00:00.000', 'c62883d1-389e-47b9-ba0c-0f431a92484b', 'c62883d1-389e-47b9-ba0c-0f431a92484b', 'MANUFACTURING_COMPLETED', '', '2025-03-09 19:35:43.999', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-10 13:35:36.260', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL);

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

--
-- Table structure for table `demand_items`
--

CREATE TABLE IF NOT EXISTS `demand_items` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `demand_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,
  `unit_of_measure` 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,
  `manufactured_quantity` decimal(20,2) NOT NULL DEFAULT '0.00',
  UNIQUE KEY `demand_items_id_key` (`id`),
  KEY `demand_items_demand_id_idx` (`demand_id`),
  KEY `demand_items_product_id_idx` (`product_id`),
  KEY `demand_items_created_by_idx` (`created_by`),
  KEY `demand_items_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `demand_items`
--

INSERT INTO `demand_items` (`id`, `demand_id`, `product_id`, `quantity`, `unit_of_measure`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `manufactured_quantity`) VALUES
('03b35415-dca6-4815-94ef-e42f011f4141', '3d8fcb33-c389-4ff5-a1ec-146d29ff65f6', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 2.00, 'pcs', '2025-03-14 04:14:57.383', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 04:15:15.907', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 2.00),
('13c43f3f-4d75-408d-b15f-0abe7c75d5ff', '605afc27-ffd9-47ce-97a1-b4d545219170', '90a2df83-c472-421e-ae89-97092c0c202e', 2.00, 'pcs', '2025-03-15 17:20:50.657', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:21:10.559', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 2.00),
('3e8d39f1-2e2b-4f3e-80b8-e5d6b0ee7275', '1a0ecf96-4b4b-450a-8359-d8ef5648974e', 'ebe4c544-9dd6-4a6d-b790-8556da3c54e3', 3.00, 'box', '2025-03-14 07:46:01.234', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:46:01.234', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('46c95e18-ea93-4925-8658-7e5140341031', 'f8877a5e-395a-48e2-a36b-31b236519a39', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 10.00, 'pcs', '2025-03-07 20:51:05.012', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 20:51:05.012', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('62c6ecd3-55d3-4c16-9f87-e8ce5b347967', '8992326f-4b6c-4758-a2ab-4a98bc316763', '90a2df83-c472-421e-ae89-97092c0c202e', 2.00, 'pcs', '2025-03-14 08:20:35.375', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 08:21:09.786', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 2.00),
('76fe9230-8df2-46a1-925e-862b3f1fa2eb', '2d257087-7116-40b8-8826-ef236eee4d26', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 100.00, 'pcs', '2025-03-13 17:03:54.976', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-13 17:04:21.447', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 100.00),
('a3449b92-54d1-45ae-b8e6-0eae2b025cc2', '724ba491-5b93-4ac9-b5dc-aa1e9e8297ed', 'ebe4c544-9dd6-4a6d-b790-8556da3c54e3', 2.00, 'box', '2025-03-08 13:10:08.927', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:10:08.927', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('b154117b-367e-4c1a-8015-17917fe298e3', 'e63ef454-b888-40f1-ac41-650db14f9dad', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 9000.00, 'pcs', '2025-03-08 17:54:00.015', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 17:54:00.015', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00),
('c762451a-451d-4848-8be3-325e204d9fcc', 'feadf8d6-895e-4068-b70d-a9d29aec34a5', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 200.00, 'pcs', '2025-03-09 19:35:43.999', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-09 20:08:54.369', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 200.00),
('d8dc5310-f27b-4816-bbb0-81bf3bc0cfb2', '2722310f-ef85-44ad-83e5-f864c4a8fff0', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 5.00, 'pcs', '2025-03-14 07:46:48.084', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:47:22.670', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 5.00),
('eced141e-9be3-41c8-9663-21c76bdecf1d', 'f8877a5e-395a-48e2-a36b-31b236519a39', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', 20.00, 'pcs', '2025-03-07 20:51:05.012', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 20:51:05.012', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 0.00);

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

--
-- Table structure for table `departments`
--

CREATE TABLE IF NOT EXISTS `departments` (
  `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,
  `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 `departments_id_key` (`id`),
  KEY `departments_created_by_idx` (`created_by`),
  KEY `departments_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `departments`
--

INSERT INTO `departments` (`id`, `name`, `description`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('1470cd80-625a-416d-b3ab-0565e376c06f', 'Factory', NULL, 1, '2025-03-18 06:19:50.530', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:19:50.530', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4ed9892c-29ff-4296-9883-8a089376e443', 'Warehouse', NULL, 1, '2025-03-18 06:20:01.316', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:20:01.316', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('912030c7-15af-4f49-b4d1-58dc880cebaa', 'Sales', NULL, 1, '2025-03-18 06:19:45.243', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:19:45.243', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9911fe1f-4b18-46ff-8330-aa0e5aa9371f', 'scm', 'scm', 1, '2025-03-06 04:25:48.178', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-06 04:25:48.178', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('daa882e3-7826-4b45-b1fb-08bdd391721e', 'HR', NULL, 1, '2025-03-08 16:47:18.069', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 16:47:18.069', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e9d8d578-1d09-46ca-a4dc-27906e75a3dd', 'sw mw', 'sw mw', 1, '2025-03-06 04:25:02.322', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-06 04:25:02.322', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `designations`
--

CREATE TABLE IF NOT EXISTS `designations` (
  `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,
  `department_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 `designations_id_key` (`id`),
  KEY `designations_department_id_idx` (`department_id`),
  KEY `designations_created_by_idx` (`created_by`),
  KEY `designations_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `designations`
--

INSERT INTO `designations` (`id`, `name`, `description`, `department_id`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('2fdd7a60-18e6-4511-ae6a-13084a2febd3', 'manager', 'manager', '9911fe1f-4b18-46ff-8330-aa0e5aa9371f', 1, '2025-03-06 04:27:42.428', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-06 04:28:18.183', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('3db0dda1-2c2b-4536-a8d7-fdac235b446f', 'Executive', NULL, 'daa882e3-7826-4b45-b1fb-08bdd391721e', 1, '2025-03-08 16:47:58.679', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 16:47:58.679', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4ba8003d-4983-45aa-9b3b-5f7b59a64ea8', 'Executive', NULL, '912030c7-15af-4f49-b4d1-58dc880cebaa', 1, '2025-03-18 06:21:27.148', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:21:27.148', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5adcb2e8-d8ed-4301-8a0e-abb632515a1b', 'Manager', NULL, '1470cd80-625a-416d-b3ab-0565e376c06f', 1, '2025-03-18 06:20:38.099', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:20:38.099', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('648f3076-daf5-4711-9270-0298fdf98d50', 'Manager', NULL, 'daa882e3-7826-4b45-b1fb-08bdd391721e', 1, '2025-03-18 06:20:19.065', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:20:19.065', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('89363f0f-2bf6-48de-9051-f3e1081419bc', 'Manager', NULL, '912030c7-15af-4f49-b4d1-58dc880cebaa', 1, '2025-03-18 06:21:35.486', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:21:35.486', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ad93725a-af51-4642-bf77-27acb0c762f1', 'deputy lead eng', 'dle', 'e9d8d578-1d09-46ca-a4dc-27906e75a3dd', 1, '2025-03-06 04:27:10.612', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-06 04:27:10.612', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('dae967c7-f398-4370-8378-aa6fe8fd4e4e', 'Executive', NULL, '1470cd80-625a-416d-b3ab-0565e376c06f', 1, '2025-03-18 06:20:27.655', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:20:27.655', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e0b27f96-21c6-4357-afe1-0dde5a54aa56', 'test', 'test', 'e9d8d578-1d09-46ca-a4dc-27906e75a3dd', 1, '2025-03-06 04:27:29.211', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-06 04:27:29.211', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('e223ff97-8594-4b6b-b7f1-5295d9fc251a', 'Manager', NULL, '4ed9892c-29ff-4296-9883-8a089376e443', 1, '2025-03-18 06:20:58.468', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:20:58.468', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f5156a74-5bf6-4b3e-8413-9c669d8c1469', 'Executive', NULL, '4ed9892c-29ff-4296-9883-8a089376e443', 1, '2025-03-18 06:20:48.607', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:20:48.607', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('fa7c6266-fe0a-4bdb-b224-81a2bd25d0dd', 'Executive', NULL, '9911fe1f-4b18-46ff-8330-aa0e5aa9371f', 1, '2025-03-08 16:47:44.867', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 16:47:44.867', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `employees`
--

CREATE TABLE IF NOT EXISTS `employees` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `employee_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `person_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `joining_date` datetime(3) NOT NULL,
  `confirmation_date` datetime(3) DEFAULT NULL,
  `resignation_date` datetime(3) DEFAULT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `supervisor_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `education_level` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `skills` 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,
  `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,
  `shift_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mfs_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `routing_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `wallet_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `department_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `designation_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `office_location_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `employees_id_key` (`id`),
  UNIQUE KEY `employees_employee_id_key` (`employee_id`),
  UNIQUE KEY `employees_person_id_key` (`person_id`),
  KEY `employees_supervisor_id_fkey` (`supervisor_id`),
  KEY `employees_shift_id_idx` (`shift_id`),
  KEY `employees_department_id_idx` (`department_id`),
  KEY `employees_designation_id_idx` (`designation_id`),
  KEY `employees_office_location_id_idx` (`office_location_id`),
  KEY `employees_created_by_idx` (`created_by`),
  KEY `employees_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `employees` (`id`, `employee_id`, `person_id`, `joining_date`, `confirmation_date`, `resignation_date`, `status`, `supervisor_id`, `education_level`, `skills`, `bank_name`, `bank_account`, `bank_branch`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `shift_id`, `email`, `mfs_name`, `phone`, `routing_no`, `wallet_no`, `department_id`, `designation_id`, `office_location_id`) VALUES
('2631c985-e0f3-4b90-8a6f-abe39c243e94', 'EMP005', '07a1d8fc-079c-429f-9141-380b3ebf8a48', '2025-03-18 06:25:28.700', NULL, NULL, 'ACTIVE', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:25:50.584', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:25:50.584', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '81f8f739-8cc0-4787-b54a-b01ce28114b0', 'sm@gmail.com', NULL, '56789', NULL, NULL, '912030c7-15af-4f49-b4d1-58dc880cebaa', '89363f0f-2bf6-48de-9051-f3e1081419bc', '96b244b1-4b79-4f72-a1a5-9cb176b795b3'),
('2a00fb43-48d1-4b44-b20c-d4c38cc2148f', 'EMP008', '4ef273c6-eddf-41fa-8aa0-a6b21d923065', '2025-03-18 06:28:18.500', NULL, NULL, 'ACTIVE', 'dbac0cff-2228-4b42-bbcb-738e8d11e4b2', NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:28:49.545', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:28:49.545', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '81f8f739-8cc0-4787-b54a-b01ce28114b0', 'scme@gmail.com', NULL, '0987654', NULL, NULL, '9911fe1f-4b18-46ff-8330-aa0e5aa9371f', 'fa7c6266-fe0a-4bdb-b224-81a2bd25d0dd', '96b244b1-4b79-4f72-a1a5-9cb176b795b3'),
('4d5cd466-6559-43e7-89fe-af6183148965', 'EMP009', '51d02109-288b-4e4f-81cb-e142874132bc', '2025-03-18 06:29:11.500', NULL, NULL, 'ACTIVE', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:29:31.176', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:29:31.176', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '81f8f739-8cc0-4787-b54a-b01ce28114b0', 'hm@gmail.com', NULL, '987654', NULL, NULL, 'daa882e3-7826-4b45-b1fb-08bdd391721e', '648f3076-daf5-4711-9270-0298fdf98d50', '96b244b1-4b79-4f72-a1a5-9cb176b795b3'),
('5324ebd1-6145-4146-aead-f955206f6518', 'EMP006', '356d1342-2467-43f9-a25b-525538b872b3', '2025-03-18 06:26:08.600', NULL, NULL, 'ACTIVE', '2631c985-e0f3-4b90-8a6f-abe39c243e94', NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:26:29.716', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:26:29.716', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '81f8f739-8cc0-4787-b54a-b01ce28114b0', 'se@gmail.com', NULL, '0987654', NULL, NULL, '912030c7-15af-4f49-b4d1-58dc880cebaa', '4ba8003d-4983-45aa-9b3b-5f7b59a64ea8', '96b244b1-4b79-4f72-a1a5-9cb176b795b3'),
('6500eda9-4a21-449f-8c6a-e04adffd339f', 'EMP001', '233c219a-af19-456a-85bd-0cb9f7681420', '2025-03-18 06:21:59.300', NULL, NULL, 'ACTIVE', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:22:49.400', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:22:49.400', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '81f8f739-8cc0-4787-b54a-b01ce28114b0', 'fm@gmail.com', NULL, '098765', NULL, NULL, '1470cd80-625a-416d-b3ab-0565e376c06f', '5adcb2e8-d8ed-4301-8a0e-abb632515a1b', '96b244b1-4b79-4f72-a1a5-9cb176b795b3'),
('6d0a44b6-ca78-4ea6-9a7a-4a4305389528', 'EMP002', '8e97238c-6c93-4de5-bf21-fffcae4ae880', '2025-03-18 06:23:22.100', NULL, NULL, 'ACTIVE', '6500eda9-4a21-449f-8c6a-e04adffd339f', NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:23:45.031', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:23:45.031', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '81f8f739-8cc0-4787-b54a-b01ce28114b0', 'fe@gmail.com', NULL, '098765', NULL, NULL, '1470cd80-625a-416d-b3ab-0565e376c06f', 'dae967c7-f398-4370-8378-aa6fe8fd4e4e', '96b244b1-4b79-4f72-a1a5-9cb176b795b3'),
('86401c64-7fdb-4974-8137-a4ae39c277e8', 'EMP010', 'fc2fb295-1bd0-4214-9734-26bcb1a8e6a8', '2025-03-18 06:29:47.600', NULL, NULL, 'ACTIVE', '4d5cd466-6559-43e7-89fe-af6183148965', NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:30:13.671', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:30:13.671', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '81f8f739-8cc0-4787-b54a-b01ce28114b0', 'hre@gmail.com', NULL, '56789', NULL, NULL, 'daa882e3-7826-4b45-b1fb-08bdd391721e', '3db0dda1-2c2b-4536-a8d7-fdac235b446f', '96b244b1-4b79-4f72-a1a5-9cb176b795b3'),
('8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'EMP-6404', '5a4ad766-bc46-47d1-9d53-dfa7bcd979c6', '2025-03-05 15:43:33.379', NULL, NULL, 'ACTIVE', 'acae5569-45d3-483c-bef5-288bdb3f48a1', NULL, NULL, NULL, NULL, NULL, '2025-03-05 15:43:33.398', 'e817e0e8-a0c8-4cf4-96fe-52f1f332d97f', '::1', '2025-03-06 09:26:57.635', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '81f8f739-8cc0-4787-b54a-b01ce28114b0', 'asad.dev08@gmail.com', 'bkash', '1853183780', '1234', '098765432', 'e9d8d578-1d09-46ca-a4dc-27906e75a3dd', 'ad93725a-af51-4642-bf77-27acb0c762f1', '96b244b1-4b79-4f72-a1a5-9cb176b795b3'),
('acae5569-45d3-483c-bef5-288bdb3f48a1', 'EMP-4013', 'cfe7cd6c-88f6-4d3e-8f1e-da102e6ad1f0', '2025-03-05 15:43:38.403', NULL, NULL, 'ACTIVE', NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-05 15:43:38.423', 'e817e0e8-a0c8-4cf4-96fe-52f1f332d97f', '::1', '2025-03-05 15:43:38.423', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
('cd16cf2b-9264-4d71-b56e-70894c236521', 'EMP004', '802f722a-bd4d-41bb-b4e6-1f7fff596ced', '2025-03-18 06:24:51.200', NULL, NULL, 'ACTIVE', 'f62989ee-f270-4c50-ac63-57b1f4799ec8', NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:25:11.929', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:25:11.929', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '81f8f739-8cc0-4787-b54a-b01ce28114b0', 'we@gmail.com', NULL, '098765', NULL, NULL, '4ed9892c-29ff-4296-9883-8a089376e443', 'f5156a74-5bf6-4b3e-8413-9c669d8c1469', '96b244b1-4b79-4f72-a1a5-9cb176b795b3'),
('dbac0cff-2228-4b42-bbcb-738e8d11e4b2', 'EMP007', 'cec9c0a9-7359-42f7-b04d-f186f57dc168', '2025-03-18 06:27:30.800', NULL, NULL, 'ACTIVE', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:27:55.952', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:27:55.952', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '81f8f739-8cc0-4787-b54a-b01ce28114b0', 'scmm@gmail.com', NULL, '098765', NULL, NULL, '9911fe1f-4b18-46ff-8330-aa0e5aa9371f', '2fdd7a60-18e6-4511-ae6a-13084a2febd3', '96b244b1-4b79-4f72-a1a5-9cb176b795b3'),
('f62989ee-f270-4c50-ac63-57b1f4799ec8', 'EMP003', '9c98d242-4d68-4a20-8da8-fa4615b01067', '2025-03-18 06:24:13.900', NULL, NULL, 'ACTIVE', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:24:37.938', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:24:37.938', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '81f8f739-8cc0-4787-b54a-b01ce28114b0', 'wm@gmail.com', NULL, '987654', NULL, NULL, '4ed9892c-29ff-4296-9883-8a089376e443', 'e223ff97-8594-4b6b-b7f1-5295d9fc251a', '96b244b1-4b79-4f72-a1a5-9cb176b795b3'),
('fa11279e-76a1-45c4-92be-010878598fde', '453', 'a5e813b7-ee0d-4272-8cfa-9c39e74c2f64', '2025-02-28 16:00:00.000', NULL, NULL, 'ACTIVE', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'BACHELORS', NULL, NULL, NULL, NULL, '2025-03-08 16:51:01.153', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 16:51:01.153', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '81f8f739-8cc0-4787-b54a-b01ce28114b0', 'k@c.com', 'bkash', '01770872374', NULL, NULL, 'daa882e3-7826-4b45-b1fb-08bdd391721e', '3db0dda1-2c2b-4536-a8d7-fdac235b446f', '96b244b1-4b79-4f72-a1a5-9cb176b795b3');

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

--
-- Table structure for table `employee_leave_balances`
--

CREATE TABLE IF NOT EXISTS `employee_leave_balances` (
  `id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `employee_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `leave_type_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `total_days` int NOT NULL,
  `used_days` int NOT NULL DEFAULT '0',
  `remaining_days` int NOT NULL,
  `year` int NOT NULL,
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'ACTIVE',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `employee_leave_balances_employee_id_leave_type_id_year_key` (`employee_id`,`leave_type_id`,`year`),
  KEY `employee_leave_balances_employee_id_idx` (`employee_id`),
  KEY `employee_leave_balances_leave_type_id_idx` (`leave_type_id`),
  KEY `employee_leave_balances_created_by_idx` (`created_by`),
  KEY `employee_leave_balances_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `employee_leave_balances`
--

INSERT INTO `employee_leave_balances` (`id`, `employee_id`, `leave_type_id`, `total_days`, `used_days`, `remaining_days`, `year`, `status`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('1cae2f57-f622-422a-a0e5-939c0c033e17', 'acae5569-45d3-483c-bef5-288bdb3f48a1', 'f059b9b6-1038-42b2-9ea4-b399e092f083', 10, 0, 10, 2025, 'ACTIVE', '2025-03-05 17:01:25.543', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-05 17:01:25.543', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('22094de4-0bb0-437a-90e2-534840461796', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', '91f8d2e3-18c2-4bd8-a0c9-da9f6422c363', 14, 3, 11, 2025, 'ACTIVE', '2025-03-05 17:01:15.750', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 17:11:38.675', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('499f4688-f25b-44b6-bb6c-741bbb98d994', 'fa11279e-76a1-45c4-92be-010878598fde', 'f059b9b6-1038-42b2-9ea4-b399e092f083', 10, 0, 10, 2025, 'ACTIVE', '2025-03-08 16:59:07.103', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 16:59:07.103', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('7bb085ae-76ca-44bd-abc0-971f4f30cdd4', 'fa11279e-76a1-45c4-92be-010878598fde', '91f8d2e3-18c2-4bd8-a0c9-da9f6422c363', 14, 2, 12, 2025, 'ACTIVE', '2025-03-08 16:59:30.918', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-09 17:44:53.866', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('7f9d4865-cc3b-4180-8f6d-b9ab859e3805', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'f059b9b6-1038-42b2-9ea4-b399e092f083', 10, 4, 6, 2025, 'ACTIVE', '2025-03-05 17:00:31.148', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 15:11:11.767', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('bec1c984-9000-4f77-a07d-ef578347c514', 'acae5569-45d3-483c-bef5-288bdb3f48a1', '91f8d2e3-18c2-4bd8-a0c9-da9f6422c363', 14, 0, 14, 2025, 'ACTIVE', '2025-03-05 17:01:15.750', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-05 17:01:15.750', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `finished_products`
--

CREATE TABLE IF NOT EXISTS `finished_products` (
  `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,
  `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 `finished_products_id_key` (`id`),
  UNIQUE KEY `finished_products_code_key` (`code`),
  KEY `finished_products_created_by_idx` (`created_by`),
  KEY `finished_products_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `finished_products`
--

INSERT INTO `finished_products` (`id`, `name`, `code`, `description`, `unit_of_measure`, `minimum_quantity`, `reorder_level`, `unit_price`, `category`, `brand`, `specifications`, `storage_location`, `shelf_life`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('0784ba0e-7b6e-4776-9b31-54822b0d6f65', 'Chips', 'chips', '', 'pcs', NULL, NULL, 30.00, '', '', '', NULL, NULL, 1, '2025-03-06 18:25:21.736', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:09:56.705', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5cfeb546-10b6-438b-a1c8-d6cdeaf20b64', 't', 't', '', 'kg', NULL, NULL, NULL, '', '', '', NULL, NULL, 1, '2025-03-09 18:14:00.175', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-09 18:14:00.175', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 'PRAN Chips', 'pc1', '', 'pcs', NULL, NULL, 15.00, '', 'PRAN', '', NULL, NULL, 1, '2025-03-07 19:13:04.014', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-07 19:13:04.014', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('90a2df83-c472-421e-ae89-97092c0c202e', 'asad', 'asad', '', 'pcs', NULL, NULL, 10875.00, '', '', '', NULL, NULL, 1, '2025-03-14 07:53:51.314', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:53:51.314', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('be86292d-52a5-4d78-a5d8-30d104b25ba0', 'Nabisco Chips', 'n-chi', '', 'pcs', NULL, NULL, NULL, '', '', '', NULL, NULL, 1, '2025-03-08 17:38:40.603', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 17:38:40.603', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ebe4c544-9dd6-4a6d-b790-8556da3c54e3', 'test', 'test', '', 'box', NULL, NULL, NULL, '', '', '', NULL, NULL, 1, '2025-03-08 13:07:26.701', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:07:26.701', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `fiscal_years`
--

CREATE TABLE IF NOT EXISTS `fiscal_years` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` datetime(3) NOT NULL,
  `end_date` datetime(3) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_closed` tinyint(1) NOT NULL 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,
  UNIQUE KEY `fiscal_years_id_key` (`id`),
  KEY `fiscal_years_created_by_idx` (`created_by`),
  KEY `fiscal_years_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fiscal_years`
--

INSERT INTO `fiscal_years` (`id`, `name`, `start_date`, `end_date`, `is_active`, `is_closed`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b', 'fiscal year 2025', '2024-12-31 16:00:00.000', '2025-12-30 16:00:00.000', 1, 0, '2025-03-28 13:37:53.025', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 13:37:53.025', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

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

CREATE TABLE IF NOT EXISTS `invoices` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `invoice_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `order_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `customer_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `invoice_date` datetime(3) NOT NULL,
  `target_date` datetime(3) NOT NULL,
  `invoice_amount` decimal(20,2) NOT NULL,
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` enum('GENERATED','PAID','PARTIAL_PAID') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'GENERATED',
  `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,
  `collection_target_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `paid_amount` decimal(20,2) NOT NULL DEFAULT '0.00',
  UNIQUE KEY `invoices_id_key` (`id`),
  UNIQUE KEY `invoices_invoice_no_key` (`invoice_no`),
  KEY `invoices_order_id_idx` (`order_id`),
  KEY `invoices_customer_id_idx` (`customer_id`),
  KEY `invoices_collection_target_id_idx` (`collection_target_id`),
  KEY `invoices_created_by_idx` (`created_by`),
  KEY `invoices_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `invoices`
--

INSERT INTO `invoices` (`id`, `invoice_no`, `order_id`, `customer_id`, `invoice_date`, `target_date`, `invoice_amount`, `remarks`, `status`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `collection_target_id`, `paid_amount`) VALUES
('020a5b2c-3730-46eb-905b-ba516a1585a5', 'INV2025030007', '49a2d414-344a-4cfb-ab7f-6f1866039d2e', '2a14d58a-2474-45e5-bc6f-157e6e6cb88a', '2025-03-18 00:00:00.000', '2025-03-20 00:00:00.000', 46.00, '', 'PAID', '2025-03-17 19:43:02.595', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 20:08:40.208', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '3b1748a8-82df-4398-9025-623f4a94fcba', 46.00),
('10df369e-f65c-4a2c-ad48-06ed1964bf8e', 'INV2025030012', '38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee', '38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4', '2025-04-01 00:00:00.000', '2025-04-30 00:00:00.000', 100000.00, 'Second amount', 'PARTIAL_PAID', '2025-03-18 17:18:57.484', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:25:47.551', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'c26c753b-5175-4c1d-88c6-cd91ca8698d2', 10000.00),
('17b9404c-b501-493c-85f9-9321e6fc5ac4', 'INV2025030002', '10a245ca-6136-4e26-be6e-615e4ec2112a', '76c92164-7a24-4f61-8ff0-673a985fdaf7', '2025-03-17 00:00:00.000', '2025-03-19 00:00:00.000', 1234.00, 'test', 'PAID', '2025-03-17 01:33:38.969', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 07:28:26.171', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '5c481c63-2387-4c32-a468-9f04d7394375', 1234.00),
('25b9f60b-b334-4a9e-a537-b3da9a7d7b6e', 'INV2025030006', 'd2f6b77d-f38f-4929-8827-03be8d98617e', '76c92164-7a24-4f61-8ff0-673a985fdaf7', '2025-03-24 00:00:00.000', '2025-03-30 00:00:00.000', 7500.00, 'second product target', 'PAID', '2025-03-17 16:48:50.399', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:57:59.754', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '4b1427f2-f324-43ae-89b4-72f457be5fec', 7500.00),
('27c1702a-e3f3-4af2-a10d-0eefe55538b7', 'INV2025030004', '998e79b1-3639-4c08-bc26-487d2523898c', '2a14d58a-2474-45e5-bc6f-157e6e6cb88a', '2025-03-18 00:00:00.000', '2025-03-20 00:00:00.000', 100000.00, '', 'GENERATED', '2025-03-17 11:09:01.351', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 11:09:01.351', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '0a5e94a2-90e3-48e6-8317-34092c6fe3c4', 0.00),
('2f869915-611d-48c9-b7bd-7bbd48678cec', 'INV2025030008', '6711b65b-1a9c-48c7-9531-503c92294077', '76c92164-7a24-4f61-8ff0-673a985fdaf7', '2025-03-18 00:00:00.000', '2025-03-18 00:00:00.000', 32.00, '', 'GENERATED', '2025-03-17 19:43:57.392', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 19:43:57.392', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'a678c51e-52a9-4dc9-9d5f-15d9862fdfc7', 0.00),
('5e583a29-f455-467f-b801-5b4df9a10c82', 'INV2025030009', 'ad0eba4c-b8b0-4b7d-ab48-fcc6566c6eab', '76c92164-7a24-4f61-8ff0-673a985fdaf7', '2025-03-19 00:00:00.000', '2025-03-20 00:00:00.000', 40.00, '', 'PAID', '2025-03-17 19:48:30.006', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 21:04:35.507', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '3ef9e1e0-4d2b-4926-b533-81f7ecb83e2c', 40.00),
('5f678d53-ab24-4973-acf4-67dcfb227594', 'INV2025030005', 'd2f6b77d-f38f-4929-8827-03be8d98617e', '76c92164-7a24-4f61-8ff0-673a985fdaf7', '2025-03-18 00:00:00.000', '2025-03-22 00:00:00.000', 20000.00, 'first product target', 'GENERATED', '2025-03-17 16:48:50.387', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:48:50.387', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '89e3a2e1-584a-4165-88f9-3a74b6fd3c71', 0.00),
('8f9284aa-a538-4792-be00-2d3ccad8a4fc', 'INV2025030011', '38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee', '38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4', '2025-03-19 00:00:00.000', '2025-03-19 00:00:00.000', 750.00, 'First payment', 'PAID', '2025-03-18 17:18:57.472', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:23:29.182', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '66cbce5e-2d21-4e5b-937a-9ef2e947ea89', 750.00),
('9a075f84-51b0-4ea4-a811-b1fec6d7c325', 'INV2025030001', '10a245ca-6136-4e26-be6e-615e4ec2112a', '76c92164-7a24-4f61-8ff0-673a985fdaf7', '2025-03-20 00:00:00.000', '2025-03-21 00:00:00.000', 8746.00, 'asad', 'PARTIAL_PAID', '2025-03-17 01:33:38.958', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 10:03:53.855', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'c001de78-3a0c-4352-8c29-fb92b71291ae', 750.50),
('a36c426e-a4b7-45b1-8e41-ffab7aa677c9', 'INV2025030013', '01cbc716-79e8-418a-ac04-e81bf329d006', '38d19fa1-b84b-4016-a3ca-31ef6a4f5ce4', '2025-03-23 00:00:00.000', '2025-03-31 00:00:00.000', 18.00, '', 'PAID', '2025-03-22 15:21:18.151', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 16:10:54.849', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'eb9ff3b6-d7b2-43b7-abfd-97534f0a685e', 18.00),
('c3429a18-c11b-4c5a-92ec-015fc10453ec', 'INV2025030010', 'ad0eba4c-b8b0-4b7d-ab48-fcc6566c6eab', '76c92164-7a24-4f61-8ff0-673a985fdaf7', '2025-03-21 00:00:00.000', '2025-03-23 00:00:00.000', 15.00, '', 'PAID', '2025-03-17 19:48:30.020', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 21:07:17.317', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '239ecb15-6c15-4e52-a644-99bfa8608e29', 15.00),
('eaf11db3-ca6d-4d0b-8664-263abf95915a', 'INV2025030003', 'ff371850-d007-431b-b3aa-9107ef37f1c9', '76c92164-7a24-4f61-8ff0-673a985fdaf7', '2025-03-17 00:00:00.000', '2025-03-17 00:00:00.000', 243.00, '', 'PARTIAL_PAID', '2025-03-17 01:40:43.571', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 10:11:07.179', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '0fba42c5-70bc-4baf-947b-7c8db4e98580', 143.00);

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

--
-- Table structure for table `leave_allocations`
--

CREATE TABLE IF NOT EXISTS `leave_allocations` (
  `id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `leave_type_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` int NOT NULL,
  `year` int NOT NULL,
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'ACTIVE',
  `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `created_by` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `leave_allocations_leave_type_id_year_key` (`leave_type_id`,`year`),
  KEY `leave_allocations_leave_type_id_idx` (`leave_type_id`),
  KEY `leave_allocations_created_by_idx` (`created_by`),
  KEY `leave_allocations_created_at_idx` (`created_at`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `leave_allocations`
--

INSERT INTO `leave_allocations` (`id`, `leave_type_id`, `amount`, `year`, `status`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('20ea5d3d-f011-46d8-b3a0-32810f7455cb', '91f8d2e3-18c2-4bd8-a0c9-da9f6422c363', 14, 2025, 'ACTIVE', '2025-03-05 16:56:33.805', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-05 16:56:33.805', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a3e2c337-e02c-45a0-8871-584c3e013d1c', 'f059b9b6-1038-42b2-9ea4-b399e092f083', 10, 2025, 'ACTIVE', '2025-03-05 16:58:33.713', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-05 16:58:33.713', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `leave_applications`
--

CREATE TABLE IF NOT EXISTS `leave_applications` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `employee_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `leave_type_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `total_days` int NOT NULL,
  `reason` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `attachment_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci 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 `leave_applications_id_key` (`id`),
  KEY `leave_applications_employee_id_fkey` (`employee_id`),
  KEY `leave_applications_leave_type_id_fkey` (`leave_type_id`),
  KEY `leave_applications_created_by_idx` (`created_by`),
  KEY `leave_applications_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `leave_applications`
--

INSERT INTO `leave_applications` (`id`, `employee_id`, `leave_type_id`, `start_date`, `end_date`, `total_days`, `reason`, `attachment_url`, `status`, `remarks`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('5db0b3d4-856a-4c61-8c9a-ac5b5bb6623c', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'f059b9b6-1038-42b2-9ea4-b399e092f083', '2025-03-18', '2025-03-18', 1, 'sadfasdf', NULL, 'APPROVED', NULL, '2025-03-05 18:30:48.906', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 15:11:11.750', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('764533f3-eaea-43bc-bcd8-e13c7b59847a', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', '91f8d2e3-18c2-4bd8-a0c9-da9f6422c363', '2025-03-13', '2025-03-14', 2, 'test', NULL, 'APPROVED', NULL, '2025-03-05 17:33:57.504', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-05 17:34:11.207', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8140989f-1150-4c83-a435-4b8886c48465', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', '91f8d2e3-18c2-4bd8-a0c9-da9f6422c363', '2025-03-17', '2025-03-18', 2, 'test', NULL, 'REJECTED', NULL, '2025-03-05 18:29:42.663', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-05 18:29:55.643', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('81fb67ba-2416-4447-a05b-5fa60cb64e0b', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'f059b9b6-1038-42b2-9ea4-b399e092f083', '2025-03-11', '2025-03-13', 3, 'personal', NULL, 'APPROVED', NULL, '2025-03-05 18:28:51.881', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-05 18:29:16.545', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8788bb22-eee3-4d99-a904-2106e2bd9510', 'fa11279e-76a1-45c4-92be-010878598fde', '91f8d2e3-18c2-4bd8-a0c9-da9f6422c363', '2025-03-11', '2025-03-12', 2, 'ertyu', NULL, 'APPROVED', NULL, '2025-03-09 17:44:38.606', 'be624e23-65fe-435d-8728-3c9c6352a848', '::1', '2025-03-09 17:44:53.862', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('cc223d6a-ca37-4b0d-841e-04df69759921', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', '91f8d2e3-18c2-4bd8-a0c9-da9f6422c363', '2025-03-04', '2025-03-05', 2, 'dsfas', NULL, 'APPROVED', NULL, '2025-03-05 16:15:19.161', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-05 16:15:32.517', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d686c820-dabe-4913-9d2f-88eabb60edc9', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', '91f8d2e3-18c2-4bd8-a0c9-da9f6422c363', '2025-03-10', '2025-03-12', 3, 'sickness', NULL, 'APPROVED', NULL, '2025-03-08 17:10:32.076', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 17:11:38.661', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `leave_approvals`
--

CREATE TABLE IF NOT EXISTS `leave_approvals` (
  `id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `leave_application_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `employee_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `supervisor_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `remarks` varchar(191) CHARACTER SET utf8mb4 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) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_ip` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_at` datetime(3) NOT NULL,
  `updated_by` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `updated_ip` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  UNIQUE KEY `leave_approvals_id_key` (`id`),
  UNIQUE KEY `leave_approvals_leave_application_id_key` (`leave_application_id`),
  KEY `leave_approvals_created_by_idx` (`created_by`),
  KEY `leave_approvals_created_at_idx` (`created_at`),
  KEY `leave_approvals_employee_id_fkey` (`employee_id`),
  KEY `leave_approvals_supervisor_id_fkey` (`supervisor_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `leave_approvals`
--

INSERT INTO `leave_approvals` (`id`, `leave_application_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
('da1bc967-b5f2-410f-a878-d7f2b0582ef8', 'b4731b2a-9091-41f4-b237-765f7cbdfb86', 'c929129d-ccb0-42ad-8934-6a992a8175e4', '6a560888-6e40-4e3c-b6ba-5dd475c99579', 'APPROVED', NULL, '2025-03-05 13:17:38.409', NULL, '2025-03-05 13:06:43.467', 'e817e0e8-a0c8-4cf4-96fe-52f1f332d97f', '::1', '2025-03-05 13:17:38.412', '15f8408a-bf57-47bb-98ca-d9596dc308ae', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('043afd08-5769-48c9-a18a-9ac88581dc26', '0261d26d-a5fa-494f-8af0-3e64726dbf73', 'c929129d-ccb0-42ad-8934-6a992a8175e4', '6a560888-6e40-4e3c-b6ba-5dd475c99579', 'APPROVED', NULL, '2025-03-05 14:03:07.311', NULL, '2025-03-05 13:19:01.598', 'e817e0e8-a0c8-4cf4-96fe-52f1f332d97f', '::1', '2025-03-05 14:03:07.314', '15f8408a-bf57-47bb-98ca-d9596dc308ae', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('fc776d1e-9707-4ee2-88d6-dbcf2747753e', 'cc223d6a-ca37-4b0d-841e-04df69759921', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'acae5569-45d3-483c-bef5-288bdb3f48a1', 'APPROVED', NULL, '2025-03-05 16:15:32.509', NULL, '2025-03-05 16:15:19.185', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-05 16:15:32.512', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('aeaab440-a0a3-444c-b220-a9a82f02e569', '764533f3-eaea-43bc-bcd8-e13c7b59847a', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'acae5569-45d3-483c-bef5-288bdb3f48a1', 'APPROVED', NULL, '2025-03-05 17:34:11.198', NULL, '2025-03-05 17:33:57.515', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-05 17:34:11.201', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c30ab032-a16a-48f5-b7ec-cbd28ce59686', '81fb67ba-2416-4447-a05b-5fa60cb64e0b', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'acae5569-45d3-483c-bef5-288bdb3f48a1', 'APPROVED', NULL, '2025-03-05 18:29:16.539', NULL, '2025-03-05 18:28:51.897', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-05 18:29:16.541', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d52b75fd-e184-4374-b6a5-1e68c4ab5f4a', '8140989f-1150-4c83-a435-4b8886c48465', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'acae5569-45d3-483c-bef5-288bdb3f48a1', 'REJECTED', NULL, NULL, '2025-03-05 18:29:55.637', '2025-03-05 18:29:42.672', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-05 18:29:55.638', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('86f3815f-62b7-43a2-842b-abd6c11d421a', '5db0b3d4-856a-4c61-8c9a-ac5b5bb6623c', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'acae5569-45d3-483c-bef5-288bdb3f48a1', 'APPROVED', NULL, '2025-03-08 15:11:11.737', NULL, '2025-03-05 18:30:48.913', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 15:11:11.739', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('bd0fb529-73a6-4357-8469-6c69f66d6359', 'd686c820-dabe-4913-9d2f-88eabb60edc9', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'acae5569-45d3-483c-bef5-288bdb3f48a1', 'APPROVED', NULL, '2025-03-08 17:11:38.651', NULL, '2025-03-08 17:10:32.086', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 17:11:38.653', 'f048801a-4c4e-4e0f-8862-833a780dce2b', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('1e73d29e-7e03-42da-8b76-1528d9e24e8e', '8788bb22-eee3-4d99-a904-2106e2bd9510', 'fa11279e-76a1-45c4-92be-010878598fde', '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', 'APPROVED', NULL, '2025-03-09 17:44:53.857', NULL, '2025-03-09 17:44:38.617', 'be624e23-65fe-435d-8728-3c9c6352a848', '::1', '2025-03-09 17:44:53.859', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `leave_types`
--

CREATE TABLE IF NOT EXISTS `leave_types` (
  `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,
  `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,
  PRIMARY KEY (`id`),
  KEY `leave_types_created_by_idx` (`created_by`),
  KEY `leave_types_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `leave_types`
--

INSERT INTO `leave_types` (`id`, `name`, `description`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('91f8d2e3-18c2-4bd8-a0c9-da9f6422c363', 'Sick Leave', 'SL', 1, '2025-03-05 12:53:39.688', 'e817e0e8-a0c8-4cf4-96fe-52f1f332d97f', '::1', '2025-03-05 12:53:39.688', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f059b9b6-1038-42b2-9ea4-b399e092f083', 'Casual Leave', 'CL', 1, '2025-03-05 12:53:50.110', 'e817e0e8-a0c8-4cf4-96fe-52f1f332d97f', '::1', '2025-03-05 12:53:50.110', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `ledger_balances`
--

CREATE TABLE IF NOT EXISTS `ledger_balances` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ledger_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `fiscal_year_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `opening_debit` decimal(20,2) NOT NULL,
  `opening_credit` decimal(20,2) NOT NULL,
  `current_debit` decimal(20,2) NOT NULL,
  `current_credit` decimal(20,2) NOT NULL,
  `closing_debit` decimal(20,2) NOT NULL,
  `closing_credit` 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 `ledger_balances_id_key` (`id`),
  KEY `ledger_balances_ledger_id_idx` (`ledger_id`),
  KEY `ledger_balances_fiscal_year_id_idx` (`fiscal_year_id`),
  KEY `ledger_balances_created_by_idx` (`created_by`),
  KEY `ledger_balances_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ledger_balances`
--

INSERT INTO `ledger_balances` (`id`, `ledger_id`, `fiscal_year_id`, `opening_debit`, `opening_credit`, `current_debit`, `current_credit`, `closing_debit`, `closing_credit`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('caafdc79-69f8-4009-ba20-c1473f165488', '877b9dc7-6d2b-467c-883e-12f675afac22', '3f6c1ab3-73d2-4914-b9e3-7d9fbd69043b', 0.00, 0.00, 4002.00, 4002.00, 4002.00, 4002.00, '2025-03-28 14:39:08.765', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-28 15:29:53.109', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `locations`
--

CREATE TABLE IF NOT EXISTS `locations` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT 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,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `latitude` decimal(10,8) DEFAULT NULL,
  `longitude` decimal(11,8) DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `manager_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 `locations_id_key` (`id`),
  KEY `locations_manager_id_fkey` (`manager_id`),
  KEY `locations_created_by_idx` (`created_by`),
  KEY `locations_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `locations`
--

INSERT INTO `locations` (`id`, `name`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `type`, `latitude`, `longitude`, `is_active`, `manager_id`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('6011f9c4-3de7-400e-b3ef-d8bb50d493c0', 'Gazipur Warehouse', 'Gazipur', '', '', '', '', '', '', 'warehouse', 0.00000000, 0.00000000, 1, 'fa11279e-76a1-45c4-92be-010878598fde', '2025-03-08 17:31:25.704', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 17:31:25.704', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('62b11e87-352c-40cc-8ee9-9c0a39048f90', 'Main', 'asdfa', '', '', '', '', '', '', 'office', 0.00000000, 0.00000000, 1, '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', '2025-03-06 14:24:50.709', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-06 14:33:19.975', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c62883d1-389e-47b9-ba0c-0f431a92484b', 'Warehouse', 'asdfasf', '', '', '', '', '', '', 'warehouse', 0.00000000, 0.00000000, 1, '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', '2025-03-06 14:26:07.229', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-06 14:33:04.897', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f8390e91-19b7-49d4-a1e2-c25650a68a51', 'Factory', 'asdfq32rdsa', '', '', '', '', '', '', 'factory', 0.00000000, 0.00000000, 1, '8c04fc8c-ce58-49e0-a1e7-897f38b47d11', '2025-03-06 14:26:51.997', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-06 14:33:26.697', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `manufacturing_confirmations`
--

CREATE TABLE IF NOT EXISTS `manufacturing_confirmations` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `confirmation_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'MC-000001',
  `manufacturing_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `factory_location_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `confirmation_date` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `remarks` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'MANUFACTURING_DELIVERED',
  `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,
  `rack_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `manufacturing_confirmations_id_key` (`id`),
  UNIQUE KEY `manufacturing_confirmations_confirmation_number_key` (`confirmation_number`),
  UNIQUE KEY `manufacturing_confirmations_manufacturing_id_key` (`manufacturing_id`),
  KEY `manufacturing_confirmations_manufacturing_id_idx` (`manufacturing_id`),
  KEY `manufacturing_confirmations_factory_location_id_idx` (`factory_location_id`),
  KEY `manufacturing_confirmations_rack_id_idx` (`rack_id`),
  KEY `manufacturing_confirmations_created_by_idx` (`created_by`),
  KEY `manufacturing_confirmations_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `manufacturing_confirmations`
--

INSERT INTO `manufacturing_confirmations` (`id`, `confirmation_number`, `manufacturing_id`, `factory_location_id`, `confirmation_date`, `remarks`, `status`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `rack_id`) VALUES
('4a85b8da-dae2-43ee-95f0-2e971da9162d', 'MC-000001', '3c444202-c121-4767-b145-21b23033ebc5', '62b11e87-352c-40cc-8ee9-9c0a39048f90', '2025-03-08 09:19:47.514', 'asdf', 'MANUFACTURING_COMPLETED', '2025-03-08 09:19:47.514', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 09:19:47.514', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '2543bf33-cfe2-4571-b437-6f02b40d9552'),
('6c4e6e2b-3ad8-4ea0-a9f9-08e77ec12093', 'MC-000003', 'cabd3ddf-d09f-4c18-aa05-06b220ffadf4', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '2025-03-08 18:05:21.357', NULL, 'MANUFACTURING_DELIVERED', '2025-03-08 18:05:21.357', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 18:05:21.357', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '4625c545-7709-47f3-ae84-73feea134a92'),
('82b71149-f281-40b3-b349-42f2f89f05d2', 'MC-000004', '4b684413-7493-415f-aef2-9d4e19543d32', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '2025-03-13 17:06:26.363', NULL, 'MANUFACTURING_DELIVERED', '2025-03-13 17:06:26.363', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-13 17:06:26.363', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '4625c545-7709-47f3-ae84-73feea134a92'),
('8687dca4-2762-45b4-9f0d-409b97c6f2df', 'MC-000006', '2434db06-9a42-40c0-a4c6-7f876e739926', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', '2025-03-14 07:51:40.202', NULL, 'MANUFACTURING_DELIVERED', '2025-03-14 07:51:40.202', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:51:40.202', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'f2efcc35-5852-43c8-9a6e-861842a26ba7'),
('c2f9f93c-f205-4ec8-9858-b6c48d93e171', 'MC-000005', '08b3aa1c-d7a8-41b8-8260-217adfdf71a7', '6011f9c4-3de7-400e-b3ef-d8bb50d493c0', '2025-03-14 07:17:52.485', NULL, 'MANUFACTURING_DELIVERED', '2025-03-14 07:17:52.485', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:17:52.485', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 'f2efcc35-5852-43c8-9a6e-861842a26ba7'),
('c9f03f51-6e10-4e6f-ac85-f800299366c6', 'MC-000002', '9c8b5442-b43a-48ab-be55-2ebfd477e810', 'c62883d1-389e-47b9-ba0c-0f431a92484b', '2025-03-08 13:12:22.864', NULL, 'MANUFACTURING_DELIVERED', '2025-03-08 13:12:22.864', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:12:22.864', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '80605747-4275-428c-ab79-9b228279452f'),
('cfd12d7e-4261-40e1-a700-c19024a49262', 'MC-000008', 'f75e2d0a-0f8a-4973-acb4-3925353696bf', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '2025-03-15 17:23:36.961', NULL, 'MANUFACTURING_DELIVERED', '2025-03-15 17:23:36.961', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:23:36.961', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '4625c545-7709-47f3-ae84-73feea134a92'),
('f07962e0-b310-44a9-b142-53dbdcf73e74', 'MC-000007', 'b280efa3-490d-4ae8-a89f-b00d75d93424', 'f8390e91-19b7-49d4-a1e2-c25650a68a51', '2025-03-14 08:23:20.533', NULL, 'MANUFACTURING_DELIVERED', '2025-03-14 08:23:20.533', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 08:23:20.533', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', '4625c545-7709-47f3-ae84-73feea134a92');

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

--
-- Table structure for table `manufacturing_confirmation_items`
--

CREATE TABLE IF NOT EXISTS `manufacturing_confirmation_items` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `manufacturing_confirmation_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `manufacturing_item_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `confirmed_quantity` decimal(20,2) NOT NULL,
  `unit_of_measure` 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 `manufacturing_confirmation_items_id_key` (`id`),
  KEY `manufacturing_confirmation_items_manufacturing_confirmation__idx` (`manufacturing_confirmation_id`),
  KEY `manufacturing_confirmation_items_manufacturing_item_id_idx` (`manufacturing_item_id`),
  KEY `manufacturing_confirmation_items_created_by_idx` (`created_by`),
  KEY `manufacturing_confirmation_items_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `manufacturing_confirmation_items`
--

INSERT INTO `manufacturing_confirmation_items` (`id`, `manufacturing_confirmation_id`, `manufacturing_item_id`, `confirmed_quantity`, `unit_of_measure`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('34426e87-62a1-4511-8503-d8cb1429ae2f', '82b71149-f281-40b3-b349-42f2f89f05d2', '4ed02fe7-134a-44b0-afbb-2c4d3b052370', 100.00, 'pcs', '2025-03-13 17:06:26.378', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-13 17:06:26.378', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('36310a01-08e5-4a1d-be00-8b3b54b26537', 'cfd12d7e-4261-40e1-a700-c19024a49262', 'ce7877a9-35fe-4564-b515-c6ace19e6025', 2.00, 'pcs', '2025-03-15 17:23:36.965', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:23:36.965', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5ade7ae2-950f-44ff-a09a-bdd006bc36be', 'c9f03f51-6e10-4e6f-ac85-f800299366c6', 'f24885a3-26f4-4873-92fa-2193fae054f8', 3.00, 'box', '2025-03-08 13:12:22.879', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 13:12:22.879', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('6dcc29a8-6d42-4800-88d4-4ec1e6923805', 'f07962e0-b310-44a9-b142-53dbdcf73e74', '88caf856-4681-4e5c-ae39-835971a16203', 2.00, 'pcs', '2025-03-14 08:23:20.543', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 08:23:20.543', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('7724f1d7-cdb6-4d4b-9a14-7fca518f712a', '4a85b8da-dae2-43ee-95f0-2e971da9162d', '3c097f0a-b117-42a7-a77c-f014fffabc7b', 2.00, 'pcs', '2025-03-08 09:19:47.525', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 09:19:47.525', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('afef33a9-1452-4853-b3b6-bda946b9e7f9', '6c4e6e2b-3ad8-4ea0-a9f9-08e77ec12093', 'cf79c638-cac7-4238-b851-0a9a705ace8e', 100.00, 'pcs', '2025-03-08 18:05:21.370', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 18:05:21.370', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b5c6b8c9-322e-400c-820f-1f155228d1d5', 'c2f9f93c-f205-4ec8-9858-b6c48d93e171', '20d31abc-64af-4d86-9440-b6de6e5ac2a3', 2.00, 'pcs', '2025-03-14 07:17:52.496', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:17:52.496', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('efab7d15-8ad1-4cad-bba6-6d3c08100942', '4a85b8da-dae2-43ee-95f0-2e971da9162d', '44efee84-e0ee-4b0d-92e4-ed23e07aba26', 5.00, 'pcs', '2025-03-08 09:19:47.525', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-08 09:19:47.525', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f06b6fd8-af08-4888-bdc8-fe78658b1b38', '8687dca4-2762-45b4-9f0d-409b97c6f2df', '7179bc7b-35ab-4319-a673-b4c0d7eee9b3', 5.00, 'pcs', '2025-03-14 07:51:40.213', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:51:40.213', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `manufacturing_costings`
--

CREATE TABLE IF NOT EXISTS `manufacturing_costings` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `manufacturing_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `costing_head_id` varchar(191) COLLATE utf8mb4_unicode_ci 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,
  `unit_count` decimal(20,2) NOT NULL,
  `unit_rate` decimal(20,2) NOT NULL,
  UNIQUE KEY `manufacturing_costings_id_key` (`id`),
  KEY `manufacturing_costings_manufacturing_id_idx` (`manufacturing_id`),
  KEY `manufacturing_costings_costing_head_id_idx` (`costing_head_id`),
  KEY `manufacturing_costings_created_by_idx` (`created_by`),
  KEY `manufacturing_costings_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `manufacturing_costings`
--

INSERT INTO `manufacturing_costings` (`id`, `manufacturing_id`, `costing_head_id`, `total_amount`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `unit_count`, `unit_rate`) VALUES
('35fbc486-7279-4c23-a194-0e96696ed618', 'f75e2d0a-0f8a-4973-acb4-3925353696bf', '200caba9-944d-43d9-8dea-c2e1f6e25920', 123.00, '2025-03-15 17:22:25.735', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:22:25.735', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 1.00, 123.00),
('3be479ed-756c-4749-b80f-897e3bdacfee', '08b3aa1c-d7a8-41b8-8260-217adfdf71a7', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 2000.00, '2025-03-14 07:04:54.319', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:04:54.319', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 1.00, 2000.00),
('3fcb97b6-8a15-4aa6-b12b-7d03533d06e8', 'f75e2d0a-0f8a-4973-acb4-3925353696bf', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 4000.00, '2025-03-15 17:22:25.735', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:22:25.735', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 2.00, 2000.00),
('50ae1a67-5a8b-48a8-9ac3-6e5caa625fec', 'b280efa3-490d-4ae8-a89f-b00d75d93424', '200caba9-944d-43d9-8dea-c2e1f6e25920', 615.00, '2025-03-14 08:22:48.658', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 08:22:48.658', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 5.00, 123.00),
('9119f339-a553-458b-bbc9-a13d9dae01c2', '08b3aa1c-d7a8-41b8-8260-217adfdf71a7', '200caba9-944d-43d9-8dea-c2e1f6e25920', 246.00, '2025-03-14 07:04:54.319', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:04:54.319', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 2.00, 123.00),
('a6aed8e8-7030-41f7-9333-9711316917b2', '08b3aa1c-d7a8-41b8-8260-217adfdf71a7', 'a065edb4-110c-4291-a5b0-1a6ad4663cf0', 1100.00, '2025-03-14 07:04:54.319', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:04:54.319', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 22.00, 50.00),
('aba54181-e843-4e4c-a3e4-c695543684fd', '2434db06-9a42-40c0-a4c6-7f876e739926', 'a065edb4-110c-4291-a5b0-1a6ad4663cf0', 300.00, '2025-03-14 07:48:01.371', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:48:01.371', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 6.00, 50.00),
('cd63ae50-e97d-496a-b1bd-3c8af0bbfcef', '2434db06-9a42-40c0-a4c6-7f876e739926', '200caba9-944d-43d9-8dea-c2e1f6e25920', 246.00, '2025-03-14 07:48:01.371', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:48:01.371', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 2.00, 123.00),
('d3f5e813-5e35-4d9a-a00d-306a8f5b6af3', 'b280efa3-490d-4ae8-a89f-b00d75d93424', 'a065edb4-110c-4291-a5b0-1a6ad4663cf0', 100.00, '2025-03-14 08:22:48.658', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 08:22:48.658', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 2.00, 50.00),
('d9498ec8-e7d4-4875-a5fa-6316a7134db3', '2434db06-9a42-40c0-a4c6-7f876e739926', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 2000.00, '2025-03-14 07:48:01.371', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 07:48:01.371', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 1.00, 2000.00),
('db89a950-4844-4532-ac72-1ef862e82106', 'f75e2d0a-0f8a-4973-acb4-3925353696bf', 'a065edb4-110c-4291-a5b0-1a6ad4663cf0', 150.00, '2025-03-15 17:22:25.735', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-15 17:22:25.735', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 3.00, 50.00),
('e3ea66c9-9d72-4963-b729-4be5f60f91f1', 'b280efa3-490d-4ae8-a89f-b00d75d93424', '9b1400b3-d63c-49be-a86b-9137b0a65df2', 2000.00, '2025-03-14 08:22:48.658', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-14 08:22:48.658', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 1.00, 2000.00);

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

--
-- Table structure for table `manufacturing_costing_heads`
--

CREATE TABLE IF NOT EXISTS `manufacturing_costing_heads` (
  `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,
  `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,
  `rate` decimal(20,2) NOT NULL,
  `duration` int DEFAULT NULL,
  `pay_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `rate_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `account_ledger_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `manufacturing_costing_heads_id_key` (`id`),
  UNIQUE KEY `manufacturing_costing_heads_code_key` (`code`),
  KEY `manufacturing_costing_heads_account_ledger_id_idx` (`account_ledger_id`),
  KEY `manufacturing_costing_heads_created_by_idx` (`created_by`),
  KEY `manufacturing_costing_heads_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `manufacturing_costing_heads`
--

INSERT INTO `manufacturing_costing_heads` (`id`, `name`, `code`, `description`, `is_active`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `rate`, `duration`, `pay_type`, `rate_type`, `account_ledger_id`) VALUES
('200caba9-944d-43d9-8dea-c2e1f6e25920', 'Packing cost', 'pc', NULL, 1, '2025-03-10 12:15:17.554', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-10 13:30:40.190', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 123.00, NULL, 'PER_UNIT', 'FIXED', NULL),
('9b1400b3-d63c-49be-a86b-9137b0a65df2', 'Delivery cost', 'dc', NULL, 1, '2025-03-13 17:17:22.309', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-15 17:19:51.135', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 2000.00, NULL, 'PER_UNIT', 'FIXED', '877b9dc7-6d2b-467c-883e-12f675afac22'),
('a065edb4-110c-4291-a5b0-1a6ad4663cf0', 'Labour cost', 'lc', NULL, 1, '2025-03-10 12:04:41.715', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-10 13:30:54.109', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', 50.00, NULL, 'HOURLY', 'FIXED', NULL);

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

--
-- Table structure for table `manufacturing_items`
--

CREATE TABLE IF NOT EXISTS `manufacturing_items` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `manufacturing_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,
  `unit_of_measure` 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 `manufacturing_items_id_key` (`id`),
  KEY `manufacturing_items_manufacturing_id_idx` (`manufacturing_id`),
  KEY `manufacturing_items_product_id_idx` (`product_id`),
  KEY `manufacturing_items_created_by_idx` (`created_by`),
  KEY `manufacturing_items_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `manufacturing_items`
--

INSERT INTO `manufacturing_items` (`id`, `manufacturing_id`, `product_id`, `quantity`, `unit_of_measure`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('20d31abc-64af-4d86-9440-b6de6e5ac2a3', '08b3aa1c-d7a8-41b8-8260-217adfdf71a7', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 2.00, 'pcs', '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'),
('3c097f0a-b117-42a7-a77c-f014fffabc7b', '3c444202-c121-4767-b145-21b23033ebc5', '62ed9262-4ce1-4b3d-ab53-c7aa6d327aa4', 5.00, 'pcs', '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'),
('44efee84-e0ee-4b0d-92e4-ed23e07aba26', '3c444202-c121-4767-b145-21b23033ebc5', '0784ba0e-7b6e-4776-9b31-54822b0d6f65', 10.00, 'pcs', '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'),
('46b40cb2-88d9-40d7-9c63-174d67357510', '10d79790-d3f6-4928-8d4e-193cdbda57c8', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 10.00, 'pcs', '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'),
('4ed02fe7-134a-44b0-afbb-2c4d3b052370', '4b684413-7493-415f-aef2-9d4e19543d32', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 100.00, 'pcs', '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'),
('7179bc7b-35ab-4319-a673-b4c0d7eee9b3', '2434db06-9a42-40c0-a4c6-7f876e739926', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 5.00, 'pcs', '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'),
('88caf856-4681-4e5c-ae39-835971a16203', 'b280efa3-490d-4ae8-a89f-b00d75d93424', '90a2df83-c472-421e-ae89-97092c0c202e', 2.00, 'pcs', '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'),
('95185cfb-b0fe-436a-9656-de47b2ef963f', '9679e5d4-98ac-4eb9-a3f7-68a0c72dc31e', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 190.00, 'pcs', '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'),
('ce7877a9-35fe-4564-b515-c6ace19e6025', 'f75e2d0a-0f8a-4973-acb4-3925353696bf', '90a2df83-c472-421e-ae89-97092c0c202e', 2.00, 'pcs', '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'),
('cf79c638-cac7-4238-b851-0a9a705ace8e', 'cabd3ddf-d09f-4c18-aa05-06b220ffadf4', 'be86292d-52a5-4d78-a5d8-30d104b25ba0', 100.00, 'pcs', '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'),
('f24885a3-26f4-4873-92fa-2193fae054f8', '9c8b5442-b43a-48ab-be55-2ebfd477e810', 'ebe4c544-9dd6-4a6d-b790-8556da3c54e3', 3.00, 'box', '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');

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

--
-- Table structure for table `menus`
--

CREATE TABLE IF NOT EXISTS `menus` (
  `id` int NOT NULL AUTO_INCREMENT,
  `title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `url` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `icon` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `icon_library` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parent_id` int NOT NULL,
  `sequence_no` decimal(20,2) NOT NULL,
  `is_active` tinyint(1) NOT NULL,
  `can_view` tinyint(1) DEFAULT NULL,
  `can_create` tinyint(1) DEFAULT NULL,
  `can_update` tinyint(1) DEFAULT NULL,
  `can_delete` tinyint(1) DEFAULT NULL,
  `can_report` tinyint(1) DEFAULT NULL,
  UNIQUE KEY `menus_id_key` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=82 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `menus`
--

INSERT INTO `menus` (`id`, `title`, `url`, `icon`, `icon_library`, `parent_id`, `sequence_no`, `is_active`, `can_view`, `can_create`, `can_update`, `can_delete`, `can_report`) VALUES
(1, 'Dashboard', '/dashboard', NULL, NULL, 0, 1.00, 1, 0, 0, 0, 0, 0),
(2, 'Company', '/company', '', '', 0, 2.00, 1, NULL, NULL, NULL, NULL, NULL),
(3, 'User Management', NULL, '', '', 0, 3.00, 1, NULL, NULL, NULL, NULL, NULL),
(4, 'Security Rules', NULL, '', '', 3, 4.00, 1, NULL, NULL, NULL, NULL, NULL),
(5, 'Security Rules List', '/security-rule/security-rule-list', '', '', 4, 5.00, 1, NULL, NULL, NULL, NULL, NULL),
(6, 'Security Groups', NULL, '', '', 3, 6.00, 1, NULL, NULL, NULL, NULL, NULL),
(7, 'Security Groups List', '/security-group/security-group-list', '', '', 6, 7.00, 1, NULL, NULL, NULL, NULL, NULL),
(8, 'Users', 'null', NULL, NULL, 3, 8.00, 1, 0, 0, 0, 0, 0),
(9, 'User List', '/users', NULL, NULL, 8, 9.00, 1, 0, 0, 0, 0, 0),
(17, 'Leaves', '/leaves', '', '', 13, 17.00, 1, NULL, NULL, NULL, NULL, NULL),
(16, 'Attendance', '/attendance', '', '', 13, 16.00, 1, NULL, NULL, NULL, NULL, NULL),
(15, 'Employees', '/employees', '', '', 13, 15.00, 1, NULL, NULL, NULL, NULL, NULL),
(13, 'HRMS', NULL, '', '', 0, 13.00, 1, NULL, NULL, NULL, NULL, NULL),
(14, 'Persons', '/persons', '', '', 13, 14.00, 1, NULL, NULL, NULL, NULL, NULL),
(12, 'Approval Settings', '/approval-settings', '', '', 21, 12.00, 1, NULL, NULL, NULL, NULL, NULL),
(11, 'Shifts', '/shifts', '', '', 21, 11.00, 1, NULL, NULL, NULL, NULL, NULL),
(10, 'Master Settings', NULL, '', '', 0, 10.00, 1, NULL, NULL, NULL, NULL, NULL),
(18, 'Leave Types', '/leave-types', NULL, NULL, 21, 18.00, 1, 0, 0, 0, 0, 0),
(19, 'Leave Allocation', '/leave-allocation', NULL, NULL, 21, 19.00, 1, 0, 0, 0, 0, 0),
(20, 'Leave Balance', '/leave-balance', '', '', 13, 20.00, 1, NULL, NULL, NULL, NULL, NULL),
(21, 'HRMS', NULL, NULL, NULL, 10, 21.00, 1, 0, 0, 0, 0, 0),
(22, 'Departments', '/department', NULL, NULL, 21, 22.00, 1, 0, 0, 0, 0, 0),
(23, 'Designations', '/designation', '', '', 21, 23.00, 1, NULL, NULL, NULL, NULL, NULL),
(24, 'Office Locations', '/office-locations', NULL, NULL, 21, 24.00, 1, 0, 0, 0, 0, 0),
(25, 'SCM', NULL, NULL, NULL, 10, 25.00, 1, 0, 0, 0, 0, 0),
(26, 'Manage Location', '/manage-location', '', '', 25, 26.00, 1, NULL, NULL, NULL, NULL, NULL),
(27, 'Rack Management', '/rack-management', '', '', 25, 27.00, 1, NULL, NULL, NULL, NULL, NULL),
(28, 'Supplier', '/supplier', '', '', 25, 28.00, 1, NULL, NULL, NULL, NULL, NULL),
(29, 'SCM', NULL, NULL, NULL, 0, 29.00, 1, 0, 0, 0, 0, 0),
(30, 'Product Creation', NULL, '', '', 29, 30.00, 1, NULL, NULL, NULL, NULL, NULL),
(31, 'Raw Material Creation', '/raw-material-creation', '', '', 30, 31.00, 1, NULL, NULL, NULL, NULL, NULL),
(32, 'Finish Product', '/finish-product', '', '', 30, 32.00, 1, NULL, NULL, NULL, NULL, NULL),
(33, 'Product Purchase', '/product-purchase', '', '', 29, 33.00, 1, NULL, NULL, NULL, NULL, NULL),
(34, 'Product Onboarding', '/product-onboarding', '', '', 29, 34.00, 1, NULL, NULL, NULL, NULL, NULL),
(35, 'Manufacturing', NULL, '', '', 29, 35.00, 1, NULL, NULL, NULL, NULL, NULL),
(36, 'Demand Creation', '/demand-creation', '', '', 35, 36.00, 1, NULL, NULL, NULL, NULL, NULL),
(37, 'Product Manufacturing', '/product-manufacturing', '', '', 35, 37.00, 1, NULL, NULL, NULL, NULL, NULL),
(38, 'Manufacturing Confirmation', '/manufacturing-confirmation', '', '', 35, 38.00, 1, NULL, NULL, NULL, NULL, NULL),
(39, 'Reports', NULL, '', '', 0, 1000.00, 1, NULL, NULL, NULL, NULL, NULL),
(40, 'Manufacturing Status Report', '/manufacturing-status-report', '', '', 39, 40.00, 1, NULL, NULL, NULL, NULL, NULL),
(41, 'Stock Report', '/stock-report', NULL, NULL, 39, 41.00, 1, 0, 0, 0, 0, 0),
(42, 'Costing Head', '/costing-head', NULL, NULL, 25, 42.00, 1, 0, 0, 0, 0, 0),
(43, 'Accounting', NULL, '', '', 10, 43.00, 1, NULL, NULL, NULL, NULL, NULL),
(44, 'Chart of Account', NULL, '', '', 43, 44.00, 1, NULL, NULL, NULL, NULL, NULL),
(45, 'Banks', '/banks', '', '', 44, 45.00, 1, NULL, NULL, NULL, NULL, NULL),
(46, 'Account Groups', '/account-groups', '', '', 44, 46.00, 1, NULL, NULL, NULL, NULL, NULL),
(47, 'Account Ledger', '/account-ledgers', '', '', 44, 47.00, 1, NULL, NULL, NULL, NULL, NULL),
(48, 'Stock Transfer', '/stock-transfer', '', '', 29, 48.00, 1, NULL, NULL, NULL, NULL, NULL),
(49, 'CRM', NULL, '', '', 10, 49.00, 1, NULL, NULL, NULL, NULL, NULL),
(50, 'Type of Visits', '/type-of-visit', '', '', 49, 50.00, 1, NULL, NULL, NULL, NULL, NULL),
(51, 'Type of Persons', '/type-of-person', '', '', 49, 51.00, 1, NULL, NULL, NULL, NULL, NULL),
(52, 'CRM Costing Head', '/crm-costing-head', '', '', 49, 52.00, 1, NULL, NULL, NULL, NULL, NULL),
(53, 'CRM', NULL, '', '', 0, 53.00, 1, NULL, NULL, NULL, NULL, NULL),
(54, 'Visit Management', NULL, '', '', 53, 54.00, 1, NULL, NULL, NULL, NULL, NULL),
(55, 'Visit History', '/visit-history', '', '', 54, 55.00, 1, NULL, NULL, NULL, NULL, NULL),
(56, 'Visit Report', '/visit-report', '', '', 39, 56.00, 1, NULL, NULL, NULL, NULL, NULL),
(57, 'Sales', NULL, '', '', 10, 57.00, 1, NULL, NULL, NULL, NULL, NULL),
(58, 'Target Time Frames', '/target-time-frames', '', '', 57, 58.00, 1, NULL, NULL, NULL, NULL, NULL),
(59, 'Manage Customers', '/manage-customers', '', '', 57, 59.00, 1, NULL, NULL, NULL, NULL, NULL),
(60, 'Tax Terms', '/tax-terms', '', '', 57, 60.00, 1, NULL, NULL, NULL, NULL, NULL),
(61, 'Delivery Agents', '/delivery-agents', '', '', 57, 61.00, 1, NULL, NULL, NULL, NULL, NULL),
(62, 'Sales', NULL, '', '', 0, 62.00, 1, NULL, NULL, NULL, NULL, NULL),
(63, 'Sales Targeting', '/sales-targeting', '', '', 62, 63.00, 1, NULL, NULL, NULL, NULL, NULL),
(64, 'Sales Quotation', '/sales-quotation', '', '', 62, 64.00, 1, NULL, NULL, NULL, NULL, NULL),
(65, 'Sales Order', '/sales-order', '', '', 62, 65.00, 1, NULL, NULL, NULL, NULL, NULL),
(66, 'Sales Invoice', '/sales-invoice', '', '', 62, 66.00, 1, NULL, NULL, NULL, NULL, NULL),
(67, 'Customer Payment', '/customer-payment', '', '', 62, 67.00, 1, NULL, NULL, NULL, NULL, NULL),
(68, 'Sales Return', '/sales-return', '', '', 62, 69.00, 1, NULL, NULL, NULL, NULL, NULL),
(69, 'Product Delivery', '/product-delivery', '', '', 62, 68.00, 1, NULL, NULL, NULL, NULL, NULL),
(70, 'Sales Report', '/sales-report', '', '', 39, 70.00, 1, NULL, NULL, NULL, NULL, NULL),
(71, 'Accounting', NULL, '', '', 0, 71.00, 1, NULL, NULL, NULL, NULL, NULL),
(72, 'Voucher List', '/vouchers', '', '', 71, 72.00, 1, NULL, NULL, NULL, NULL, NULL),
(73, 'Fiscal Year List', '/fiscal-years', '', '', 43, 73.00, 1, NULL, NULL, NULL, NULL, NULL),
(74, 'Voucher Type List', '/voucher-types', '', '', 43, 74.00, 1, NULL, NULL, NULL, NULL, NULL),
(75, 'Ledger Balance', '/ledger-balance', '', '', 71, 75.00, 1, NULL, NULL, NULL, NULL, NULL),
(76, 'Invoice Calendar', '/invoice-calendar', NULL, NULL, 0, 76.00, 1, 0, 0, 0, 0, 0),
(77, 'Collection Summary Report', '/collection-summary-report', '', '', 39, 77.00, 1, NULL, NULL, NULL, NULL, NULL),
(78, 'Target Vs Achievement Report', '/target-achievement-report', '', '', 39, 78.00, 1, NULL, NULL, NULL, NULL, NULL),
(79, 'Invoice Report', '/invoice-report', NULL, NULL, 39, 79.00, 1, 0, 0, 0, 0, 0),
(80, 'Payment Receipt Report', '/payment-receipt-report', '', '', 39, 80.00, 1, NULL, NULL, NULL, NULL, NULL),
(81, 'Delivery Challan Report', '/delivery-challan-report', NULL, NULL, 39, 81.00, 1, 0, 0, 0, 0, 0);

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

--
-- Table structure for table `office_locations`
--

CREATE TABLE IF NOT EXISTS `office_locations` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT 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,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_warehouse` tinyint(1) NOT NULL DEFAULT '0',
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `latitude` decimal(10,8) DEFAULT NULL,
  `longitude` decimal(11,8) 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 `office_locations_id_key` (`id`),
  KEY `office_locations_created_by_idx` (`created_by`),
  KEY `office_locations_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `office_locations`
--

INSERT INTO `office_locations` (`id`, `name`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `is_warehouse`, `is_active`, `latitude`, `longitude`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('3201a5e1-a2b1-46b0-b8ea-e650b7983a36', 'Chitagong', 'Chitagong CDA', 'Chitagong', 'CTG', '4007', 'Bangladesh', NULL, NULL, 0, 1, NULL, NULL, '2025-03-08 17:01:10.811', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 17:01:10.811', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('96b244b1-4b79-4f72-a1a5-9cb176b795b3', 'Head office location', 'Banani, Dhaka', 'dhaka', 'dhaka', '1229', 'bangladesh', '6789', NULL, 1, 1, NULL, NULL, '2025-03-06 05:50:16.148', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-06 05:50:34.497', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('bbe9c01f-87fa-41dd-bf2e-535375e8cbb5', 'test', 'test', 'test', 'test', 'test', 'test', NULL, NULL, 0, 1, NULL, NULL, '2025-03-06 05:52:24.066', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-06 05:52:24.066', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `payment_receipt_details`
--

CREATE TABLE IF NOT EXISTS `payment_receipt_details` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `master_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `invoice_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `paid_amount` decimal(20,2) NOT NULL,
  `payment_mode` enum('CASH','BANK','CHEQUE','MFS') COLLATE utf8mb4_unicode_ci NOT NULL,
  `cash_amount` decimal(20,2) DEFAULT NULL,
  `bank_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bank_amount` decimal(20,2) DEFAULT NULL,
  `cheque_bank` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cheque_branch` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cheque_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cheque_amount` decimal(20,2) DEFAULT NULL,
  `cheque_date` datetime(3) DEFAULT NULL,
  `mfs_provider` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `wallet_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_date` datetime(3) DEFAULT NULL,
  `mfs_amount` decimal(20,2) 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 `payment_receipt_details_id_key` (`id`),
  KEY `payment_receipt_details_master_id_idx` (`master_id`),
  KEY `payment_receipt_details_invoice_id_idx` (`invoice_id`),
  KEY `payment_receipt_details_bank_id_idx` (`bank_id`),
  KEY `payment_receipt_details_created_by_idx` (`created_by`),
  KEY `payment_receipt_details_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_receipt_details`
--

INSERT INTO `payment_receipt_details` (`id`, `master_id`, `invoice_id`, `paid_amount`, `payment_mode`, `cash_amount`, `bank_id`, `bank_amount`, `cheque_bank`, `cheque_branch`, `cheque_no`, `cheque_amount`, `cheque_date`, `mfs_provider`, `wallet_no`, `transaction_id`, `transaction_date`, `mfs_amount`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('3273449e-64a2-4cdc-83da-ee692a08c203', '8d97f529-3c51-493e-8dcc-62abcd8c15c0', 'eaf11db3-ca6d-4d0b-8664-263abf95915a', 143.00, 'MFS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Nagad', '1234', '22134', '2025-03-19 00:00:00.000', 143.00, '2025-03-17 10:11:07.157', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 10:11:07.157', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5dc442fa-46b4-465c-888f-296473a6b39a', 'fd25a7b5-1daf-4e5f-af40-ffc645af1196', '8f9284aa-a538-4792-be00-2d3ccad8a4fc', 750.00, 'CASH', 750.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-18 17:23:29.167', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:23:29.167', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5e2c6fc1-7a84-4f08-abb7-9377fed97b56', '6bcf7f86-6f9d-4234-bbf7-f9c3d67d1fd1', 'c3429a18-c11b-4c5a-92ec-015fc10453ec', 15.00, 'CHEQUE', NULL, NULL, NULL, 'test bank', 'test branch', '567890', 15.00, '2025-03-18 00:00:00.000', NULL, NULL, NULL, NULL, NULL, '2025-03-17 21:07:17.300', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 21:07:17.300', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a59d4aa9-a1a1-4fb0-b762-df0aae6d2144', 'a6c33d1e-1e36-4b0d-905e-3d7a2a1bff04', '020a5b2c-3730-46eb-905b-ba516a1585a5', 46.00, 'CASH', 46.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-17 20:08:40.192', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 20:08:40.192', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('aa308571-fb6c-414e-8b64-773fc0bde90d', '9d7f32a2-f37b-41b9-8907-766a85960ea4', '25b9f60b-b334-4a9e-a537-b3da9a7d7b6e', 2500.00, 'MFS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'bKash', '1234567', 'txn133', '2025-03-19 00:00:00.000', 2500.00, '2025-03-17 16:57:59.743', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:57:59.743', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('b0040ecb-c3ff-462c-b0dd-234cd09d6364', 'e11eebdb-73cf-48bd-8e93-47884b8473b2', '10df369e-f65c-4a2c-ad48-06ed1964bf8e', 10000.00, 'MFS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'bKash', '45478768', '657687', '2025-03-31 00:00:00.000', 10000.00, '2025-03-18 17:25:47.533', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:25:47.533', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('c8b30c42-46ca-4fea-9570-2e3406f9c913', 'b5776af0-9ace-4b37-ba56-73e635679754', 'a36c426e-a4b7-45b1-8e41-ffab7aa677c9', 18.00, 'CASH', 18.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-22 16:10:54.831', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 16:10:54.831', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('ceedcab5-2cc5-43c1-aeb0-83c473081371', '5033d152-69d4-4d9b-95d9-92590b4baf5a', '9a075f84-51b0-4ea4-a811-b1fec6d7c325', 750.50, 'CASH', 750.50, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-17 10:03:53.838', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 10:03:53.838', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('d92613b7-5960-4a5a-802d-66b64e97d1a9', '0e606b2c-d1b7-4def-a113-65a25eacae6c', '5e583a29-f455-467f-b801-5b4df9a10c82', 40.00, 'CASH', 40.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-17 21:04:35.483', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 21:04:35.483', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('f8db56f1-4e3c-4c07-a801-64e7805f9aa1', '6e77580e-b874-4e02-a5ea-f740ca4416f1', '25b9f60b-b334-4a9e-a537-b3da9a7d7b6e', 5000.00, 'CASH', 5000.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-17 16:52:57.008', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:52:57.008', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
-- Table structure for table `payment_receipt_masters`
--

CREATE TABLE IF NOT EXISTS `payment_receipt_masters` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `receipt_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'PR-000001',
  `sales_order_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `receipt_date` datetime(3) NOT NULL,
  `total_amount` decimal(20,2) NOT NULL,
  `status` enum('PENDING','COMPLETED','CANCELLED') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'COMPLETED',
  `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,
  `bank_statement_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cheque_image_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `receipt_image_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  UNIQUE KEY `payment_receipt_masters_id_key` (`id`),
  UNIQUE KEY `payment_receipt_masters_receipt_no_key` (`receipt_no`),
  KEY `payment_receipt_masters_sales_order_id_idx` (`sales_order_id`),
  KEY `payment_receipt_masters_created_by_idx` (`created_by`),
  KEY `payment_receipt_masters_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_receipt_masters`
--

INSERT INTO `payment_receipt_masters` (`id`, `receipt_no`, `sales_order_id`, `receipt_date`, `total_amount`, `status`, `remarks`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`, `bank_statement_url`, `cheque_image_url`, `receipt_image_url`) VALUES
('0e606b2c-d1b7-4def-a113-65a25eacae6c', 'PR2025030006', 'ad0eba4c-b8b0-4b7d-ab48-fcc6566c6eab', '2025-03-17 21:04:14.000', 40.00, 'COMPLETED', NULL, '2025-03-17 21:04:35.483', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 21:04:35.483', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, 'uploads/payment-receipts/watch_1742245475466_3823.jpg'),
('5033d152-69d4-4d9b-95d9-92590b4baf5a', 'PR2025030001', '10a245ca-6136-4e26-be6e-615e4ec2112a', '2025-03-17 00:00:00.000', 8746.00, 'COMPLETED', 'sadf', '2025-03-17 10:03:53.838', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 10:03:53.838', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, NULL),
('6bcf7f86-6f9d-4234-bbf7-f9c3d67d1fd1', 'PR2025030007', 'ad0eba4c-b8b0-4b7d-ab48-fcc6566c6eab', '2025-03-17 21:06:41.000', 15.00, 'COMPLETED', 'asf erqw', '2025-03-17 21:07:17.300', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 21:07:17.300', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, 'uploads/payment-receipts/smart watch_1742245637288_9141.jpg'),
('6e77580e-b874-4e02-a5ea-f740ca4416f1', 'PR2025030003', 'd2f6b77d-f38f-4929-8827-03be8d98617e', '2025-03-18 00:00:00.000', 7500.00, 'COMPLETED', 'first payment', '2025-03-17 16:52:57.008', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:52:57.008', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, NULL),
('8d97f529-3c51-493e-8dcc-62abcd8c15c0', 'PR2025030002', 'ff371850-d007-431b-b3aa-9107ef37f1c9', '2025-03-17 00:00:00.000', 243.00, 'COMPLETED', NULL, '2025-03-17 10:11:07.157', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 10:11:07.157', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, NULL),
('9d7f32a2-f37b-41b9-8907-766a85960ea4', 'PR2025030004', 'd2f6b77d-f38f-4929-8827-03be8d98617e', '2025-03-18 00:00:00.000', 7500.00, 'COMPLETED', 'final payment', '2025-03-17 16:57:59.743', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 16:57:59.743', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, NULL),
('a6c33d1e-1e36-4b0d-905e-3d7a2a1bff04', 'PR2025030005', '49a2d414-344a-4cfb-ab7f-6f1866039d2e', '2025-03-18 00:00:00.000', 46.00, 'COMPLETED', 'done', '2025-03-17 20:08:40.192', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-17 20:08:40.192', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, NULL),
('b5776af0-9ace-4b37-ba56-73e635679754', 'PR2025030010', '01cbc716-79e8-418a-ac04-e81bf329d006', '2025-03-22 16:10:34.000', 18.00, 'COMPLETED', NULL, '2025-03-22 16:10:54.831', '89a22510-54ec-4df1-9200-dfd6a53dd226', NULL, '2025-03-22 16:10:54.831', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, 'uploads/payment-receipts/train, kawaii cartoon style, soft colors, black outline, isolated image, white background and no shadow_1742659854819_6971.jpg'),
('e11eebdb-73cf-48bd-8e93-47884b8473b2', 'PR2025030009', '38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee', '2025-03-18 17:25:08.000', 100000.00, 'COMPLETED', NULL, '2025-03-18 17:25:47.533', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:25:47.533', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, 'uploads/payment-receipts/carven_1742318747527_2365.png'),
('fd25a7b5-1daf-4e5f-af40-ffc645af1196', 'PR2025030008', '38e13596-c6f5-4e5c-a52a-95fd0cd7a2ee', '2025-03-18 17:21:50.000', 750.00, 'COMPLETED', NULL, '2025-03-18 17:23:29.167', '6f587b32-7016-4e98-a447-cfb554adcb0e', NULL, '2025-03-18 17:23:29.167', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80', NULL, NULL, 'uploads/payment-receipts/carven_1742318609149_5934.png');

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

--
-- Table structure for table `persons`
--

CREATE TABLE IF NOT EXISTS `persons` (
  `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `middle_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `full_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `date_of_birth` date DEFAULT NULL,
  `gender` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `blood_group` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `marital_status` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `emergency_contact` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `emergency_phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `present_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `permanent_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 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,
  `national_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `passport_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `passport_expiry` date DEFAULT NULL,
  `tax_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `driving_license` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `nationality` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `religion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `photo_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,
  `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 `persons_id_key` (`id`),
  UNIQUE KEY `persons_email_key` (`email`),
  UNIQUE KEY `persons_national_id_key` (`national_id`),
  UNIQUE KEY `persons_passport_number_key` (`passport_number`),
  UNIQUE KEY `persons_tax_number_key` (`tax_number`),
  UNIQUE KEY `persons_driving_license_key` (`driving_license`),
  KEY `persons_created_by_idx` (`created_by`),
  KEY `persons_created_at_idx` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons`
--

INSERT INTO `persons` (`id`, `first_name`, `middle_name`, `last_name`, `full_name`, `date_of_birth`, `gender`, `blood_group`, `marital_status`, `email`, `phone`, `emergency_contact`, `emergency_phone`, `present_address`, `permanent_address`, `city`, `state`, `postal_code`, `country`, `national_id`, `passport_number`, `passport_expiry`, `tax_number`, `driving_license`, `nationality`, `religion`, `photo_url`, `created_at`, `created_by`, `created_ip`, `updated_at`, `updated_by`, `updated_ip`, `company_id`) VALUES
('07a1d8fc-079c-429f-9141-380b3ebf8a48', 'Sales', NULL, 'Manager', 'Sales Manager', NULL, 'MALE', NULL, NULL, 'sm@gmail.com', '56789', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:25:50.560', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:25:50.560', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('233c219a-af19-456a-85bd-0cb9f7681420', 'Factory', NULL, 'Manager', 'Factory Manager', NULL, 'MALE', NULL, NULL, 'fm@gmail.com', '098765', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:22:49.371', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:22:49.371', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('356d1342-2467-43f9-a25b-525538b872b3', 'Sales', NULL, 'Executive', 'Sales Executive', NULL, 'MALE', NULL, NULL, 'se@gmail.com', '0987654', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:26:29.707', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:26:29.707', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('4ef273c6-eddf-41fa-8aa0-a6b21d923065', 'SCM', NULL, 'Executive', 'SCM Executive', NULL, 'MALE', NULL, NULL, 'scme@gmail.com', '0987654', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:28:49.525', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:28:49.525', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('51d02109-288b-4e4f-81cb-e142874132bc', 'HR', NULL, 'Manager', 'HR Manager', NULL, 'MALE', NULL, NULL, 'hm@gmail.com', '987654', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:29:31.167', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:29:31.167', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('5a4ad766-bc46-47d1-9d53-dfa7bcd979c6', 'Asadullah', NULL, 'sarker', 'Asadullah sarker', '2025-02-22', 'MALE', 'B+', 'MARRIED', 'asadullahsarkeriut@gmail.com', '123', NULL, NULL, 'dasfasfas', NULL, 'perth', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Bangladeshi', 'Islam', NULL, '2025-03-02 15:56:30.364', '18e7ab49-9640-49b5-9f89-9365a1c7fbea', '::1', '2025-03-02 15:56:53.828', '18e7ab49-9640-49b5-9f89-9365a1c7fbea', '::1', 'test'),
('802f722a-bd4d-41bb-b4e6-1f7fff596ced', 'Warehouse', NULL, 'Executive', 'Warehouse Executive', NULL, 'MALE', NULL, NULL, 'we@gmail.com', '098765', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:25:11.902', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:25:11.902', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('8e97238c-6c93-4de5-bf21-fffcae4ae880', 'Factory', NULL, 'Executive', 'Factory Executive', NULL, 'MALE', NULL, NULL, 'fe@gmail.com', '098765', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:23:45.012', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:23:45.012', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('9c98d242-4d68-4a20-8da8-fa4615b01067', 'Warehouse', NULL, 'Manager', 'Warehouse Manager', NULL, 'MALE', NULL, NULL, 'wm@gmail.com', '987654', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:24:37.916', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:24:37.916', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('a5e813b7-ee0d-4272-8cfa-9c39e74c2f64', 'Kamrul', NULL, 'Islam', 'Kamrul Islam', NULL, 'MALE', NULL, NULL, 'k@c.com', '01770872374', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-08 16:51:01.113', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-08 16:51:01.113', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('cec9c0a9-7359-42f7-b04d-f186f57dc168', 'SCM', NULL, 'Manager', 'SCM Manager', NULL, 'MALE', NULL, NULL, 'scmm@gmail.com', '098765', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:27:55.932', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:27:55.932', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80'),
('cfe7cd6c-88f6-4d3e-8f1e-da102e6ad1f0', 'Test', NULL, 'LN', 'Test LN', NULL, 'MALE', NULL, NULL, 'test@gmail.com', '567890', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-02 17:19:51.116', '18e7ab49-9640-49b5-9f89-9365a1c7fbea', '::1', '2025-03-02 17:19:51.116', NULL, NULL, 'test'),
('fc2fb295-1bd0-4214-9734-26bcb1a8e6a8', 'HR', NULL, 'Executive', 'HR Executive', NULL, 'MALE', NULL, NULL, 'hre@gmail.com', '56789', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-03-18 06:30:13.664', '6f587b32-7016-4e98-a447-cfb554adcb0e', '::1', '2025-03-18 06:30:13.664', NULL, NULL, 'fff9f990-2e3e-49f1-bc24-8f0fbe405f80');

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

--
