-- Table structure for table `stock_adjustment_items`
--

CREATE TABLE `stock_adjustment_items` (
  `id` char(36) NOT NULL,
  `stock_adjustment_id` char(36) NOT NULL,
  `inventory_item_id` char(36) NOT NULL,
  `batch_id` char(36) DEFAULT NULL,
  `system_qty` decimal(15,4) NOT NULL,
  `actual_qty` decimal(15,4) NOT NULL,
  `difference` decimal(15,4) NOT NULL,
  `cost_price` decimal(15,2) NOT NULL DEFAULT 0.00,
  `value_difference` decimal(15,2) NOT NULL DEFAULT 0.00,
  `notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `stock_adjustment_items`
--

INSERT INTO `stock_adjustment_items` (`id`, `stock_adjustment_id`, `inventory_item_id`, `batch_id`, `system_qty`, `actual_qty`, `difference`, `cost_price`, `value_difference`, `notes`, `created_at`, `updated_at`) VALUES
('01af8e78-da29-4316-9c0a-f13f9fd36d18', '0a3daea8-abd2-4f22-91e9-83a9633daf16', 'fe611b7c-26fb-4dd5-98d0-c071277d3603', NULL, 23.6600, 23.6600, 0.0000, 262500.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('071df606-b2a5-45f4-87ac-d0f0a907bdef', '0520a5fd-b7ee-4b2f-90f2-9a61c4484ff1', '780055a4-ccdb-467a-afb7-a08339509140', NULL, 29.6600, 29.6600, 0.0000, 63700.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('0f3fe9f9-b97a-42c4-a66b-b03c26db85df', '0520a5fd-b7ee-4b2f-90f2-9a61c4484ff1', 'd7809427-bec1-4202-9f42-30981ab692d4', NULL, 45.5200, 45.5200, 0.0000, 336000.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('105f0818-8ca6-4b0d-9eb6-be6e7865578a', '0a3daea8-abd2-4f22-91e9-83a9633daf16', '5ee772ed-780d-44c7-80a3-22040ba3251c', NULL, 7.9900, 7.9900, 0.0000, 24750.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('1252fdb1-99ae-46c7-b9ce-bcdc72eef543', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', '4b4ff6ba-9a6f-43c0-b09a-612e98e913d8', NULL, 13.6400, 13.6400, 0.0000, 5500.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('20ac4084-af07-4aea-91ac-4403aa175316', '0520a5fd-b7ee-4b2f-90f2-9a61c4484ff1', '562a2b01-9d6f-4c2b-94ec-b8a7ea19bc74', NULL, 72.7600, 70.5772, -2.1828, 46350.00, -101172.78, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('245b48fb-5f85-4c2e-9839-9d7109402c1e', '0a3daea8-abd2-4f22-91e9-83a9633daf16', '6e16121e-48cf-49cd-b009-81d7a8f18c5b', NULL, 47.8800, 38.3040, -9.5760, 91200.00, -873331.20, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('3e2ddd1a-2460-4419-b96f-f45a3b245ef0', '683a558b-a07a-4029-b7ab-ddf09a42cbac', '780055a4-ccdb-467a-afb7-a08339509140', NULL, 29.6600, 30.8464, 1.1864, 63700.00, 75573.68, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('408412d6-a45a-4d6b-91c8-d5ce6e09c17e', '0a3daea8-abd2-4f22-91e9-83a9633daf16', '58217759-5292-40c1-abae-bd5a2dd71152', NULL, 15.3500, 15.3500, 0.0000, 18360.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('43d10f32-c6b2-4ecc-8f71-bac1851b2249', '9f74dae3-edcf-460c-a0f7-cb915733d8a3', '250ac775-be22-419c-a8e3-a82ef45a8232', NULL, 5.4000, 5.4000, 0.0000, 17460.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('44261014-0b89-4f88-b1ec-3c5950bb2d73', '683a558b-a07a-4029-b7ab-ddf09a42cbac', '26bdfd12-88f6-46b9-a28f-dbfe696a04e4', NULL, 51.3100, 45.1528, -6.1572, 27720.00, -170677.58, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('4bd3b406-2deb-42f6-8522-2c6117432de9', '9f74dae3-edcf-460c-a0f7-cb915733d8a3', '681a4ae6-cc8b-40af-b2f8-11530be29b9f', NULL, 69.6900, 69.6900, 0.0000, 33950.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('4d3bcbf9-5b76-4c88-8157-c295ebd7c3ed', '683a558b-a07a-4029-b7ab-ddf09a42cbac', '8f345d03-bb0d-4c61-b342-4a6ccc1235c4', NULL, 12.9100, 11.1026, -1.8074, 91800.00, -165919.32, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('52df5adf-4351-4dac-bc17-894ba826b866', '683a558b-a07a-4029-b7ab-ddf09a42cbac', '374b03f3-91f2-4345-8806-d333e0dea68f', NULL, 51.1000, 51.1000, 0.0000, 34300.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('57b9f614-9d65-41f7-b4e9-cab2b228f80c', '6dc65e1f-b337-4220-bb0d-914d18ec216b', '12dea6c2-f310-446c-8ed4-e370186e0f80', NULL, 54.2500, 52.6225, -1.6275, 27720.00, -45114.30, 'Consequatur enim qui esse omnis.', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('63f37803-5d2e-4361-85e8-cf4996c781a9', '0520a5fd-b7ee-4b2f-90f2-9a61c4484ff1', 'd3bc63c7-348f-4d4e-bbfb-86454b9cbe4c', NULL, 68.8100, 63.9933, -4.8167, 202.00, -972.97, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('68ae79a2-e346-4cb3-9b3c-8594f51a431a', '683a558b-a07a-4029-b7ab-ddf09a42cbac', 'b6bb2924-53a6-4f80-9e1d-d5b11eee3545', NULL, 57.4500, 57.4500, 0.0000, 42750.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('6d1f6cf2-ac31-4029-9967-f7d31ebb20fb', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', '26bdfd12-88f6-46b9-a28f-dbfe696a04e4', NULL, 51.3100, 54.3886, 3.0786, 27720.00, 85338.79, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('70af1092-b217-4aad-8b5f-e56f7306a8e4', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', 'a768fa94-81b8-43fd-9354-4f8c6dfe86ea', NULL, 58.0800, 58.0800, 0.0000, 5665.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('70f84dd2-1b15-452a-96e1-448d1f816a72', '683a558b-a07a-4029-b7ab-ddf09a42cbac', '6cbc2349-b9d1-45c0-8854-30dce14914da', NULL, 30.3700, 36.1403, 5.7703, 43650.00, 251873.60, 'Alias quo nostrum quibusdam temporibus omnis sint at.', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('72455d83-42ac-4751-9579-365446dbd1f5', '6dc65e1f-b337-4220-bb0d-914d18ec216b', '5339be37-d3ae-43f0-a586-af0a34946aa0', NULL, 16.3600, 19.4684, 3.1084, 35350.00, 109881.94, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('74c42599-e1e9-4e1b-af8e-75ecb24199c1', '0a3daea8-abd2-4f22-91e9-83a9633daf16', '1aa2b2f2-6035-4a61-932c-6a3c9742bad9', NULL, 61.4400, 61.4400, 0.0000, 97850.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('787092ce-6dc9-451e-be4f-bd8cf6f529ff', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', '50227258-bde8-4585-82c3-24de0ec10c44', NULL, 66.3300, 59.6970, -6.6330, 65650.00, -435456.45, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('7f31d53a-d427-4808-957f-c5fe59978265', '9f74dae3-edcf-460c-a0f7-cb915733d8a3', 'd7acf05f-2978-4d96-bf38-dae8cdef4f6a', NULL, 13.1200, 12.5952, -0.5248, 81600.00, -42823.68, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('86b32121-fe67-4ea6-82db-68b2d47873a0', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', 'fab316b9-5bb9-4701-bf42-2664a6195dae', NULL, 14.0100, 14.0100, 0.0000, 45000.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('88d2c250-34e3-4c18-a81b-06cf6138f331', '0a3daea8-abd2-4f22-91e9-83a9633daf16', 'd4adb886-780a-4007-a7d9-d29fd0e9dec9', NULL, 16.2000, 16.3620, 0.1620, 92150.00, 14928.30, 'Accusamus et et dolor maiores aut velit.', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('89b6b581-5c8c-4128-a637-5e6f69fd8f37', '6dc65e1f-b337-4220-bb0d-914d18ec216b', '374b03f3-91f2-4345-8806-d333e0dea68f', NULL, 51.1000, 59.2760, 8.1760, 34300.00, 280436.80, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('8f0b5802-91fb-4d07-98ea-f964920e57af', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', '7b921f01-b00b-4775-9eb5-61644b91114f', NULL, 85.1800, 74.1066, -11.0734, 14550.00, -161117.97, 'Quidem sunt quod in iusto tenetur.', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('9c29fc47-293f-4133-959d-1538910cd325', '683a558b-a07a-4029-b7ab-ddf09a42cbac', '4a75e970-f153-4186-b969-d09c1c94820d', NULL, 72.0200, 72.0200, 0.0000, 47040.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('ac18c742-8aa3-4f97-9a00-84511ac4ac95', '9f74dae3-edcf-460c-a0f7-cb915733d8a3', 'c0e26b88-77b5-4a58-ac52-ddbf02482c62', NULL, 19.5000, 18.9150, -0.5850, 17460.00, -10214.10, 'Qui doloribus impedit ut cumque ut qui libero.', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('ae067d43-0a46-43a2-8f61-2e3cafef99de', '0a3daea8-abd2-4f22-91e9-83a9633daf16', '602b0eef-f478-4e05-83af-c7b9b1d9222e', NULL, 25.6700, 24.3865, -1.2835, 36400.00, -46719.40, 'Repudiandae rerum temporibus qui qui.', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('afb4bc83-0bf9-4d5a-a9c4-247fed56ad7d', '683a558b-a07a-4029-b7ab-ddf09a42cbac', '95159a4d-7f19-4382-a7de-ba70d4d08b65', NULL, 67.0900, 65.0773, -2.0127, 15150.00, -30492.41, 'Laudantium unde quis ea eos laboriosam minus.', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('b6a536cf-c97a-4683-b7d8-436cc8d88f20', '683a558b-a07a-4029-b7ab-ddf09a42cbac', '3b5d64fc-719c-46b8-a0b0-6508caa31388', NULL, 53.2200, 45.7692, -7.4508, 99750.00, -743217.30, 'Repudiandae maxime ea delectus sit optio.', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('bfa5587c-5627-4dab-bda1-5f66a9e32ffd', '6dc65e1f-b337-4220-bb0d-914d18ec216b', 'd772b9f5-c0a7-42d9-bbf4-146aff9cd079', NULL, 10.6900, 12.2935, 1.6035, 17280.00, 27708.48, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('c1e7d5af-b84e-41c5-8f9b-74e752d7e37b', '6dc65e1f-b337-4220-bb0d-914d18ec216b', '8f345d03-bb0d-4c61-b342-4a6ccc1235c4', NULL, 12.9100, 13.5555, 0.6455, 91800.00, 59256.90, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('ca25c71c-7100-4a13-a466-4698e1860cb0', '6dc65e1f-b337-4220-bb0d-914d18ec216b', '26bdfd12-88f6-46b9-a28f-dbfe696a04e4', NULL, 51.3100, 51.3100, 0.0000, 27720.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('cab72688-7a68-4bc1-ba38-91c3b7c6aae8', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', '1a52da1f-0d52-4fcb-8a6b-39407115b8d8', NULL, 42.5500, 44.6775, 2.1275, 174600.00, 371461.50, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('cdaa8a84-7ca3-4675-a669-fdcc708a7008', '683a558b-a07a-4029-b7ab-ddf09a42cbac', 'ffff33ea-09d2-4834-950b-b9f96e7ebdbd', NULL, 0.1900, 0.1634, -0.0266, 21000.00, -558.60, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('ce6bd158-7ca5-4432-bb18-931a94f4bd35', '9f74dae3-edcf-460c-a0f7-cb915733d8a3', 'b542502f-e31e-4ec1-a723-fb245315fa11', NULL, 68.7700, 70.1454, 1.3754, 24250.00, 33353.45, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('d4707c3c-239c-4c09-a6ad-24fcc394508d', '0a3daea8-abd2-4f22-91e9-83a9633daf16', 'd7acf05f-2978-4d96-bf38-dae8cdef4f6a', NULL, 13.1200, 11.0208, -2.0992, 81600.00, -171294.72, 'Rerum facilis ut adipisci impedit animi.', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('d5cb0714-1566-4488-82c7-fc98e44b69a3', '0a3daea8-abd2-4f22-91e9-83a9633daf16', 'c187bd9b-554f-4614-b810-6416d9c155e5', NULL, 38.6600, 44.0724, 5.4124, 46350.00, 250864.74, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('e27b3ea2-f568-4c6f-842a-bae4e8959831', '0a3daea8-abd2-4f22-91e9-83a9633daf16', '25648899-ccc3-4a45-8fbf-e10cc4a87d66', NULL, 16.0400, 17.0024, 0.9624, 118800.00, 114333.12, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('e3f4c3a8-4928-4a78-8b17-33bbc1f0b344', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', '58217759-5292-40c1-abae-bd5a2dd71152', NULL, 15.3500, 12.4335, -2.9165, 18360.00, -53546.94, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('e8a2c634-152f-4f31-8aa6-0c8dc10d6701', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', '94bbd6b1-8bed-411c-bc4d-557e0f50a8f1', NULL, 69.1700, 69.1700, 0.0000, 46350.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('ed856b82-3aac-49fb-b1e0-6e3a1179c819', '0520a5fd-b7ee-4b2f-90f2-9a61c4484ff1', '1aa2b2f2-6035-4a61-932c-6a3c9742bad9', NULL, 61.4400, 61.4400, 0.0000, 97850.00, 0.00, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('f105f159-ec29-4685-bc8c-72f69411ef50', '6dc65e1f-b337-4220-bb0d-914d18ec216b', 'ece8261c-292f-4650-8e52-eada4ab9f5cb', NULL, 80.2800, 86.7024, 6.4224, 2450.00, 15734.88, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('f1a8888e-ffe3-4129-9eb7-b119ebd2f571', '683a558b-a07a-4029-b7ab-ddf09a42cbac', 'c55f2090-7bdf-4789-a9ef-eb3aa6f6a0ae', NULL, 50.2500, 50.7525, 0.5025, 11520.00, 5788.80, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('f217fa9d-4bfd-4ab2-a794-b1ef73517375', '0a3daea8-abd2-4f22-91e9-83a9633daf16', '94bbd6b1-8bed-411c-bc4d-557e0f50a8f1', NULL, 69.1700, 58.7945, -10.3755, 46350.00, -480904.43, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('f5108fc7-5f49-44cd-a021-52fe031479c1', '0520a5fd-b7ee-4b2f-90f2-9a61c4484ff1', 'e8031ea4-90a3-4137-b63b-96c68fb775d2', NULL, 41.0300, 34.4652, -6.5648, 26000.00, -170684.80, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('f77409b5-823f-4081-acf1-e67decd8f449', '9f74dae3-edcf-460c-a0f7-cb915733d8a3', '6e16121e-48cf-49cd-b009-81d7a8f18c5b', NULL, 47.8800, 55.0620, 7.1820, 91200.00, 654998.40, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('ff923224-68cb-4cc6-a09f-c8b18a76940c', '0a3daea8-abd2-4f22-91e9-83a9633daf16', '8757ff98-056c-41a5-8e34-b7591bbc67d8', NULL, 40.8700, 48.6353, 7.7653, 2425.00, 18830.85, NULL, '2026-05-23 03:14:00', '2026-05-23 03:14:00');

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

--
-- Table structure for table `stock_batches`
--

CREATE TABLE `stock_batches` (
  `id` char(36) NOT NULL,
  `tenant_id` char(36) NOT NULL,
  `outlet_id` char(36) NOT NULL,
  `inventory_item_id` char(36) NOT NULL,
  `goods_receive_item_id` char(36) DEFAULT NULL,
  `batch_number` varchar(255) NOT NULL,
  `production_date` date DEFAULT NULL,
  `expiry_date` date DEFAULT NULL,
  `initial_quantity` decimal(15,4) NOT NULL,
  `current_quantity` decimal(15,4) NOT NULL,
  `reserved_quantity` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `unit_cost` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `status` enum('active','depleted','expired','disposed') NOT NULL DEFAULT 'active',
  `supplier_batch_number` varchar(255) DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `stock_batch_movements`
--

CREATE TABLE `stock_batch_movements` (
  `id` char(36) NOT NULL,
  `tenant_id` char(36) NOT NULL,
  `outlet_id` char(36) NOT NULL,
  `stock_batch_id` char(36) NOT NULL,
  `inventory_item_id` char(36) NOT NULL,
  `type` enum('receive','sale','transfer_out','transfer_in','adjustment','waste','return','expired','production') NOT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `balance_before` decimal(15,4) NOT NULL,
  `balance_after` decimal(15,4) NOT NULL,
  `reference_type` varchar(255) DEFAULT NULL,
  `reference_id` bigint(20) UNSIGNED DEFAULT NULL,
  `reference_number` varchar(255) DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `user_id` char(36) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `stock_movements`
--

CREATE TABLE `stock_movements` (
  `id` char(36) NOT NULL,
  `outlet_id` char(36) NOT NULL,
  `inventory_item_id` char(36) NOT NULL,
  `batch_id` char(36) DEFAULT NULL,
  `type` varchar(255) NOT NULL,
  `reference_type` varchar(255) DEFAULT NULL,
  `reference_id` char(36) DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `cost_price` decimal(15,2) NOT NULL DEFAULT 0.00,
  `stock_before` decimal(15,4) NOT NULL,
  `stock_after` decimal(15,4) NOT NULL,
  `notes` text DEFAULT NULL,
  `created_by` char(36) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `stock_movements`
--

INSERT INTO `stock_movements` (`id`, `outlet_id`, `inventory_item_id`, `batch_id`, `type`, `reference_type`, `reference_id`, `quantity`, `cost_price`, `stock_before`, `stock_after`, `notes`, `created_by`, `created_at`, `updated_at`) VALUES
('01409764-d318-40de-8484-7e014eca6721', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd7acf05f-2978-4d96-bf38-dae8cdef4f6a', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '0a3daea8-abd2-4f22-91e9-83a9633daf16', -2.0992, 81600.00, 13.1200, 11.0208, 'Adjustment: ADJ-00002 - Physical count adjustment', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('054a2be6-afdd-4bb8-be3b-fb37dadddbf9', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '26c30409-cd63-4ab8-ba7d-e6ef140affd7', NULL, 'in', 'App\\Models\\GoodsReceive', 'fc34c78e-f1df-41f5-a398-b9d86c2011b5', 23.7100, 110722.50, 9.5700, 33.2800, 'Goods receive from PO: PO-00012', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('0784e4e9-3799-4447-a557-41dce2827317', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '1a52da1f-0d52-4fcb-8a6b-39407115b8d8', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', -9.3200, 174600.00, 42.5500, 33.2300, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('084b5f4d-0339-4ad6-9fdc-9ef910b721c5', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '7485d9ed-db53-42bc-a32d-62d50b99a65b', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '109d48fb-a00c-44af-9ee7-1326ad1aada2', 10.0372, 12000.00, 42.0200, 52.0572, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('08c98bf8-f81a-44f9-9780-046129a1eec1', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '196dab25-6699-49e8-aff8-853d49ca3dc5', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '109d48fb-a00c-44af-9ee7-1326ad1aada2', 9.0100, 16000.00, 63.7600, 72.7700, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('0a0340b8-0ca5-4add-a82a-bc15a6fed740', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'b542502f-e31e-4ec1-a723-fb245315fa11', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', 9.5200, 24250.00, 65.6100, 75.1300, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('0dad2222-b744-4ad7-93d7-5b7c29b7b429', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'a8ce6ead-ceb8-4836-926c-59e06d8da4df', NULL, 'waste', 'App\\Models\\WasteLog', '058d71a6-04d5-4f98-837d-cfb2962c5e82', -2.2100, 45000.00, 15.1900, 12.9800, 'Waste: expired - End of shelf life', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('105e049e-5a00-4c58-807e-2cd3c6273cca', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '602b0eef-f478-4e05-83af-c7b9b1d9222e', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '0a3daea8-abd2-4f22-91e9-83a9633daf16', -1.2835, 36400.00, 25.6700, 24.3865, 'Adjustment: ADJ-00002 - Physical count adjustment', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('1113e5bc-7405-4f9d-9a67-3c0c4a969161', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '25648899-ccc3-4a45-8fbf-e10cc4a87d66', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', -4.2400, 120000.00, 12.1700, 7.9300, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('159d95f0-6c7e-425c-ac28-79a961e62c31', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ae74846a-31fc-41f4-901a-74729ff714b1', NULL, 'in', 'App\\Models\\GoodsReceive', 'f471a882-9443-403a-893a-acb35944f138', 7.3000, 30458.40, 78.8200, 86.1200, 'Goods receive from PO: PO-00011', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('15dca293-6944-4729-b9e5-6f2523e7db4f', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'd4412092-df4e-455e-9188-fd11c6dffcd5', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', 10.8300, 174600.00, 67.2800, 78.1100, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('15e0ec5f-2b8e-4afc-937d-bee9e6e4474b', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8dbe9773-a8a0-45b4-a108-a5cb4f10b0ce', NULL, 'in', 'App\\Models\\GoodsReceive', '44943e71-1449-407f-b00c-3aecc931a2ab', 13.8555, 37684.50, 89.0300, 102.8855, 'Goods receive from PO: PO-00008', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('17743202-c1c6-42b1-a59e-8e2de7c30f4f', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '6fb1a2d9-0342-4939-9d76-46b69ac202e6', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', -13.0800, 18000.00, 58.4400, 45.3600, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('17c4d082-d959-4d4a-b8d7-a34c53096c42', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'eb332c72-7f29-4e61-bd07-6dd299ee7a90', NULL, 'in', 'App\\Models\\GoodsReceive', '0945f4f4-29ee-420f-9462-f3a24f200b26', 16.5700, 51098.85, 59.5600, 76.1300, 'Goods receive from PO: PO-00010', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('180c5a98-b83f-419f-ad3a-4ee408c8b124', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'ecd6c8c0-eb6d-4842-bc89-2d49e2f4564d', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', 3.7318, 35350.00, 20.3600, 24.0918, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('1a545307-8dc4-4e23-a8cd-391d2d5abbc2', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '50227258-bde8-4585-82c3-24de0ec10c44', NULL, 'waste', 'App\\Models\\WasteLog', 'e427531a-1f8c-44fc-801d-1d9cc0784f50', -2.3700, 65650.00, 66.3300, 63.9600, 'Waste: damaged - Packaging damage', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('1af6e1f3-caa8-4ba1-a426-af9de2b108c7', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '28922de4-43db-4c5c-8b8a-a6fa75a9a5d8', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', -15.5900, 75000.00, 64.9700, 49.3800, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('1b5ee85d-17b9-4537-b97f-431a2abd54ee', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8260fc52-f5fb-4154-9851-736cdbf8a257', NULL, 'in', 'App\\Models\\GoodsReceive', 'fc34c78e-f1df-41f5-a398-b9d86c2011b5', 13.1500, 241.98, 92.6100, 105.7600, 'Goods receive from PO: PO-00012', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('1bbb310b-14cb-49bd-9e91-e827f095ea7a', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'b6bb2924-53a6-4f80-9e1d-d5b11eee3545', NULL, 'in', 'App\\Models\\GoodsReceive', '2902e91a-7fa1-4b5a-bc96-860314910077', 42.8000, 45954.00, 57.4500, 100.2500, 'Goods receive from PO: PO-00014', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('1d68a2dc-12e6-4aa0-843c-d381116bb4cc', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '60c0d6d0-df03-4f4f-8a8f-b5475524329c', NULL, 'waste', 'App\\Models\\WasteLog', 'dd1778b0-8e39-42c7-9c96-49f0e07bd049', -0.5800, 84150.00, 1.7800, 1.2000, 'Waste: preparation - Cutting waste', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('2066468b-b537-4816-ba43-d8972b00fc35', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '12bdf623-63d8-4c24-977c-f8ddf76bdc6c', NULL, 'waste', 'App\\Models\\WasteLog', '13ff82e1-a122-4bd2-80d6-504fb6d663e6', -4.3000, 101.00, 65.9400, 61.6400, 'Waste: overproduction - Over-prepped for service', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('220286f0-b7b5-406e-9143-e43615c8f948', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '50e4bdf2-d73b-415c-bd22-79f8477102d2', NULL, 'waste', 'App\\Models\\WasteLog', '9e7e5762-a2bc-4fb5-8f1a-2ab791d0d1dd', -4.6600, 55550.00, 54.4400, 49.7800, 'Waste: overproduction - Unsold prepared items', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('23568d2a-ec9c-43ec-bf9e-4aa0e439c0d9', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8260fc52-f5fb-4154-9851-736cdbf8a257', NULL, 'waste', 'App\\Models\\WasteLog', 'c198e35d-fcac-47bc-b2f6-7d43384f9972', -4.2700, 200.00, 92.6100, 88.3400, 'Waste: spoiled - Quality deterioration', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('24d645ff-4286-44a4-8bac-c4220c4ad2ec', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8260fc52-f5fb-4154-9851-736cdbf8a257', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', 17.2300, 200.00, 92.6100, 109.8400, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('24e368f2-f719-453e-92c9-f3273ab04025', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ecd6c8c0-eb6d-4842-bc89-2d49e2f4564d', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', 5.3295, 35000.00, 3.2200, 8.5495, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('26277aa5-56cb-41cc-9d58-20017405990e', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '143bfdf7-2d8a-44e6-adaa-b0c18d85c4ee', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '109d48fb-a00c-44af-9ee7-1326ad1aada2', 7.0200, 35000.00, 6.1200, 13.1400, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('2709fd97-696f-4392-8b90-0af93fe38ec3', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ffff33ea-09d2-4834-950b-b9f96e7ebdbd', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '683a558b-a07a-4029-b7ab-ddf09a42cbac', -0.0266, 21000.00, 0.1900, 0.1634, 'Adjustment: ADJ-00003 - Monthly stock take', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('290662f2-8c52-44e6-b72b-d9e1cf046f5a', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '12dea6c2-f310-446c-8ed4-e370186e0f80', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '6dc65e1f-b337-4220-bb0d-914d18ec216b', -1.6275, 27720.00, 54.2500, 52.6225, 'Adjustment: ADJ-00004 - Manual count correction', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('29bae637-bb55-45c1-a4fd-9695ae66e607', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8dbe9773-a8a0-45b4-a108-a5cb4f10b0ce', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '9bf83645-1e48-4336-92a3-2afb712dfb62', -6.6900, 33600.00, 89.0300, 82.3400, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('2b0027ce-2cc0-4aa4-9952-9e45dde084ec', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '7b921f01-b00b-4775-9eb5-61644b91114f', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', -11.0734, 14550.00, 85.1800, 74.1066, 'Adjustment: ADJ-00005 - Data entry mistake', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('2c819244-b794-47dc-92c6-15669fc19be6', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '4a75e970-f153-4186-b969-d09c1c94820d', NULL, 'in', 'App\\Models\\GoodsReceive', '2902e91a-7fa1-4b5a-bc96-860314910077', 13.8800, 58075.20, 72.0200, 85.9000, 'Goods receive from PO: PO-00014', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('2f3ecac3-16b7-4ac8-98bc-ea8ab79f4d40', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6e16121e-48cf-49cd-b009-81d7a8f18c5b', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '0a3daea8-abd2-4f22-91e9-83a9633daf16', -9.5760, 91200.00, 47.8800, 38.3040, 'Adjustment: ADJ-00002 - Physical count adjustment', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('2fdbcc6f-3281-4aa8-b3ef-72f3d4db60e1', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ae08af5c-3d51-4931-a5c0-72814e2172f5', NULL, 'in', 'App\\Models\\GoodsReceive', '60504c30-34f4-43a4-a1b7-f8b5b5d29318', 12.6504, 302475.00, 82.3300, 94.9804, 'Goods receive from PO: PO-00009', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('320e7b20-f26b-4568-a925-fff603820455', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8f345d03-bb0d-4c61-b342-4a6ccc1235c4', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '6dc65e1f-b337-4220-bb0d-914d18ec216b', 0.6455, 91800.00, 12.9100, 13.5555, 'Adjustment: ADJ-00004 - Manual count correction', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('3257612b-a4ff-4ad4-8af0-ac402958e9fb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '5339be37-d3ae-43f0-a586-af0a34946aa0', NULL, 'in', 'App\\Models\\GoodsReceive', '44943e71-1449-407f-b00c-3aecc931a2ab', 23.1784, 40792.50, 16.3600, 39.5384, 'Goods receive from PO: PO-00008', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('33da687f-2e3d-42ae-b4dd-c366522023b9', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '0b679841-55cb-42f6-839b-e873e73120cf', NULL, 'waste', 'App\\Models\\WasteLog', '51d4aef0-6f67-4560-aa73-f3743d65b42a', -4.1400, 82.40, 63.2400, 59.1000, 'Waste: damaged - Packaging damage', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('34a97e13-cdf3-431a-9e8b-b6fbed0e0bd6', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '4499d420-8ffc-4ee0-a55b-8ce5e7211729', NULL, 'in', 'App\\Models\\GoodsReceive', '44943e71-1449-407f-b00c-3aecc931a2ab', 5.7132, 15184.80, 28.8700, 34.5832, 'Goods receive from PO: PO-00008', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('3640ff98-df94-4c30-896a-baa80c301b68', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ecd6c8c0-eb6d-4842-bc89-2d49e2f4564d', NULL, 'in', 'App\\Models\\GoodsReceive', '60504c30-34f4-43a4-a1b7-f8b5b5d29318', 11.2254, 39491.03, 3.2200, 14.4454, 'Goods receive from PO: PO-00009', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('3661ee28-d252-4e76-9f24-f88e6a85aabd', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '0f8e346d-8ee1-4f2a-82de-6ad0f9920f4a', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', 5.9600, 24750.00, 74.0000, 79.9600, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('391d7dc5-e3a0-4bc5-b741-25fbdc23027d', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '1a52da1f-0d52-4fcb-8a6b-39407115b8d8', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', 2.1275, 174600.00, 42.5500, 44.6775, 'Adjustment: ADJ-00005 - Data entry mistake', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('3b0e4bc6-8639-4d7e-98d4-684ce3fdd5f0', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ecd6c8c0-eb6d-4842-bc89-2d49e2f4564d', NULL, 'waste', 'App\\Models\\WasteLog', '712805ca-409c-4983-98c1-a93cdcd6c802', -0.8300, 35350.00, 3.2200, 2.3900, 'Waste: spoiled - Quality deterioration', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('3bf569bf-e675-4b11-a51d-d74fe888a025', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'ce1c4f4d-92a7-40e8-bb33-842e5d3e9a65', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '109d48fb-a00c-44af-9ee7-1326ad1aada2', -18.8900, 22000.00, 95.9900, 77.1000, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('3f60f0e5-05b4-4a3d-a5bb-d6188af623bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '5ee772ed-780d-44c7-80a3-22040ba3251c', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '6f26f9ee-5714-4672-a624-e2c441388479', 8.6400, 25000.00, 7.9900, 16.6300, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('4158caec-5534-47a6-835d-a74819267f2d', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ae08af5c-3d51-4931-a5c0-72814e2172f5', NULL, 'in', 'App\\Models\\GoodsReceive', 'f471a882-9443-403a-893a-acb35944f138', 41.7900, 302475.00, 82.3300, 124.1200, 'Goods receive from PO: PO-00011', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('4164281d-863d-4e62-8256-87a9a04ffd0e', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '94bbd6b1-8bed-411c-bc4d-557e0f50a8f1', NULL, 'in', 'App\\Models\\GoodsReceive', 'fc34c78e-f1df-41f5-a398-b9d86c2011b5', 10.2300, 46453.50, 69.1700, 79.4000, 'Goods receive from PO: PO-00012', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('42c6aa21-3a64-45d5-aa33-fcba09875643', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd7809427-bec1-4202-9f42-30981ab692d4', NULL, 'in', 'App\\Models\\GoodsReceive', 'fc34c78e-f1df-41f5-a398-b9d86c2011b5', 27.0300, 343239.75, 45.5200, 72.5500, 'Goods receive from PO: PO-00012', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('42f3a0f7-deac-4227-8f7d-cc3b3ef50ce7', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '681a4ae6-cc8b-40af-b2f8-11530be29b9f', NULL, 'in', 'App\\Models\\GoodsReceive', 'f471a882-9443-403a-893a-acb35944f138', 37.0800, 37062.90, 69.6900, 106.7700, 'Goods receive from PO: PO-00011', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('46c46fde-cb41-44b9-9aa6-b4264d6f1407', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '26bdfd12-88f6-46b9-a28f-dbfe696a04e4', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '6f26f9ee-5714-4672-a624-e2c441388479', 11.6640, 28000.00, 51.3100, 62.9740, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('47abcaee-c03f-4608-803c-0c99d39b1bee', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '0f8e346d-8ee1-4f2a-82de-6ad0f9920f4a', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', -5.9600, 24750.00, 56.3600, 50.4000, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('4a77186d-6991-4596-9e4b-2e855a78061a', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '26bdfd12-88f6-46b9-a28f-dbfe696a04e4', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '6f26f9ee-5714-4672-a624-e2c441388479', -12.1500, 28000.00, 48.3400, 36.1900, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('4c0e0d34-2eab-4ed5-9677-012a360a7827', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd772b9f5-c0a7-42d9-bbf4-146aff9cd079', NULL, 'in', 'App\\Models\\GoodsReceive', 'fc34c78e-f1df-41f5-a398-b9d86c2011b5', 13.9000, 19580.40, 10.6900, 24.5900, 'Goods receive from PO: PO-00012', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('557de4c0-9202-41f2-9da9-5c846382221d', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8dbe9773-a8a0-45b4-a108-a5cb4f10b0ce', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '9bf83645-1e48-4336-92a3-2afb712dfb62', 6.6900, 33600.00, 49.3900, 56.0800, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('55b4e76b-dc32-43ae-9d94-91f48ce93d0f', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '3a4df2b2-32b5-469d-8d23-7c037463aed3', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '9bf83645-1e48-4336-92a3-2afb712dfb62', -3.8100, 39140.00, 10.9200, 7.1100, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('562d8a2c-70f0-4112-9a3e-c9a58bec452b', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '50227258-bde8-4585-82c3-24de0ec10c44', NULL, 'waste', 'App\\Models\\WasteLog', '51fd99b6-f94b-46f6-85be-1480ccccee61', -1.0600, 65650.00, 66.3300, 65.2700, 'Waste: spoiled - Found spoiled during prep', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('594819f1-1008-495a-8c8c-6a2130fdeca5', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '374b03f3-91f2-4345-8806-d333e0dea68f', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '6dc65e1f-b337-4220-bb0d-914d18ec216b', 8.1760, 34300.00, 51.1000, 59.2760, 'Adjustment: ADJ-00004 - Manual count correction', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('5b732033-1c5b-48b1-a5ab-841325d27d0a', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '1142502a-749f-4a0c-9a52-1ab6c098a5fd', NULL, 'in', 'App\\Models\\GoodsReceive', '0945f4f4-29ee-420f-9462-f3a24f200b26', 36.2600, 32323.20, 66.3100, 102.5700, 'Goods receive from PO: PO-00010', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('5f409c2d-67cf-4bcd-a716-eae6cfbafeba', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd772b9f5-c0a7-42d9-bbf4-146aff9cd079', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '6dc65e1f-b337-4220-bb0d-914d18ec216b', 1.6035, 17280.00, 10.6900, 12.2935, 'Adjustment: ADJ-00004 - Manual count correction', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('60fded79-1dff-4619-936c-35afef62828a', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '3b5d64fc-719c-46b8-a0b0-6508caa31388', NULL, 'waste', 'App\\Models\\WasteLog', 'c5bbaf4f-c652-478d-aa52-5e16e922df3d', -4.8600, 99750.00, 53.2200, 48.3600, 'Waste: expired - End of shelf life', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('613c64f7-49b9-4879-8170-4d6d55c3acdb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6e855b45-f21e-48c1-b317-0e6ee8dfdcdd', NULL, 'waste', 'App\\Models\\WasteLog', '3d91e353-8b00-46b6-8d79-9772d0264b69', -1.1200, 185400.00, 19.6900, 18.5700, 'Waste: spoiled - Improper storage damage', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('622315f4-4554-40b7-8d17-2fa3791df6c4', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd4412092-df4e-455e-9188-fd11c6dffcd5', NULL, 'in', 'App\\Models\\GoodsReceive', 'fc34c78e-f1df-41f5-a398-b9d86c2011b5', 39.3800, 199300.50, 97.8700, 137.2500, 'Goods receive from PO: PO-00012', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('62c583db-a7a3-47c7-841c-03bc8d5c9a9d', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '143bfdf7-2d8a-44e6-adaa-b0c18d85c4ee', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '109d48fb-a00c-44af-9ee7-1326ad1aada2', -7.0200, 35000.00, 39.0500, 32.0300, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('670c59e0-f2e2-4f88-bfbe-634376eb0cd9', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'c187bd9b-554f-4614-b810-6416d9c155e5', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '0a3daea8-abd2-4f22-91e9-83a9633daf16', 5.4124, 46350.00, 38.6600, 44.0724, 'Adjustment: ADJ-00002 - Physical count adjustment', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('6b008464-0ce7-4461-9d67-fea07b2bde49', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ece8261c-292f-4650-8e52-eada4ab9f5cb', NULL, 'in', 'App\\Models\\GoodsReceive', '60504c30-34f4-43a4-a1b7-f8b5b5d29318', 11.1280, 2636.25, 80.2800, 91.4080, 'Goods receive from PO: PO-00009', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('6cb0ee01-f8b3-43c3-babb-3877fab81de6', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '94bbd6b1-8bed-411c-bc4d-557e0f50a8f1', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '109d48fb-a00c-44af-9ee7-1326ad1aada2', 4.7700, 45000.00, 69.1700, 73.9400, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('6dcdab5c-46af-48bd-8f90-68c41d5d1291', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'eb332c72-7f29-4e61-bd07-6dd299ee7a90', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '9bf83645-1e48-4336-92a3-2afb712dfb62', -11.2400, 54450.00, 59.5600, 48.3200, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('6e2909a0-4b52-42a7-a992-8a56892a48c2', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'f1a251f8-abea-4798-b680-bb094dcd53e1', NULL, 'in', 'App\\Models\\GoodsReceive', 'b68f5a95-e5db-4dde-a95b-d1a8c99af616', 45.1100, 23976.00, 58.4300, 103.5400, 'Goods receive from PO: PO-00013', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('6ee2496d-711b-4d2f-a1f0-8eb73ef33694', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '25648899-ccc3-4a45-8fbf-e10cc4a87d66', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '0a3daea8-abd2-4f22-91e9-83a9633daf16', 0.9624, 118800.00, 16.0400, 17.0024, 'Adjustment: ADJ-00002 - Physical count adjustment', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('7198685d-0a76-4c19-86ff-40ec90a7c1a9', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '7485d9ed-db53-42bc-a32d-62d50b99a65b', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '109d48fb-a00c-44af-9ee7-1326ad1aada2', -10.9100, 12000.00, 43.0800, 32.1700, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('7250c6d1-c71b-44de-b904-6cf95c791158', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '50227258-bde8-4585-82c3-24de0ec10c44', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', -6.6330, 65650.00, 66.3300, 59.6970, 'Adjustment: ADJ-00005 - Data entry mistake', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('7450faad-6e06-40f8-94aa-84c5fbc20f02', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd4412092-df4e-455e-9188-fd11c6dffcd5', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', -10.8300, 174600.00, 97.8700, 87.0400, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('75c062aa-f28f-413f-bf88-d14c0401e017', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '26bdfd12-88f6-46b9-a28f-dbfe696a04e4', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', -5.3600, 27720.00, 51.3100, 45.9500, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('77a5df57-4673-461d-aaca-f091b212c1f4', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '3a4df2b2-32b5-469d-8d23-7c037463aed3', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '9bf83645-1e48-4336-92a3-2afb712dfb62', 3.6195, 39140.00, 38.0400, 41.6595, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('78d61a80-216e-4e99-b3ba-8f4d472a5c17', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8cff6361-9336-43c4-be72-6110621e07e2', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '9bf83645-1e48-4336-92a3-2afb712dfb62', -6.1200, 124800.00, 23.1500, 17.0300, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('79cecbba-2d36-47e1-8482-99b91d8c387a', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '0c3ddb0b-e4ce-41bc-9778-5d4c00ba2e1c', NULL, 'in', 'App\\Models\\GoodsReceive', '0945f4f4-29ee-420f-9462-f3a24f200b26', 6.8000, 26640.00, 7.3600, 14.1600, 'Goods receive from PO: PO-00010', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('79dfdc47-1d0c-4c8e-ba59-880bda882566', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '1a52da1f-0d52-4fcb-8a6b-39407115b8d8', NULL, 'in', 'App\\Models\\GoodsReceive', '2902e91a-7fa1-4b5a-bc96-860314910077', 25.0900, 188811.00, 42.5500, 67.6400, 'Goods receive from PO: PO-00014', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('7b1205ee-fa91-4b21-9042-778d6e692ba6', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ffff33ea-09d2-4834-950b-b9f96e7ebdbd', NULL, 'waste', 'App\\Models\\WasteLog', '208a54e4-cc0a-4e52-b657-f8c616465bcf', -2.5600, 21000.00, 0.1900, -2.3700, 'Waste: expired - End of shelf life', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('7b24334c-2e87-4a64-83aa-f4dce7c3d79d', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '9ff4762a-46d2-4f5b-a946-09e898d415f2', NULL, 'in', 'App\\Models\\GoodsReceive', '2902e91a-7fa1-4b5a-bc96-860314910077', 29.4400, 67155.00, 19.6700, 49.1100, 'Goods receive from PO: PO-00014', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('8108550b-bedc-4e23-943e-91c95dcbdf1b', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'fd8045ed-53fc-4b7c-acc6-f9da2b95aafb', NULL, 'in', 'App\\Models\\GoodsReceive', 'fc34c78e-f1df-41f5-a398-b9d86c2011b5', 49.6300, 163170.00, 19.0900, 68.7200, 'Goods receive from PO: PO-00012', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('82fee279-0507-47d1-ba3c-980201288ad9', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6cbc2349-b9d1-45c0-8854-30dce14914da', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '9bf83645-1e48-4336-92a3-2afb712dfb62', -8.8100, 43650.00, 30.3700, 21.5600, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('83566356-ace9-4f4b-8f51-61a440961064', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '0ae6dd9b-b245-4bb8-80a7-fcd09070fd4e', NULL, 'in', 'App\\Models\\GoodsReceive', 'b68f5a95-e5db-4dde-a95b-d1a8c99af616', 21.1000, 37296.00, 21.8200, 42.9200, 'Goods receive from PO: PO-00013', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('83e1f8e6-c542-437f-a48b-eda444450ab3', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6fb1a2d9-0342-4939-9d76-46b69ac202e6', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', 13.0800, 18000.00, 91.2000, 104.2800, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('847ed63c-9b40-463c-a55d-a1ba15e1a814', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '94bbd6b1-8bed-411c-bc4d-557e0f50a8f1', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '109d48fb-a00c-44af-9ee7-1326ad1aada2', -4.7700, 45000.00, 12.1300, 7.3600, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('85d93d2b-5b56-4883-a3f9-bdf630d7925f', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '4a75e970-f153-4186-b969-d09c1c94820d', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '109d48fb-a00c-44af-9ee7-1326ad1aada2', 9.0240, 48000.00, 72.0200, 81.0440, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('87c7f849-ea68-47aa-b4fc-1075d0c6c4a0', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ec5437de-944a-44e9-9ba1-47d0aa2075e7', NULL, 'in', 'App\\Models\\GoodsReceive', '2902e91a-7fa1-4b5a-bc96-860314910077', 6.5600, 122544.00, 53.3900, 59.9500, 'Goods receive from PO: PO-00014', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('88de109f-4b37-48e5-9e74-b08ed7104872', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '4a75e970-f153-4186-b969-d09c1c94820d', NULL, 'in', 'App\\Models\\GoodsReceive', 'f471a882-9443-403a-893a-acb35944f138', 46.5200, 53812.80, 72.0200, 118.5400, 'Goods receive from PO: PO-00011', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('89190b26-c9f0-47de-b827-2a18740b0e74', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'eb332c72-7f29-4e61-bd07-6dd299ee7a90', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '9bf83645-1e48-4336-92a3-2afb712dfb62', 11.2400, 54450.00, 12.8000, 24.0400, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('893d31cc-0587-4715-9312-d38614bdf627', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '5339be37-d3ae-43f0-a586-af0a34946aa0', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '6dc65e1f-b337-4220-bb0d-914d18ec216b', 3.1084, 35350.00, 16.3600, 19.4684, 'Adjustment: ADJ-00004 - Manual count correction', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('8963bcbd-078f-4b3b-b491-f00a4f4d2146', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '1462554a-d08d-4da6-99d7-3b8434aeda4d', NULL, 'waste', 'App\\Models\\WasteLog', '577fe523-5f5f-4018-90ac-e80e9bc825fa', -4.8000, 20800.00, 14.8300, 10.0300, 'Waste: expired - Product passed expiry date', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('8b3499bc-2432-41ca-b9d2-00e1c8bcdb92', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '28922de4-43db-4c5c-8b8a-a6fa75a9a5d8', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', 15.2782, 75000.00, 13.5200, 28.7982, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('8b7a3e57-f8cf-4cd6-97dd-f462fd7f7079', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'ecd6c8c0-eb6d-4842-bc89-2d49e2f4564d', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', -5.6100, 35000.00, 20.3600, 14.7500, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('8d8c6276-49af-4fc5-9c16-a1e8cc2ceb12', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '12bdf623-63d8-4c24-977c-f8ddf76bdc6c', NULL, 'waste', 'App\\Models\\WasteLog', '05471ce8-1383-44d7-bc18-f36207285386', -3.1100, 101.00, 65.9400, 62.8300, 'Waste: preparation - Prep waste - trimmings', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('92aad797-dd3b-4ae7-92dd-a2047e437bf9', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8260fc52-f5fb-4154-9851-736cdbf8a257', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', -17.2300, 200.00, 85.7700, 68.5400, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('943aa30a-ab0b-4bdb-b1a4-d9fe365a2d05', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '94bbd6b1-8bed-411c-bc4d-557e0f50a8f1', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '0a3daea8-abd2-4f22-91e9-83a9633daf16', -10.3755, 46350.00, 69.1700, 58.7945, 'Adjustment: ADJ-00002 - Physical count adjustment', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('94ff6c21-8403-4c58-bcbe-e1ff311e377e', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8cff6361-9336-43c4-be72-6110621e07e2', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '9bf83645-1e48-4336-92a3-2afb712dfb62', 6.1200, 124800.00, 69.1000, 75.2200, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('971d8fcb-c5a0-4fe6-a23f-8ad395ebc816', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'f7e69a23-b5e3-4054-b039-5502c76313fc', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', 6.9100, 124800.00, 39.3400, 46.2500, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('a2401346-cce9-4e65-8384-3cb3485d25e5', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '196dab25-6699-49e8-aff8-853d49ca3dc5', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '109d48fb-a00c-44af-9ee7-1326ad1aada2', -9.0100, 16000.00, 53.8300, 44.8200, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('a35779bd-14c3-4921-839c-ce3c75b7b3bf', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ffff33ea-09d2-4834-950b-b9f96e7ebdbd', NULL, 'waste', 'App\\Models\\WasteLog', '6b9b8ad9-8956-4e65-8493-a9f8d0bcb801', -4.1600, 21000.00, 0.1900, -3.9700, 'Waste: expired - End of shelf life', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('a4eb768d-494d-4cac-9517-4233db53874a', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'b542502f-e31e-4ec1-a723-fb245315fa11', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '9f74dae3-edcf-460c-a0f7-cb915733d8a3', 1.3754, 24250.00, 68.7700, 70.1454, 'Adjustment: ADJ-00001 - Monthly stock take', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('a646abb1-5d2b-49c7-aa94-7f9f61693eec', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd7acf05f-2978-4d96-bf38-dae8cdef4f6a', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '9f74dae3-edcf-460c-a0f7-cb915733d8a3', -0.5248, 81600.00, 13.1200, 12.5952, 'Adjustment: ADJ-00001 - Monthly stock take', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('a7021b0d-6cbe-4d08-bdd7-01431a970412', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '780055a4-ccdb-467a-afb7-a08339509140', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '683a558b-a07a-4029-b7ab-ddf09a42cbac', 1.1864, 63700.00, 29.6600, 30.8464, 'Adjustment: ADJ-00003 - Monthly stock take', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('a73879dd-3b13-4b70-8709-c31ce1223ba8', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6e855b45-f21e-48c1-b317-0e6ee8dfdcdd', NULL, 'waste', 'App\\Models\\WasteLog', '77b8c536-05bd-465b-9b27-60ec4241048d', -2.9600, 185400.00, 19.6900, 16.7300, 'Waste: spoiled - Found spoiled during prep', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('a7a28f3c-8f06-4f64-a4de-4f7687a1b0b2', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '3b5d64fc-719c-46b8-a0b0-6508caa31388', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '683a558b-a07a-4029-b7ab-ddf09a42cbac', -7.4508, 99750.00, 53.2200, 45.7692, 'Adjustment: ADJ-00003 - Monthly stock take', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('a81ba7c0-5b19-48bc-b634-48c68414d4d2', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '95159a4d-7f19-4382-a7de-ba70d4d08b65', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '683a558b-a07a-4029-b7ab-ddf09a42cbac', -2.0127, 15150.00, 67.0900, 65.0773, 'Adjustment: ADJ-00003 - Monthly stock take', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('aa831f2d-7e4a-40d7-ad95-a126e8564833', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ece8261c-292f-4650-8e52-eada4ab9f5cb', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '6dc65e1f-b337-4220-bb0d-914d18ec216b', 6.4224, 2450.00, 80.2800, 86.7024, 'Adjustment: ADJ-00004 - Manual count correction', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('ac7f0f8d-ccd1-41bc-a8a7-b35e5c22b445', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '26bdfd12-88f6-46b9-a28f-dbfe696a04e4', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '683a558b-a07a-4029-b7ab-ddf09a42cbac', -6.1572, 27720.00, 51.3100, 45.1528, 'Adjustment: ADJ-00003 - Monthly stock take', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('ad00d609-2492-4727-84f0-4b2bd2623f71', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'f7e69a23-b5e3-4054-b039-5502c76313fc', NULL, 'waste', 'App\\Models\\WasteLog', 'f31d6374-df0d-4a8e-96cc-fd5296175152', -3.9000, 124800.00, 28.1200, 24.2200, 'Waste: overproduction - Unsold prepared items', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('aeb61882-882f-4899-a171-1f5436eabbed', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'c0e26b88-77b5-4a58-ac52-ddbf02482c62', NULL, 'in', 'App\\Models\\GoodsReceive', 'b68f5a95-e5db-4dde-a95b-d1a8c99af616', 45.5300, 21778.20, 19.5000, 65.0300, 'Goods receive from PO: PO-00013', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('aff7c09c-a3fd-4037-aa6e-860b08e73e1d', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '80adc244-40bf-4e5c-beb0-338474572b13', NULL, 'waste', 'App\\Models\\WasteLog', '7d0f1ce5-76b1-42be-a1e5-873aa414cda0', -3.7600, 111100.00, 23.6200, 19.8600, 'Waste: spoiled - Improper storage damage', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('b047941d-b8d1-4688-b31d-e79484bb6611', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '613e8b12-e111-416b-83c6-573a105c0815', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', 11.6600, 18000.00, 52.3100, 63.9700, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('b062e53a-fe75-48a0-8378-69fdd71bd74b', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'c55f2090-7bdf-4789-a9ef-eb3aa6f6a0ae', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '683a558b-a07a-4029-b7ab-ddf09a42cbac', 0.5025, 11520.00, 50.2500, 50.7525, 'Adjustment: ADJ-00003 - Monthly stock take', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('b135f059-cc8a-4245-bbf0-78ee850f5c8d', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6cbc2349-b9d1-45c0-8854-30dce14914da', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '683a558b-a07a-4029-b7ab-ddf09a42cbac', 5.7703, 43650.00, 30.3700, 36.1403, 'Adjustment: ADJ-00003 - Monthly stock take', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('b3f601ad-5ec8-432f-8ee3-7d751829e3ca', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '3b5d64fc-719c-46b8-a0b0-6508caa31388', NULL, 'waste', 'App\\Models\\WasteLog', '39da44fe-7b4d-4843-9c09-9cbd5c63c707', -4.7500, 99750.00, 53.2200, 48.4700, 'Waste: preparation - Peeling waste', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('b42300da-bf70-40be-bb21-3c1944081aad', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '3b5d64fc-719c-46b8-a0b0-6508caa31388', NULL, 'in', 'App\\Models\\GoodsReceive', 'f471a882-9443-403a-893a-acb35944f138', 36.8700, 91108.80, 53.2200, 90.0900, 'Goods receive from PO: PO-00011', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('b445fce7-3c76-45c9-9508-57d1f4b8bb35', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '681a4ae6-cc8b-40af-b2f8-11530be29b9f', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', -16.3000, 35000.00, 63.8600, 47.5600, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('b4b1bbb4-f7b8-42e4-8ab2-46788a09196e', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '81d3c1eb-efa5-4e1f-bc7d-0b1fd8bb86cc', NULL, 'in', 'App\\Models\\GoodsReceive', '60504c30-34f4-43a4-a1b7-f8b5b5d29318', 2.9638, 96803.10, 7.5600, 10.5238, 'Goods receive from PO: PO-00009', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('b570b624-764e-4ed7-acb0-b3b98d5bb89a', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '26c30409-cd63-4ab8-ba7d-e6ef140affd7', NULL, 'waste', 'App\\Models\\WasteLog', 'a59eee2f-a55a-4abe-9e70-9d7b6944c9c3', -3.8200, 96900.00, 9.5700, 5.7500, 'Waste: spoiled - Found spoiled during prep', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('b6d3a7ef-e79d-4bd6-8681-7467eb51104d', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '26bdfd12-88f6-46b9-a28f-dbfe696a04e4', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', 3.0786, 27720.00, 51.3100, 54.3886, 'Adjustment: ADJ-00005 - Data entry mistake', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('b8012e76-a794-4115-9e6c-29f672673f05', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'add48938-8a33-41b6-b46b-7079e4e31bec', NULL, 'in', 'App\\Models\\GoodsReceive', '0945f4f4-29ee-420f-9462-f3a24f200b26', 20.1300, 174825.00, 37.6700, 57.8000, 'Goods receive from PO: PO-00010', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('b9389517-ca5f-4841-b4f1-c21ca5e972be', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'a8ce6ead-ceb8-4836-926c-59e06d8da4df', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', 4.8200, 45000.00, 87.5700, 92.3900, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('b9dd3bf0-56ed-49d2-9657-25a97e0256fc', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '6cbc2349-b9d1-45c0-8854-30dce14914da', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '9bf83645-1e48-4336-92a3-2afb712dfb62', 8.8100, 43650.00, 98.5400, 107.3500, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('ba701276-acef-498c-8b64-89ead2920150', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '1a52da1f-0d52-4fcb-8a6b-39407115b8d8', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', 9.3200, 174600.00, 55.7000, 65.0200, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('bb26d7d7-abfc-49f6-a7df-82b0602dfc7c', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ee2e1070-2bc3-4c6d-bcde-7c6be8a12ed5', NULL, 'waste', 'App\\Models\\WasteLog', 'a71368dd-116a-46cf-b39c-2db9e387ae99', -3.6700, 17460.00, 4.9500, 1.2800, 'Waste: damaged - Container broken', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('bd582c56-b7d1-49ac-9886-f94d41c9bcbf', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '25648899-ccc3-4a45-8fbf-e10cc4a87d66', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', 4.2400, 120000.00, 16.0400, 20.2800, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('bf8b9eb2-29fa-40a5-8d4c-5edeb7616ef3', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd7809427-bec1-4202-9f42-30981ab692d4', NULL, 'in', 'App\\Models\\GoodsReceive', 'f471a882-9443-403a-893a-acb35944f138', 7.3600, 396270.00, 45.5200, 52.8800, 'Goods receive from PO: PO-00011', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('c0f1992a-b0f9-4410-8646-351a8d509cd5', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd3bc63c7-348f-4d4e-bbfb-86454b9cbe4c', NULL, 'waste', 'App\\Models\\WasteLog', 'efb01d65-8f39-4fd4-8561-31afbe4921cd', -3.4500, 202.00, 68.8100, 65.3600, 'Waste: expired - End of shelf life', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('c4bc312d-2616-42b8-8650-b22a97554265', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'c0e26b88-77b5-4a58-ac52-ddbf02482c62', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '9f74dae3-edcf-460c-a0f7-cb915733d8a3', -0.5850, 17460.00, 19.5000, 18.9150, 'Adjustment: ADJ-00001 - Monthly stock take', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('c4bc5e28-20c3-4fee-a398-3b07756ddbca', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8757ff98-056c-41a5-8e34-b7591bbc67d8', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '0a3daea8-abd2-4f22-91e9-83a9633daf16', 7.7653, 2425.00, 40.8700, 48.6353, 'Adjustment: ADJ-00002 - Physical count adjustment', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('ca705f3d-25b3-4c0c-a5b2-94e972307a6c', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6c31aa1f-53e9-4bdb-8b17-c0bfa31eb681', NULL, 'in', 'App\\Models\\GoodsReceive', '0945f4f4-29ee-420f-9462-f3a24f200b26', 31.4900, 181485.00, 37.7800, 69.2700, 'Goods receive from PO: PO-00010', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('cac466ce-70bc-41ad-b636-d93fca454d20', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6e16121e-48cf-49cd-b009-81d7a8f18c5b', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '9f74dae3-edcf-460c-a0f7-cb915733d8a3', 7.1820, 91200.00, 47.8800, 55.0620, 'Adjustment: ADJ-00001 - Monthly stock take', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('cb9dd176-2a09-4fdd-83b1-6bf9cced7f5b', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '4a75e970-f153-4186-b969-d09c1c94820d', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '109d48fb-a00c-44af-9ee7-1326ad1aada2', -9.6000, 48000.00, 70.7100, 61.1100, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('cc54b073-089d-45d6-93c3-0e9ae0af2c29', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '26c30409-cd63-4ab8-ba7d-e6ef140affd7', NULL, 'waste', 'App\\Models\\WasteLog', 'd80785cd-0019-4f25-8c96-310b7c05fbe5', -1.9000, 96900.00, 9.5700, 7.6700, 'Waste: spoiled - Found spoiled during prep', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('cf19b896-a3e4-4540-a07e-2444d58fc385', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd3bc63c7-348f-4d4e-bbfb-86454b9cbe4c', NULL, 'waste', 'App\\Models\\WasteLog', 'd14627fb-479f-4f03-bdce-fa314c118a2c', -2.6100, 202.00, 68.8100, 66.2000, 'Waste: spoiled - Quality deterioration', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('d041bff8-ea58-4d8b-bef7-3c9c4e936c14', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '45f30c5f-52d7-45a8-86cd-fc209983b7e7', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '6f26f9ee-5714-4672-a624-e2c441388479', -17.9300, 65000.00, 89.2400, 71.3100, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('d952cfd4-252b-45a4-a3eb-990b6b66335f', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '613e8b12-e111-416b-83c6-573a105c0815', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', -11.6600, 18000.00, 70.8800, 59.2200, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('dc844fe6-ebd0-482a-b697-13cea55bd9dd', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8f345d03-bb0d-4c61-b342-4a6ccc1235c4', NULL, 'in', 'App\\Models\\GoodsReceive', '60504c30-34f4-43a4-a1b7-f8b5b5d29318', 14.9416, 98901.00, 12.9100, 27.8516, 'Goods receive from PO: PO-00009', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59');
INSERT INTO `stock_movements` (`id`, `outlet_id`, `inventory_item_id`, `batch_id`, `type`, `reference_type`, `reference_id`, `quantity`, `cost_price`, `stock_before`, `stock_after`, `notes`, `created_by`, `created_at`, `updated_at`) VALUES
('de76da77-da4b-4321-9e31-a820c612f259', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'b542502f-e31e-4ec1-a723-fb245315fa11', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', -9.5200, 24250.00, 68.7700, 59.2500, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('df163740-eff9-4eb2-b4dc-dd28d273efdf', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '81d3c1eb-efa5-4e1f-bc7d-0b1fd8bb86cc', NULL, 'in', 'App\\Models\\GoodsReceive', 'fc34c78e-f1df-41f5-a398-b9d86c2011b5', 13.6700, 93217.80, 7.5600, 21.2300, 'Goods receive from PO: PO-00012', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('df38b22b-96a6-4fbf-b161-7a6f714e2084', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'a8ce6ead-ceb8-4836-926c-59e06d8da4df', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', -4.8200, 45000.00, 15.1900, 10.3700, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('df4e2523-6142-463c-a507-c84b9210baf1', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd4adb886-780a-4007-a7d9-d29fd0e9dec9', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '0a3daea8-abd2-4f22-91e9-83a9633daf16', 0.1620, 92150.00, 16.2000, 16.3620, 'Adjustment: ADJ-00002 - Physical count adjustment', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('e136bff6-0c77-40f0-ba79-7378ea10c73f', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '58217759-5292-40c1-abae-bd5a2dd71152', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '3f7a8ed2-5794-4d79-bb52-0a8ded18beba', -2.9165, 18360.00, 15.3500, 12.4335, 'Adjustment: ADJ-00005 - Data entry mistake', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('e89b25e4-8af1-41e2-8647-63333655239c', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'f7e69a23-b5e3-4054-b039-5502c76313fc', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', -6.9100, 124800.00, 28.1200, 21.2100, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('e9a2cee2-0bcd-49bd-a9f7-1b7700ea918d', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6fb1a2d9-0342-4939-9d76-46b69ac202e6', NULL, 'in', 'App\\Models\\GoodsReceive', 'f471a882-9443-403a-893a-acb35944f138', 30.3500, 17272.71, 91.2000, 121.5500, 'Goods receive from PO: PO-00011', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('ee62d79a-fbd0-4961-a499-412719ddca98', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ecd6c8c0-eb6d-4842-bc89-2d49e2f4564d', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', -3.9700, 35350.00, 3.2200, -0.7500, 'Transfer to Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('eff0e230-017f-427e-8e49-451bbd169c48', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '681a4ae6-cc8b-40af-b2f8-11530be29b9f', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '145b0efc-a601-40ef-9789-7feb3b5702d8', 16.1370, 35000.00, 69.6900, 85.8270, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('f2c78d99-7800-4cb0-969e-4cb97234eb35', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'c94a654a-f572-4326-8a1d-edaf43ba7a6c', NULL, 'in', 'App\\Models\\GoodsReceive', 'b68f5a95-e5db-4dde-a95b-d1a8c99af616', 9.8600, 3469.31, 77.3300, 87.1900, 'Goods receive from PO: PO-00013', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('f349e07c-9a75-43ec-a4e7-ae07de58351d', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8f345d03-bb0d-4c61-b342-4a6ccc1235c4', NULL, 'adjustment', 'App\\Models\\StockAdjustment', '683a558b-a07a-4029-b7ab-ddf09a42cbac', -1.8074, 91800.00, 12.9100, 11.1026, 'Adjustment: ADJ-00003 - Monthly stock take', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('f352ce02-37a0-4888-9079-2519420d0ac5', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ce1c4f4d-92a7-40e8-bb33-842e5d3e9a65', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '109d48fb-a00c-44af-9ee7-1326ad1aada2', 18.8900, 22000.00, 49.6500, 68.5400, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('f6d4ae64-002e-48d6-a02b-78c10ef14cdf', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '45f30c5f-52d7-45a8-86cd-fc209983b7e7', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '6f26f9ee-5714-4672-a624-e2c441388479', 17.9300, 65000.00, 65.6800, 83.6100, 'Transfer from Demo Outlet - Branch 2', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('f870a93e-4266-426e-a308-a8e8d0dc77e2', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd3bc63c7-348f-4d4e-bbfb-86454b9cbe4c', NULL, 'waste', 'App\\Models\\WasteLog', '3b90ad0a-06a8-4e08-bc73-b7bd653dee2b', -4.4400, 202.00, 68.8100, 64.3700, 'Waste: damaged - Packaging damage', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('f8ffb360-3a7d-481a-91fb-5da2cbd9475d', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '26bdfd12-88f6-46b9-a28f-dbfe696a04e4', NULL, 'transfer_in', 'App\\Models\\StockTransfer', '71b31a9a-522c-4d96-817e-657afbcc1b96', 5.3600, 27720.00, 48.3400, 53.7000, 'Transfer from Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('fae4000e-4075-4495-bd0f-7ffd935c98a1', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '5ee772ed-780d-44c7-80a3-22040ba3251c', NULL, 'transfer_out', 'App\\Models\\StockTransfer', '6f26f9ee-5714-4672-a624-e2c441388479', -8.6400, 25000.00, 43.9500, 35.3100, 'Transfer to Main Branch', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('ff82cad3-eb13-4742-a3b7-16b74e4008cb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ecd6c8c0-eb6d-4842-bc89-2d49e2f4564d', NULL, 'in', 'App\\Models\\GoodsReceive', 'b68f5a95-e5db-4dde-a95b-d1a8c99af616', 36.6200, 34965.00, 3.2200, 39.8400, 'Goods receive from PO: PO-00013', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:13:59', '2026-05-23 03:13:59');

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

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

CREATE TABLE `stock_transfers` (
  `id` char(36) NOT NULL,
  `tenant_id` char(36) NOT NULL,
  `from_outlet_id` char(36) NOT NULL,
  `to_outlet_id` char(36) NOT NULL,
  `transfer_number` varchar(50) NOT NULL,
  `transfer_date` date NOT NULL,
  `status` varchar(255) NOT NULL DEFAULT 'draft',
  `notes` text DEFAULT NULL,
  `created_by` char(36) NOT NULL,
  `approved_by` char(36) DEFAULT NULL,
  `approved_at` timestamp NULL DEFAULT NULL,
  `received_by` char(36) DEFAULT NULL,
  `received_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `stock_transfers` (`id`, `tenant_id`, `from_outlet_id`, `to_outlet_id`, `transfer_number`, `transfer_date`, `status`, `notes`, `created_by`, `approved_by`, `approved_at`, `received_by`, `received_at`, `created_at`, `updated_at`) VALUES
('109d48fb-a00c-44af-9ee7-1326ad1aada2', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'TRF-00012', '2026-05-18', 'received', 'Minima in et omnis aut error.', '3094d61f-580a-466b-b867-e8c813eb52b4', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-17 20:39:31', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-22 18:11:49', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('145b0efc-a601-40ef-9789-7feb3b5702d8', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'TRF-00010', '2026-05-05', 'received', NULL, '3094d61f-580a-466b-b867-e8c813eb52b4', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-05 09:31:28', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-07 11:32:54', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('197e2257-15e9-4355-915c-ed482b92d519', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'TRF-00002', '2026-05-02', 'draft', NULL, '3094d61f-580a-466b-b867-e8c813eb52b4', NULL, NULL, NULL, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('601da963-27e5-4ebf-8983-6ce9020e93d9', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'TRF-00006', '2026-05-08', 'in_transit', NULL, '3094d61f-580a-466b-b867-e8c813eb52b4', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-08 03:43:31', NULL, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('6f26f9ee-5714-4672-a624-e2c441388479', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'TRF-00009', '2026-05-07', 'received', NULL, '3094d61f-580a-466b-b867-e8c813eb52b4', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-06 22:05:27', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-22 13:11:50', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('71b31a9a-522c-4d96-817e-657afbcc1b96', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'TRF-00008', '2026-04-30', 'received', NULL, '3094d61f-580a-466b-b867-e8c813eb52b4', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-04-29 21:45:32', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-13 01:34:54', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('9bf83645-1e48-4336-92a3-2afb712dfb62', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'TRF-00011', '2026-05-06', 'received', NULL, '3094d61f-580a-466b-b867-e8c813eb52b4', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-06 15:16:32', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-20 09:12:25', '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('c1d5fe00-96bf-4339-aff3-11f2a6d58711', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'TRF-00001', '2026-05-23', 'draft', NULL, '3094d61f-580a-466b-b867-e8c813eb52b4', NULL, NULL, NULL, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('d7f5e824-7010-43c9-af4e-6b2161ad21be', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'TRF-00005', '2026-04-25', 'in_transit', 'Ea incidunt quibusdam cumque necessitatibus qui.', '3094d61f-580a-466b-b867-e8c813eb52b4', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-04-25 12:16:45', NULL, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('dbbf8ab4-e4ed-4072-abd3-a01baf0dd270', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'TRF-00013', '2026-04-30', 'cancelled', NULL, '3094d61f-580a-466b-b867-e8c813eb52b4', NULL, NULL, NULL, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('dcac6293-9475-4e28-ac3d-8fbb2d0a0339', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'TRF-00004', '2026-05-02', 'pending', 'Libero provident reiciendis perspiciatis veritatis.', '3094d61f-580a-466b-b867-e8c813eb52b4', NULL, NULL, NULL, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('e93e3614-4227-4ce5-ba95-a62f7002c113', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'TRF-00003', '2026-05-10', 'pending', NULL, '3094d61f-580a-466b-b867-e8c813eb52b4', NULL, NULL, NULL, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('fbb2eee4-f6aa-4e67-a3ef-f4df8b118171', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'TRF-00007', '2026-05-07', 'in_transit', NULL, '3094d61f-580a-466b-b867-e8c813eb52b4', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-06 20:56:18', NULL, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01');

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

--
-- Table structure for table `stock_transfer_items`
--

CREATE TABLE `stock_transfer_items` (
  `id` char(36) NOT NULL,
  `stock_transfer_id` char(36) NOT NULL,
  `inventory_item_id` char(36) NOT NULL,
  `batch_id` char(36) DEFAULT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `received_qty` decimal(12,4) DEFAULT NULL,
  `unit_id` char(36) NOT NULL,
  `cost_price` decimal(15,2) NOT NULL DEFAULT 0.00,
  `notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `stock_transfer_items`
--

INSERT INTO `stock_transfer_items` (`id`, `stock_transfer_id`, `inventory_item_id`, `batch_id`, `quantity`, `received_qty`, `unit_id`, `cost_price`, `notes`, `created_at`, `updated_at`) VALUES
('0250e71c-f2f8-4352-8468-42214df20a52', '71b31a9a-522c-4d96-817e-657afbcc1b96', 'a8ce6ead-ceb8-4836-926c-59e06d8da4df', NULL, 4.8200, 4.8200, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 45000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('04550d99-b77f-443b-bdee-dc60ed02e8cb', '109d48fb-a00c-44af-9ee7-1326ad1aada2', '7485d9ed-db53-42bc-a32d-62d50b99a65b', NULL, 10.9100, 10.0372, '0a88de8a-d1ed-46cb-a659-5dea1a8581a6', 12000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('0e04d32c-d21b-4063-b3b9-806d7565fa98', '9bf83645-1e48-4336-92a3-2afb712dfb62', 'eb332c72-7f29-4e61-bd07-6dd299ee7a90', NULL, 11.2400, 11.2400, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 54450.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('10cc5377-f195-40e8-9716-f5723b8c4d5d', 'd7f5e824-7010-43c9-af4e-6b2161ad21be', '1142502a-749f-4a0c-9a52-1ab6c098a5fd', NULL, 13.8000, NULL, 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 27440.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('10e5c2d2-7c27-4bd6-b4cb-e818f878e35a', 'd7f5e824-7010-43c9-af4e-6b2161ad21be', '613e8b12-e111-416b-83c6-573a105c0815', NULL, 6.6100, NULL, 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 18000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('1450836a-b7d2-44c6-866b-ab43eebe2d15', '109d48fb-a00c-44af-9ee7-1326ad1aada2', '94bbd6b1-8bed-411c-bc4d-557e0f50a8f1', NULL, 4.7700, 4.7700, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 45000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('17662ef3-a060-4e1d-a93f-a56d5549a320', '197e2257-15e9-4355-915c-ed482b92d519', 'd4adb886-780a-4007-a7d9-d29fd0e9dec9', NULL, 15.1400, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 95000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('1e2ef0a3-8095-4ded-bce0-78cc142c0bb3', 'fbb2eee4-f6aa-4e67-a3ef-f4df8b118171', '4b4ff6ba-9a6f-43c0-b09a-612e98e913d8', NULL, 8.7000, NULL, '135d56f1-e047-459a-a5e0-260ed2c646d9', 5500.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('1e3155f9-3f94-443b-bfdc-81e2903b2fa4', '71b31a9a-522c-4d96-817e-657afbcc1b96', '26bdfd12-88f6-46b9-a28f-dbfe696a04e4', NULL, 5.3600, 5.3600, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 27720.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('22566685-bf4f-4764-b48d-c0cf2b413e20', '71b31a9a-522c-4d96-817e-657afbcc1b96', 'f7e69a23-b5e3-4054-b039-5502c76313fc', NULL, 6.9100, 6.9100, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 124800.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('26608853-258f-4233-883c-c8a51dbaf8b8', '197e2257-15e9-4355-915c-ed482b92d519', '8260fc52-f5fb-4154-9851-736cdbf8a257', NULL, 18.5900, NULL, '573ba895-1241-4235-8937-9958b7827d33', 200.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('27941256-6052-4ad0-b915-eb5b7772fd34', '9bf83645-1e48-4336-92a3-2afb712dfb62', '8dbe9773-a8a0-45b4-a108-a5cb4f10b0ce', NULL, 6.6900, 6.6900, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 33600.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('28111c1d-7da7-4fec-a405-90b2f5488103', '601da963-27e5-4ebf-8983-6ce9020e93d9', '0fe42abe-ef9a-4c79-b26b-f72cf8f521ad', NULL, 5.4100, NULL, '135d56f1-e047-459a-a5e0-260ed2c646d9', 4040.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('3102bedf-0b2f-4598-bddc-40274714048e', '6f26f9ee-5714-4672-a624-e2c441388479', '5ee772ed-780d-44c7-80a3-22040ba3251c', NULL, 8.6400, 8.6400, '0a88de8a-d1ed-46cb-a659-5dea1a8581a6', 25000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('32f559ef-8e3f-4059-b683-02810cb8240c', 'fbb2eee4-f6aa-4e67-a3ef-f4df8b118171', 'e8031ea4-90a3-4137-b63b-96c68fb775d2', NULL, 4.9400, NULL, 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 25000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('3431ecf2-4c35-4f3a-b8fb-17970cc9551f', '197e2257-15e9-4355-915c-ed482b92d519', '3a4df2b2-32b5-469d-8d23-7c037463aed3', NULL, 11.2000, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 38000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('34a35ffe-f888-4689-8013-a386db83d497', 'e93e3614-4227-4ce5-ba95-a62f7002c113', '0fe42abe-ef9a-4c79-b26b-f72cf8f521ad', NULL, 5.9200, NULL, '135d56f1-e047-459a-a5e0-260ed2c646d9', 4040.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('41888651-03f5-4ad5-a84e-8c25e6e0a1f7', '197e2257-15e9-4355-915c-ed482b92d519', 'd772b9f5-c0a7-42d9-bbf4-146aff9cd079', NULL, 6.4900, NULL, '135d56f1-e047-459a-a5e0-260ed2c646d9', 18000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('46dcac57-8419-43d9-8338-f3a95b725d8e', '601da963-27e5-4ebf-8983-6ce9020e93d9', '143bfdf7-2d8a-44e6-adaa-b0c18d85c4ee', NULL, 4.9100, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 33950.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('492a626e-31be-4ea9-906f-41ca453d437a', 'dcac6293-9475-4e28-ac3d-8fbb2d0a0339', 'add48938-8a33-41b6-b46b-7079e4e31bec', NULL, 5.5900, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 150000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('4df7ff24-cbbd-4c4e-9421-dd24f88cd015', 'dbbf8ab4-e4ed-4072-abd3-a01baf0dd270', '0c3ddb0b-e4ce-41bc-9778-5d4c00ba2e1c', NULL, 6.0000, NULL, '135d56f1-e047-459a-a5e0-260ed2c646d9', 25000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('516f220f-2127-4010-8bbb-9563aaf062c7', '109d48fb-a00c-44af-9ee7-1326ad1aada2', '143bfdf7-2d8a-44e6-adaa-b0c18d85c4ee', NULL, 7.0200, 7.0200, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 35000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('51b7f420-94ff-4807-bd1c-bbb27cca412a', '601da963-27e5-4ebf-8983-6ce9020e93d9', 'b6bb2924-53a6-4f80-9e1d-d5b11eee3545', NULL, 12.6900, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 42750.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('56ed8086-0905-4b15-84c0-d72e25e12d0a', 'c1d5fe00-96bf-4339-aff3-11f2a6d58711', '143bfdf7-2d8a-44e6-adaa-b0c18d85c4ee', NULL, 11.4400, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 35000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('5b2193f4-494d-4581-8613-5eeac57930c8', 'fbb2eee4-f6aa-4e67-a3ef-f4df8b118171', 'ecd6c8c0-eb6d-4842-bc89-2d49e2f4564d', NULL, 6.1100, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 35000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('5e94cef0-ec27-4b1c-9e67-cd2538c2e818', '197e2257-15e9-4355-915c-ed482b92d519', '5339be37-d3ae-43f0-a586-af0a34946aa0', NULL, 4.8900, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 35000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('5f64511c-a4f4-4bb2-9e16-32bfcf4983bb', 'fbb2eee4-f6aa-4e67-a3ef-f4df8b118171', '80adc244-40bf-4e5c-beb0-338474572b13', NULL, 14.3400, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 110000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('631b0049-6bf0-4ba6-ade8-ef4a8127d837', '601da963-27e5-4ebf-8983-6ce9020e93d9', '8f345d03-bb0d-4c61-b342-4a6ccc1235c4', NULL, 4.6000, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 91800.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('635a114f-d8f2-4cdf-bd48-7c3a87e046e0', 'dcac6293-9475-4e28-ac3d-8fbb2d0a0339', '60c0d6d0-df03-4f4f-8a8f-b5475524329c', NULL, 8.9800, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 85000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('648edc5a-ba06-407d-8273-125b6cd0bd87', '9bf83645-1e48-4336-92a3-2afb712dfb62', '8cff6361-9336-43c4-be72-6110621e07e2', NULL, 6.1200, 6.1200, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 124800.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('67fc4817-827f-41bf-b20d-035af79d927d', '145b0efc-a601-40ef-9789-7feb3b5702d8', '681a4ae6-cc8b-40af-b2f8-11530be29b9f', NULL, 16.3000, 16.1370, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 35000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('71762f58-bb93-4594-be32-428fbd51e116', '6f26f9ee-5714-4672-a624-e2c441388479', '45f30c5f-52d7-45a8-86cd-fc209983b7e7', NULL, 17.9300, 17.9300, 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 65000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('71ae30e0-ffec-4d04-a2e4-3550f65f1fd0', 'dcac6293-9475-4e28-ac3d-8fbb2d0a0339', '8cff6361-9336-43c4-be72-6110621e07e2', NULL, 13.7000, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 120000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('7b97d2ec-ec17-4538-a9ac-d33081e06556', 'dcac6293-9475-4e28-ac3d-8fbb2d0a0339', '5339be37-d3ae-43f0-a586-af0a34946aa0', NULL, 4.7300, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 35000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('80e03a89-f07e-4669-9b5f-e03c4f93d864', 'e93e3614-4227-4ce5-ba95-a62f7002c113', '0c3ddb0b-e4ce-41bc-9778-5d4c00ba2e1c', NULL, 4.1200, NULL, '135d56f1-e047-459a-a5e0-260ed2c646d9', 24000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('8dedd461-0f9d-48d2-a2ed-6c386b19915a', '601da963-27e5-4ebf-8983-6ce9020e93d9', '8cff6361-9336-43c4-be72-6110621e07e2', NULL, 5.1500, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 124800.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('8eb79e1e-b082-45f1-90f1-3623c9249f8a', '9bf83645-1e48-4336-92a3-2afb712dfb62', '3a4df2b2-32b5-469d-8d23-7c037463aed3', NULL, 3.8100, 3.6195, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 39140.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('8ec1ad43-ff2b-4e3b-b235-1f41e87ddc32', '145b0efc-a601-40ef-9789-7feb3b5702d8', '28922de4-43db-4c5c-8b8a-a6fa75a9a5d8', NULL, 15.5900, 15.2782, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 75000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('906222ce-9006-4924-8530-4bbee0a1cfc1', '71b31a9a-522c-4d96-817e-657afbcc1b96', 'ecd6c8c0-eb6d-4842-bc89-2d49e2f4564d', NULL, 3.9700, 3.7318, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 35350.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('9131c11c-1583-413d-b592-b333bdfdf8e8', 'dcac6293-9475-4e28-ac3d-8fbb2d0a0339', '196dab25-6699-49e8-aff8-853d49ca3dc5', NULL, 9.4400, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 16000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('91e7ad48-251f-4622-b06f-063daed7b75a', 'e93e3614-4227-4ce5-ba95-a62f7002c113', '45f30c5f-52d7-45a8-86cd-fc209983b7e7', NULL, 9.9500, NULL, 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 64350.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('91fdc23e-155f-4ceb-a918-f5bd571473a0', '601da963-27e5-4ebf-8983-6ce9020e93d9', 'f1a251f8-abea-4798-b680-bb094dcd53e1', NULL, 14.2100, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 24750.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('93c8c0ba-83a9-4c31-b3a6-360fa1f2cbf5', '145b0efc-a601-40ef-9789-7feb3b5702d8', 'ecd6c8c0-eb6d-4842-bc89-2d49e2f4564d', NULL, 5.6100, 5.3295, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 35000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('95a8f0fb-4c5d-448f-addd-a83f51833766', 'e93e3614-4227-4ce5-ba95-a62f7002c113', '1aa2b2f2-6035-4a61-932c-6a3c9742bad9', NULL, 16.3300, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 97850.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('96d27eb8-af64-48c3-a14a-92ba1c52cb0e', 'dcac6293-9475-4e28-ac3d-8fbb2d0a0339', '8260fc52-f5fb-4154-9851-736cdbf8a257', NULL, 15.0400, NULL, '573ba895-1241-4235-8937-9958b7827d33', 200.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('975459e4-612c-475a-9475-74bc2e728b60', '6f26f9ee-5714-4672-a624-e2c441388479', '26bdfd12-88f6-46b9-a28f-dbfe696a04e4', NULL, 12.1500, 11.6640, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 28000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('9a4e91b2-9929-454e-944a-1ee74c6eceb2', '9bf83645-1e48-4336-92a3-2afb712dfb62', '6cbc2349-b9d1-45c0-8854-30dce14914da', NULL, 8.8100, 8.8100, 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 43650.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('9cade1ae-0620-4ef7-82d4-aa997d6702d0', 'd7f5e824-7010-43c9-af4e-6b2161ad21be', '35f510f1-7150-42bf-87b1-85a66624f5ea', NULL, 5.0000, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 217800.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('a0022aa3-6cf5-417a-805d-21b9f142b250', 'dbbf8ab4-e4ed-4072-abd3-a01baf0dd270', '3a4df2b2-32b5-469d-8d23-7c037463aed3', NULL, 5.9200, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 38000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('a0ff28ee-8049-4ff8-89e1-669eade8ac03', '71b31a9a-522c-4d96-817e-657afbcc1b96', 'd4412092-df4e-455e-9188-fd11c6dffcd5', NULL, 10.8300, 10.8300, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 174600.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('a7fc8bd9-0818-4564-88a4-5e861bdc67f3', 'dbbf8ab4-e4ed-4072-abd3-a01baf0dd270', '1a52da1f-0d52-4fcb-8a6b-39407115b8d8', NULL, 10.4600, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 180000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('a8f0e8ec-da6e-4169-8ea0-d7363b595b6f', 'e93e3614-4227-4ce5-ba95-a62f7002c113', '3b5d64fc-719c-46b8-a0b0-6508caa31388', NULL, 7.2700, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 99750.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('aa7bf322-ef51-4716-857e-bfd84d33782a', '197e2257-15e9-4355-915c-ed482b92d519', '7b921f01-b00b-4775-9eb5-61644b91114f', NULL, 7.0200, NULL, '0a88de8a-d1ed-46cb-a659-5dea1a8581a6', 15000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('ae1c5f3a-7a29-416e-9c80-25edc223a4af', '145b0efc-a601-40ef-9789-7feb3b5702d8', '8260fc52-f5fb-4154-9851-736cdbf8a257', NULL, 17.2300, 17.2300, '573ba895-1241-4235-8937-9958b7827d33', 200.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('b762ae09-4687-4b11-8e7f-b3d634743798', 'd7f5e824-7010-43c9-af4e-6b2161ad21be', '6e855b45-f21e-48c1-b317-0e6ee8dfdcdd', NULL, 5.3900, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 185400.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('b858d42b-59ab-4fd9-97ae-a5f35f02daf7', '109d48fb-a00c-44af-9ee7-1326ad1aada2', 'ce1c4f4d-92a7-40e8-bb33-842e5d3e9a65', NULL, 18.8900, 18.8900, '135d56f1-e047-459a-a5e0-260ed2c646d9', 22000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('b9560d05-2b63-4920-8a50-0f68dacb37de', '145b0efc-a601-40ef-9789-7feb3b5702d8', '613e8b12-e111-416b-83c6-573a105c0815', NULL, 11.6600, 11.6600, 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 18000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('bb5f2e3c-0c3b-43db-9223-dee83e53e114', 'd7f5e824-7010-43c9-af4e-6b2161ad21be', 'e8031ea4-90a3-4137-b63b-96c68fb775d2', NULL, 6.0600, NULL, 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 26000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('c02a1d4c-1951-430b-9dd4-085185cb95a8', '145b0efc-a601-40ef-9789-7feb3b5702d8', '25648899-ccc3-4a45-8fbf-e10cc4a87d66', NULL, 4.2400, 4.2400, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 120000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('c4a0c043-0f7a-48b7-908e-60c90e43b5a0', 'dbbf8ab4-e4ed-4072-abd3-a01baf0dd270', '3028ccd7-7afc-47d2-8c46-78749ded1a37', NULL, 5.0400, NULL, '135d56f1-e047-459a-a5e0-260ed2c646d9', 8500.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('c9992d4f-dfa4-4202-a075-d306c559c767', 'c1d5fe00-96bf-4339-aff3-11f2a6d58711', 'ee2e1070-2bc3-4c6d-bcde-7c6be8a12ed5', NULL, 6.2800, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 18000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('cdbf565b-773e-4591-81db-2ac427b15931', '71b31a9a-522c-4d96-817e-657afbcc1b96', '1a52da1f-0d52-4fcb-8a6b-39407115b8d8', NULL, 9.3200, 9.3200, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 174600.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('d63c3b6d-451e-4f7f-98d4-78212fe6a97d', 'fbb2eee4-f6aa-4e67-a3ef-f4df8b118171', 'd3bc63c7-348f-4d4e-bbfb-86454b9cbe4c', NULL, 8.1400, NULL, '573ba895-1241-4235-8937-9958b7827d33', 200.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('db16750e-5a16-4ec6-8f14-07817c19bdff', '109d48fb-a00c-44af-9ee7-1326ad1aada2', '196dab25-6699-49e8-aff8-853d49ca3dc5', NULL, 9.0100, 9.0100, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 16000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('db2583a9-1fb3-4481-87eb-628deb3cd5b0', '197e2257-15e9-4355-915c-ed482b92d519', '3b5d64fc-719c-46b8-a0b0-6508caa31388', NULL, 6.9000, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 95000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('dba73639-cd88-400c-a1a3-e3f905cc7c7c', '601da963-27e5-4ebf-8983-6ce9020e93d9', 'c8313166-6f5f-4402-bc57-6aeaded7eb49', NULL, 4.7000, NULL, '573ba895-1241-4235-8937-9958b7827d33', 153.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('dcf511ed-2125-48e1-ac61-d06f0652aa59', 'c1d5fe00-96bf-4339-aff3-11f2a6d58711', '7b921f01-b00b-4775-9eb5-61644b91114f', NULL, 8.8100, NULL, '0a88de8a-d1ed-46cb-a659-5dea1a8581a6', 15000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('e108783f-e08e-497e-b737-72d330a9dfc0', '71b31a9a-522c-4d96-817e-657afbcc1b96', 'b542502f-e31e-4ec1-a723-fb245315fa11', NULL, 9.5200, 9.5200, 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 24250.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('e3dde282-8b60-4506-9a75-98b3e57cca3c', '145b0efc-a601-40ef-9789-7feb3b5702d8', '6fb1a2d9-0342-4939-9d76-46b69ac202e6', NULL, 13.0800, 13.0800, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 18000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('e74f8476-b3c9-43a3-8261-e8ada50836f9', 'fbb2eee4-f6aa-4e67-a3ef-f4df8b118171', '4a75e970-f153-4186-b969-d09c1c94820d', NULL, 9.5600, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 48000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('e8ac490b-57ef-4c61-8101-d7695f1fd3b4', 'dcac6293-9475-4e28-ac3d-8fbb2d0a0339', 'fa762fd6-3198-4212-951a-fc113214b5b3', NULL, 16.9100, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 8000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('f10a9e38-3584-479f-8115-89f3eb4ae42a', '109d48fb-a00c-44af-9ee7-1326ad1aada2', '4a75e970-f153-4186-b969-d09c1c94820d', NULL, 9.6000, 9.0240, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 48000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('f18caba2-7f6b-4ffc-a7b3-9a3816566535', '71b31a9a-522c-4d96-817e-657afbcc1b96', '0f8e346d-8ee1-4f2a-82de-6ad0f9920f4a', NULL, 5.9600, 5.9600, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 24750.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('f19a020e-e136-4d8b-ac0c-4557bd616861', 'dcac6293-9475-4e28-ac3d-8fbb2d0a0339', '1142502a-749f-4a0c-9a52-1ab6c098a5fd', NULL, 5.8100, NULL, 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 28000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('f77997b9-52f8-46b8-ac92-5de7ce8e2c7c', 'c1d5fe00-96bf-4339-aff3-11f2a6d58711', '95c4ee0c-09e0-4e4e-8f7b-36bf5a570eef', NULL, 22.3100, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 95000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01'),
('fda71c7e-14d3-4d74-9af0-db8243c31ef5', 'fbb2eee4-f6aa-4e67-a3ef-f4df8b118171', '91643558-1c23-4463-98d5-ea0ac9d5a765', NULL, 22.3300, NULL, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 250000.00, NULL, '2026-05-23 03:14:01', '2026-05-23 03:14:01');

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

--
-- Table structure for table `subscriptions`
--

CREATE TABLE `subscriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tenant_id` char(36) NOT NULL,
  `subscription_plan_id` bigint(20) UNSIGNED NOT NULL,
  `billing_cycle` enum('monthly','yearly') NOT NULL DEFAULT 'monthly',
  `price` decimal(12,2) NOT NULL DEFAULT 0.00,
  `is_trial` tinyint(1) NOT NULL DEFAULT 0,
  `trial_ends_at` timestamp NULL DEFAULT NULL,
  `status` enum('active','cancelled','expired','pending','past_due','trial','frozen') DEFAULT 'pending',
  `starts_at` timestamp NULL DEFAULT NULL,
  `ends_at` timestamp NULL DEFAULT NULL,
  `current_period_start` timestamp NULL DEFAULT NULL,
  `current_period_end` timestamp NULL DEFAULT NULL,
  `grace_period_ends_at` timestamp NULL DEFAULT NULL,
  `cancelled_at` timestamp NULL DEFAULT NULL,
  `frozen_at` timestamp NULL DEFAULT NULL,
  `cancellation_reason` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `subscriptions`
--

INSERT INTO `subscriptions` (`id`, `tenant_id`, `subscription_plan_id`, `billing_cycle`, `price`, `is_trial`, `trial_ends_at`, `status`, `starts_at`, `ends_at`, `current_period_start`, `current_period_end`, `grace_period_ends_at`, `cancelled_at`, `frozen_at`, `cancellation_reason`, `created_at`, `updated_at`) VALUES
(1, 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 3, 'monthly', 0.00, 0, NULL, 'active', '2026-05-23 03:13:56', '2027-05-23 03:13:56', NULL, NULL, NULL, NULL, NULL, NULL, '2026-05-23 03:13:56', '2026-05-23 03:13:56'),
(2, 'f00c6132-72db-41f2-b0a5-7a46d60c4c83', 1, 'monthly', 0.00, 0, NULL, 'active', '2026-05-23 03:14:07', '2027-05-23 03:14:07', NULL, NULL, NULL, NULL, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
(3, 'dd26a475-5821-4af2-8dfc-23145ba0b321', 2, 'monthly', 0.00, 0, NULL, 'active', '2026-05-23 03:14:08', '2027-05-23 03:14:08', NULL, NULL, NULL, NULL, NULL, NULL, '2026-05-23 03:14:08', '2026-05-23 03:14:08'),
(4, '6ce03976-d6e9-4cfb-8012-f0e7e896e593', 3, 'monthly', 0.00, 0, NULL, 'active', '2026-05-23 03:14:08', '2027-05-23 03:14:08', NULL, NULL, NULL, NULL, NULL, NULL, '2026-05-23 03:14:08', '2026-05-23 03:14:08'),
(5, '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 4, 'monthly', 0.00, 0, NULL, 'active', '2026-05-23 03:14:08', '2027-05-23 03:14:08', NULL, NULL, NULL, NULL, NULL, NULL, '2026-05-23 03:14:08', '2026-05-23 03:14:08');

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

--
-- Table structure for table `subscription_invoices`
--

CREATE TABLE `subscription_invoices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tenant_id` char(36) NOT NULL,
  `subscription_id` bigint(20) UNSIGNED DEFAULT NULL,
  `subscription_plan_id` bigint(20) UNSIGNED NOT NULL,
  `invoice_number` varchar(255) NOT NULL,
  `xendit_invoice_id` varchar(255) DEFAULT NULL,
  `xendit_invoice_url` varchar(255) DEFAULT NULL,
  `amount` decimal(12,2) NOT NULL,
  `tax_amount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_amount` decimal(12,2) NOT NULL,
  `currency` varchar(3) NOT NULL DEFAULT 'IDR',
  `billing_cycle` enum('monthly','yearly') NOT NULL,
  `period_start` timestamp NULL DEFAULT NULL,
  `period_end` timestamp NULL DEFAULT NULL,
  `status` enum('pending','paid','expired','cancelled','failed') NOT NULL DEFAULT 'pending',
  `payment_method` varchar(255) DEFAULT NULL,
  `payment_channel` varchar(255) DEFAULT NULL,
  `paid_at` timestamp NULL DEFAULT NULL,
  `expired_at` timestamp NULL DEFAULT NULL,
  `xendit_response` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`xendit_response`)),
  `notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `subscription_plans`
--

CREATE TABLE `subscription_plans` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `slug` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `price_monthly` decimal(12,2) NOT NULL,
  `price_yearly` decimal(12,2) NOT NULL,
  `max_outlets` int(11) NOT NULL DEFAULT 1,
  `max_users` int(11) NOT NULL DEFAULT 2,
  `max_products` int(11) NOT NULL DEFAULT -1,
  `features` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`features`)),
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `sort_order` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `subscription_plans`
--

INSERT INTO `subscription_plans` (`id`, `name`, `slug`, `description`, `price_monthly`, `price_yearly`, `max_outlets`, `max_users`, `max_products`, `features`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES
(1, 'Starter', 'starter', 'Untuk warung, gerobak, dan usaha rumahan', 50000.00, 450000.00, 1, 3, 100, '[{\"key\":\"pos_core\",\"value\":\"true\"},{\"key\":\"product_management\",\"value\":\"true\"},{\"key\":\"basic_reports\",\"value\":\"true\"},{\"key\":\"customer_management\",\"value\":\"true\"},{\"key\":\"multi_payment\",\"value\":\"false\"},{\"key\":\"product_variant\",\"value\":\"false\"},{\"key\":\"product_combo\",\"value\":\"false\"},{\"key\":\"discount_promo\",\"value\":\"false\"},{\"key\":\"inventory_basic\",\"value\":\"false\"},{\"key\":\"inventory_advanced\",\"value\":\"false\"},{\"key\":\"table_management\",\"value\":\"false\"},{\"key\":\"recipe_bom\",\"value\":\"false\"},{\"key\":\"stock_transfer\",\"value\":\"false\"},{\"key\":\"waiter_app\",\"value\":\"false\"},{\"key\":\"qr_order\",\"value\":\"false\"},{\"key\":\"kds\",\"value\":\"false\"},{\"key\":\"manager_authorization\",\"value\":\"false\"},{\"key\":\"export_excel_pdf\",\"value\":\"false\"},{\"key\":\"loyalty_points\",\"value\":\"false\"},{\"key\":\"api_access\",\"value\":\"false\"},{\"key\":\"custom_branding\",\"value\":\"false\"}]', 1, 1, '2026-05-23 03:13:56', '2026-05-23 23:04:47'),
(2, 'Growth', 'growth', 'Untuk cafe, resto kecil, dan toko retail', 100000.00, 850000.00, 2, 10, 500, '[{\"key\":\"pos_core\",\"value\":\"true\"},{\"key\":\"product_management\",\"value\":\"true\"},{\"key\":\"basic_reports\",\"value\":\"true\"},{\"key\":\"customer_management\",\"value\":\"true\"},{\"key\":\"multi_payment\",\"value\":\"true\"},{\"key\":\"product_variant\",\"value\":\"true\"},{\"key\":\"product_combo\",\"value\":\"true\"},{\"key\":\"discount_promo\",\"value\":\"true\"},{\"key\":\"inventory_basic\",\"value\":\"true\"},{\"key\":\"inventory_advanced\",\"value\":\"false\"},{\"key\":\"table_management\",\"value\":\"true\"},{\"key\":\"recipe_bom\",\"value\":\"false\"},{\"key\":\"stock_transfer\",\"value\":\"false\"},{\"key\":\"waiter_app\",\"value\":\"false\"},{\"key\":\"qr_order\",\"value\":\"false\"},{\"key\":\"kds\",\"value\":\"false\"},{\"key\":\"manager_authorization\",\"value\":\"false\"},{\"key\":\"export_excel_pdf\",\"value\":\"true\"},{\"key\":\"loyalty_points\",\"value\":\"true\"},{\"key\":\"api_access\",\"value\":\"false\"},{\"key\":\"custom_branding\",\"value\":\"false\"}]', 1, 2, '2026-05-23 03:13:56', '2026-05-23 23:05:53'),
(3, 'Professional', 'professional', 'Untuk resto menengah dan multi-outlet', 200000.00, 2000000.00, 5, 25, -1, '[{\"key\":\"pos_core\",\"value\":\"true\"},{\"key\":\"product_management\",\"value\":\"true\"},{\"key\":\"basic_reports\",\"value\":\"true\"},{\"key\":\"customer_management\",\"value\":\"true\"},{\"key\":\"multi_payment\",\"value\":\"true\"},{\"key\":\"product_variant\",\"value\":\"true\"},{\"key\":\"product_combo\",\"value\":\"true\"},{\"key\":\"discount_promo\",\"value\":\"true\"},{\"key\":\"inventory_basic\",\"value\":\"true\"},{\"key\":\"inventory_advanced\",\"value\":\"true\"},{\"key\":\"table_management\",\"value\":\"true\"},{\"key\":\"recipe_bom\",\"value\":\"true\"},{\"key\":\"stock_transfer\",\"value\":\"true\"},{\"key\":\"waiter_app\",\"value\":\"true\"},{\"key\":\"qr_order\",\"value\":\"true\"},{\"key\":\"kds\",\"value\":\"false\"},{\"key\":\"manager_authorization\",\"value\":\"true\"},{\"key\":\"export_excel_pdf\",\"value\":\"true\"},{\"key\":\"loyalty_points\",\"value\":\"true\"},{\"key\":\"api_access\",\"value\":\"false\"},{\"key\":\"custom_branding\",\"value\":\"false\"}]', 1, 3, '2026-05-23 03:13:56', '2026-05-23 23:10:17'),
(4, 'Enterprise', 'enterprise', 'Untuk jaringan resto, franchise, dan white-label', 1000000.00, 10000000.00, -1, -1, -1, '[{\"key\":\"pos_core\",\"value\":\"true\"},{\"key\":\"product_management\",\"value\":\"true\"},{\"key\":\"basic_reports\",\"value\":\"true\"},{\"key\":\"customer_management\",\"value\":\"true\"},{\"key\":\"multi_payment\",\"value\":\"true\"},{\"key\":\"product_variant\",\"value\":\"true\"},{\"key\":\"product_combo\",\"value\":\"true\"},{\"key\":\"discount_promo\",\"value\":\"true\"},{\"key\":\"inventory_basic\",\"value\":\"true\"},{\"key\":\"inventory_advanced\",\"value\":\"true\"},{\"key\":\"table_management\",\"value\":\"true\"},{\"key\":\"recipe_bom\",\"value\":\"true\"},{\"key\":\"stock_transfer\",\"value\":\"true\"},{\"key\":\"waiter_app\",\"value\":\"true\"},{\"key\":\"qr_order\",\"value\":\"true\"},{\"key\":\"kds\",\"value\":\"true\"},{\"key\":\"manager_authorization\",\"value\":\"true\"},{\"key\":\"export_excel_pdf\",\"value\":\"true\"},{\"key\":\"loyalty_points\",\"value\":\"true\"},{\"key\":\"api_access\",\"value\":\"true\"},{\"key\":\"custom_branding\",\"value\":\"true\"},{\"key\":\"dedicated_support\",\"value\":\"true\"},{\"key\":\"sla_uptime\",\"value\":\"true\"}]', 1, 4, '2026-05-23 03:13:56', '2026-05-23 23:11:11');

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

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

CREATE TABLE `suppliers` (
  `id` char(36) NOT NULL,
  `tenant_id` char(36) NOT NULL,
  `code` varchar(20) NOT NULL,
  `name` varchar(255) NOT NULL,
  `contact_person` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `mobile` varchar(20) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `tax_number` varchar(255) DEFAULT NULL,
  `bank_name` varchar(255) DEFAULT NULL,
  `bank_account` varchar(255) DEFAULT NULL,
  `bank_account_name` varchar(255) DEFAULT NULL,
  `payment_terms` int(11) NOT NULL DEFAULT 0,
  `notes` text DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `suppliers` (`id`, `tenant_id`, `code`, `name`, `contact_person`, `email`, `phone`, `mobile`, `address`, `city`, `tax_number`, `bank_name`, `bank_account`, `bank_account_name`, `payment_terms`, `notes`, `is_active`, `created_at`, `updated_at`) VALUES
('37e46037-41a9-43e3-80ef-0e21e7c55ac8', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'SUP-005', 'PT Unilever Indonesia', 'Dewi Anggraini', 'dewi@unilever.com', '021-526-2112', NULL, 'Jl. BSD Boulevard Barat', 'Tangerang Selatan', '05.678.901.2-012.000', NULL, NULL, NULL, 45, 'Supplier saus, bumbu, dan cleaning supplies', 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('947170bc-409c-4ea4-b580-b816d119d9f3', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'SUP-007', 'PT Frisian Flag Indonesia', 'Maria Chen', 'maria@frisianflag.com', '021-460-8900', NULL, 'Jl. Raya Bogor Km. 26', 'Depok', '07.890.123.4-012.000', NULL, NULL, NULL, 30, 'Supplier dairy products', 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('b888f0e5-761a-4c18-8f73-c74101f6d6dd', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'SUP-008', 'CV Berkah Rempah', 'Hasan Basri', 'hasan@berkahrempah.com', '022-720-3456', NULL, 'Jl. Pasar Baru No. 45', 'Bandung', '08.901.234.5-012.000', NULL, NULL, NULL, 14, 'Supplier rempah-rempah dan bumbu tradisional', 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('bb625b1b-7702-400c-a2d3-6bfcd0dd3290', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'SUP-004', 'PT Fresh Produce Indonesia', 'Lisa Permata', 'lisa@freshproduce.id', '021-7883-5500', NULL, 'Pasar Induk Kramat Jati', 'Jakarta Timur', '04.567.890.1-012.000', NULL, NULL, NULL, 0, 'Supplier sayur dan buah segar', 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('cb98b0e8-e508-47f7-af35-fda03c1c7fa4', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'SUP-002', 'PT Japfa Comfeed Indonesia', 'Siti Rahayu', 'siti@japfa.co.id', '021-5795-7000', NULL, 'Jl. Daan Mogot Km. 12', 'Tangerang', '02.345.678.9-012.000', NULL, NULL, NULL, 14, 'Supplier ayam dan daging', 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('d235114e-1d8e-4624-8bd5-f7969d76e8b0', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'SUP-003', 'PT Sumber Alfaria Trijaya', 'Ahmad Wijaya', 'ahmad@alfamart.co.id', '021-5494-1818', NULL, 'Jl. M.H. Thamrin No. 9', 'Tangerang', '03.456.789.0-012.000', NULL, NULL, NULL, 7, 'Supplier kebutuhan packaging', 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('d42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'SUP-001', 'PT Indofood Sukses Makmur', 'Budi Santoso', 'budi@indofood.co.id', '021-5795-8822', NULL, 'Jl. Jend. Sudirman Kav. 76-78', 'Jakarta', '01.234.567.8-012.000', NULL, NULL, NULL, 30, 'Supplier utama bahan kering dan bumbu', 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'SUP-006', 'PT Seafood Nusantara', 'Rudi Hartono', 'rudi@seafoodnusantara.id', '021-4360-8888', NULL, 'Muara Angke, Pelabuhan', 'Jakarta Utara', '06.789.012.3-012.000', NULL, NULL, NULL, 0, 'Supplier seafood segar', 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58');

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

--
-- Table structure for table `supplier_items`
--

CREATE TABLE `supplier_items` (
  `id` char(36) NOT NULL,
  `supplier_id` char(36) NOT NULL,
  `inventory_item_id` char(36) NOT NULL,
  `supplier_sku` varchar(255) DEFAULT NULL,
  `unit_id` char(36) NOT NULL,
  `unit_conversion` decimal(12,4) NOT NULL DEFAULT 1.0000,
  `price` decimal(15,2) NOT NULL DEFAULT 0.00,
  `lead_time_days` int(11) NOT NULL DEFAULT 0,
  `min_order_qty` decimal(12,4) NOT NULL DEFAULT 1.0000,
  `is_preferred` tinyint(1) NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `supplier_items`
--

INSERT INTO `supplier_items` (`id`, `supplier_id`, `inventory_item_id`, `supplier_sku`, `unit_id`, `unit_conversion`, `price`, `lead_time_days`, `min_order_qty`, `is_preferred`, `is_active`, `created_at`, `updated_at`) VALUES
('08537c4f-2aed-4976-ab2c-7751cd9b67f8', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', '681a4ae6-cc8b-40af-b2f8-11530be29b9f', 'JAG-3447', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 31850.00, 2, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('0b69223f-cf54-45d3-a76f-8a86e3985494', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', '58217759-5292-40c1-abae-bd5a2dd71152', 'LGK-5341', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 19620.00, 1, 1.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('14ecc3fd-e876-4727-9aa4-ae6607416829', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', 'ece8261c-292f-4650-8e52-eada4ab9f5cb', 'AUR-6983', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 2325.00, 1, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('16bd75e6-d73c-4cd4-ae0b-115f20715ec1', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', 'fe611b7c-26fb-4dd5-98d0-c071277d3603', 'TBE-8897', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 257500.00, 2, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('1a75208c-1140-42c9-8c44-e137c1daabbc', 'ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', '602b0eef-f478-4e05-83af-c7b9b1d9222e', 'JPS-0990', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 35350.00, 5, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('1b336092-fc62-41cf-9d28-5275925a702d', 'ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', '3028ccd7-7afc-47d2-8c46-78749ded1a37', 'CKF-4396', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 8755.00, 7, 10.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('1c169a6d-119a-4827-8459-9a3b14ce9378', '947170bc-409c-4ea4-b580-b816d119d9f3', '7ec16d41-807e-43fc-a92f-32a6f16d0234', 'KGN-7770', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 41160.00, 5, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('1f6c2a59-49e9-4359-8985-4e1803e1226b', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', 'd7809427-bec1-4202-9f42-30981ab692d4', 'DMW-9200', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 353500.00, 6, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('2402dd97-608c-4ebe-87d7-dc536e1e628b', 'ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', '3869962f-fdd4-4407-9f42-d6ead593a087', 'SVM-3606', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 78200.00, 3, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('288ad874-9c81-46b0-8fd6-87d5bd50f514', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', '8cff6361-9336-43c4-be72-6110621e07e2', 'RZL-8937', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 132000.00, 7, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('2ab647d7-b6d2-4670-89ca-557865561bfb', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', 'a6c67f51-40f4-41b9-b060-3ccc81c4dc44', 'PUH-2548', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 33250.00, 6, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('2b355571-1989-465c-b9b4-bc7a5f3fc333', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', '5269dc61-0e4d-4a32-82b3-3c662f9c4026', 'CBX-9821', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 24000.00, 6, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('2b70eca6-78d8-415d-a4fc-4b279991ba6d', 'ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', '1aa2b2f2-6035-4a61-932c-6a3c9742bad9', 'XIY-6336', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 103550.00, 1, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('2d2d7587-24b3-4a8b-ae5f-9ea364000a5b', '947170bc-409c-4ea4-b580-b816d119d9f3', '1462554a-d08d-4da6-99d7-3b8434aeda4d', 'SWB-1095', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 21400.00, 2, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('2db24cf2-00ed-4c74-8148-b380efdbe381', '947170bc-409c-4ea4-b580-b816d119d9f3', '1a52da1f-0d52-4fcb-8a6b-39407115b8d8', 'XKD-3324', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 167400.00, 7, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('2ed7e272-b1bd-408f-a2cb-bbcef7ea77e6', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', 'd4adb886-780a-4007-a7d9-d29fd0e9dec9', 'HLC-3741', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 86450.00, 2, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('30d2c15f-6b45-4ed5-9f28-af84baef6bb7', 'cb98b0e8-e508-47f7-af35-fda03c1c7fa4', 'ae08af5c-3d51-4931-a5c0-72814e2172f5', 'BPP-9310', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 232500.00, 5, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('32e9979f-e61f-44b1-843a-fd584ac60834', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', '80adc244-40bf-4e5c-beb0-338474572b13', 'RJN-9617', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 121000.00, 5, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('342b0ac2-8383-4843-903d-0d882012d407', 'ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', '5339be37-d3ae-43f0-a586-af0a34946aa0', 'XWA-6638', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 35700.00, 1, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('3aeeb5dc-5495-494e-bb53-d8de97df83dc', '947170bc-409c-4ea4-b580-b816d119d9f3', 'd772b9f5-c0a7-42d9-bbf4-146aff9cd079', 'GFB-0068', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 17280.00, 5, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('3f1cf472-dffb-4195-9a53-5838b945f424', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', 'ae74846a-31fc-41f4-901a-74729ff714b1', 'GWU-0699', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 27440.00, 6, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('3fa245b1-c32e-43fa-9833-63f390708908', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', 'a8ce6ead-ceb8-4836-926c-59e06d8da4df', 'MXG-8789', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 49050.00, 6, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('4078f069-2f65-4c28-9567-aea89adc285d', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', '5ee772ed-780d-44c7-80a3-22040ba3251c', 'VWU-5431', '0a88de8a-d1ed-46cb-a659-5dea1a8581a6', 1.0000, 23000.00, 2, 10.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('40d936f4-5213-416a-9360-2a31c7f3666a', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', '4faa2fd8-d144-4cbd-87a0-89e62f6cf254', 'QJJ-6354', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 13650.00, 7, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('40ef61a8-d846-4139-b1ea-9ab9e511e7a7', 'cb98b0e8-e508-47f7-af35-fda03c1c7fa4', '8260fc52-f5fb-4154-9851-736cdbf8a257', 'RNY-9425', '573ba895-1241-4235-8937-9958b7827d33', 1.0000, 216.00, 3, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('42092eff-4e01-49f7-bc09-c999571d0b7b', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', '08e03421-4a39-40f3-b759-65017a25a9cd', 'VGZ-0151', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 25750.00, 4, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('42655e3b-5de4-491e-a6ce-0737ec514832', '947170bc-409c-4ea4-b580-b816d119d9f3', '0c3ddb0b-e4ce-41bc-9778-5d4c00ba2e1c', 'OFC-6889', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 26750.00, 6, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('447ebfec-55e3-4470-aa02-8f8ce12b80ce', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', 'f419cbbd-285e-4c95-a257-5a17f35aca95', 'PKK-8657', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 28000.00, 5, 1.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('49662401-0496-4000-b365-011522322c04', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', '02f6bf02-c90b-4c40-a141-2cb51fa475a3', 'YRQ-9797', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 62400.00, 7, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('4d4f3871-3f97-4507-a00e-30f44817e0b1', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', '95c4ee0c-09e0-4e4e-8f7b-36bf5a570eef', 'VFB-5352', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 96900.00, 6, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('51eaf21a-b852-4b28-95e2-1d72fc0bddd3', 'cb98b0e8-e508-47f7-af35-fda03c1c7fa4', 'c94a654a-f572-4326-8a1d-edaf43ba7a6c', 'YIJ-3664', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 3255.00, 4, 1.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('557b8a21-ff00-4810-9047-fcede91d49cb', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', 'add48938-8a33-41b6-b46b-7079e4e31bec', 'QDD-7728', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 160500.00, 2, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('591c5f73-1605-47c2-87b4-a98c758d85c4', 'cb98b0e8-e508-47f7-af35-fda03c1c7fa4', 'ffff33ea-09d2-4834-950b-b9f96e7ebdbd', 'KFZ-9686', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 20400.00, 3, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('5b2096e2-1b8c-4869-b8a1-dcb3e8ce5a0e', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', '0f8e346d-8ee1-4f2a-82de-6ad0f9920f4a', 'EMX-5118', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 26000.00, 4, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('5e1fa137-79cb-44a5-99f2-a16018e1077e', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', '35f510f1-7150-42bf-87b1-85a66624f5ea', 'AYR-6830', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 200200.00, 5, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('61ffd5a0-f6aa-45cf-afba-c9f583e6f05c', 'cb98b0e8-e508-47f7-af35-fda03c1c7fa4', 'e8031ea4-90a3-4137-b63b-96c68fb775d2', 'EIG-2525', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 22750.00, 6, 10.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('62679c9a-3474-4d18-925f-2e62b10b6c03', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', 'ecd6c8c0-eb6d-4842-bc89-2d49e2f4564d', 'LWI-6063', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 37450.00, 3, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('66e442cf-e952-40aa-9f3f-a36f2a8f0d91', '947170bc-409c-4ea4-b580-b816d119d9f3', '4499d420-8ffc-4ee0-a55b-8ce5e7211729', 'WJO-4761', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 14850.00, 5, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('6743d18b-abd6-43fd-a013-bfe69d849843', 'd235114e-1d8e-4624-8bd5-f7969d76e8b0', 'b6bb2924-53a6-4f80-9e1d-d5b11eee3545', 'XGI-2653', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 44550.00, 1, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('6a0b4aef-e1cf-4462-82ce-a46b37e72db3', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', '28922de4-43db-4c5c-8b8a-a6fa75a9a5d8', 'LSO-9299', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 68250.00, 3, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('6c14e8a5-2786-4741-9e86-555724d293e6', 'b888f0e5-761a-4c18-8f73-c74101f6d6dd', 'a30be0c2-6536-449c-8f42-49b9a706cf4d', 'FHK-2293', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 11280.00, 7, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('6c4702a7-c946-47a3-a28c-d38cc44be177', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', '50227258-bde8-4585-82c3-24de0ec10c44', 'JMW-0473', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 59800.00, 1, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('6e959251-19dd-4a21-b20f-2fad2a1a4c50', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', 'c55f2090-7bdf-4789-a9ef-eb3aa6f6a0ae', 'ISJ-1244', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 12720.00, 5, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('75e2c206-29cb-4c9f-9429-adaaabc5cf90', 'd235114e-1d8e-4624-8bd5-f7969d76e8b0', '143bfdf7-2d8a-44e6-adaa-b0c18d85c4ee', 'EHH-1040', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 38150.00, 5, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('76544f55-e071-4189-9d5a-14d19cf80016', 'ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', '0ae6dd9b-b245-4bb8-80a7-fcd09070fd4e', 'IAQ-0311', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 32000.00, 4, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('789fc6f1-070b-4097-bbe1-9a1b340a1992', '947170bc-409c-4ea4-b580-b816d119d9f3', '94bbd6b1-8bed-411c-bc4d-557e0f50a8f1', 'RKU-5968', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 45900.00, 5, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('790946bc-7cc5-4069-8742-e6f304646334', 'b888f0e5-761a-4c18-8f73-c74101f6d6dd', 'f1a251f8-abea-4798-b680-bb094dcd53e1', 'GGP-5345', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 23250.00, 6, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('7a489811-767b-4cce-ab61-4756884d3aff', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', '59ac9a43-7c4b-4a74-9358-b321df8e7d08', 'VPY-1995', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 86700.00, 1, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('7eb6fd4e-d66c-4742-a244-e06db30bfe1f', '947170bc-409c-4ea4-b580-b816d119d9f3', 'fc4ddb91-4934-4d69-9014-3fc95821a5c7', 'GOD-4928', '0a88de8a-d1ed-46cb-a659-5dea1a8581a6', 1.0000, 10920.00, 6, 10.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('82e8e2ce-5f9c-44ae-a2d6-b9577db10f46', 'b888f0e5-761a-4c18-8f73-c74101f6d6dd', '26bdfd12-88f6-46b9-a28f-dbfe696a04e4', 'KPY-1133', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 30520.00, 3, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('83f36f1d-2feb-4032-93a2-545afa7628f7', 'b888f0e5-761a-4c18-8f73-c74101f6d6dd', 'e8de376f-0808-4be3-ba0f-7792c4fbf5ea', 'ZOQ-4125', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 20900.00, 1, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('8783439e-bf0f-446f-afec-7a1d2633ac65', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', 'fcac6fd2-4ef5-46c5-9abb-cfef0a5562e7', 'PMS-2117', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 1590.00, 4, 1.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('88d3eebb-c326-42e0-be34-ce2519e675d6', 'ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', '9b0f1c92-7bc6-48dd-bfd3-f5c696ed99ec', 'YQD-4775', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 3745.00, 5, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('8c13cb98-e16a-4402-b780-e03acb3573d0', 'b888f0e5-761a-4c18-8f73-c74101f6d6dd', '0b679841-55cb-42f6-839b-e873e73120cf', 'IMM-5282', '573ba895-1241-4235-8937-9958b7827d33', 1.0000, 80.00, 3, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('8c6733c3-a360-468e-9905-b29e5850e0a5', 'd235114e-1d8e-4624-8bd5-f7969d76e8b0', '780055a4-ccdb-467a-afb7-a08339509140', 'VLQ-6131', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 68250.00, 2, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('8e8f5b21-c492-42e8-b7b4-8723115224e1', 'cb98b0e8-e508-47f7-af35-fda03c1c7fa4', 'eb332c72-7f29-4e61-bd07-6dd299ee7a90', 'ARE-2760', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 50600.00, 5, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('91dfb740-d5c8-4d25-88cf-e2f50b75f808', 'ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', 'a768fa94-81b8-43fd-9354-4f8c6dfe86ea', 'FOT-7512', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 5335.00, 5, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('921f5d3e-2940-40a7-b7f4-7ac5bcefe6f0', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', 'bbbf69aa-e712-4aa8-bc95-2edc3226376f', 'IKE-8157', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 48150.00, 3, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('9680953d-ba13-436a-93e6-6de5fd6e1ab3', 'ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', '75bae00c-97d1-4abc-a8bf-a3550a003e63', 'FXT-9404', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 824.00, 2, 5.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('9a1d00e1-425b-4d83-93c2-abfb418f2af6', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', '6fb1a2d9-0342-4939-9d76-46b69ac202e6', 'WIO-6962', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 19080.00, 6, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('9ab4e1eb-f725-4e61-bdea-fa9f677a6c0f', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', '4b4ff6ba-9a6f-43c0-b09a-612e98e913d8', 'ZZJ-6114', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 5445.00, 2, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('9b59eee8-8485-4f3f-8853-c5c7f732611f', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', '6c31aa1f-53e9-4bdb-8b17-c0bfa31eb681', 'UCT-3926', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 163500.00, 1, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('9bbdfa19-f001-44b0-84c6-a7aa24cfe201', '947170bc-409c-4ea4-b580-b816d119d9f3', '965cd683-8317-4768-ac8c-f4977dbe93a2', 'VDJ-0705', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 16200.00, 4, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('9c1019e1-2c8f-41f6-be78-391802fbf174', '947170bc-409c-4ea4-b580-b816d119d9f3', '6e16121e-48cf-49cd-b009-81d7a8f18c5b', 'ARQ-2961', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 95950.00, 7, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('9d5b671f-ed37-4af3-b6b2-072370235588', 'd235114e-1d8e-4624-8bd5-f7969d76e8b0', '08b1289b-80fb-43ad-ad09-7297baf82931', 'DJM-4585', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 116400.00, 6, 5.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('9fcd25a4-6cad-46c8-84db-f546fc8f80ce', '947170bc-409c-4ea4-b580-b816d119d9f3', '613e8b12-e111-416b-83c6-573a105c0815', 'YHI-3981', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 18900.00, 4, 1.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('a1e8a896-2076-460b-9a2a-2e8da350c42d', 'cb98b0e8-e508-47f7-af35-fda03c1c7fa4', 'fd8045ed-53fc-4b7c-acc6-f9da2b95aafb', 'TDR-0785', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 163500.00, 3, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('a54938e6-484a-408f-8ab4-da9a71247137', 'cb98b0e8-e508-47f7-af35-fda03c1c7fa4', '7b921f01-b00b-4775-9eb5-61644b91114f', 'NMD-5259', '0a88de8a-d1ed-46cb-a659-5dea1a8581a6', 1.0000, 15450.00, 5, 1.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('a777ade6-d18c-4b78-974c-345097225bec', 'd235114e-1d8e-4624-8bd5-f7969d76e8b0', '374b03f3-91f2-4345-8806-d333e0dea68f', 'YAF-8472', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 34650.00, 4, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('a8ea6bfa-cc73-4e25-a6e9-f3a6a16917a9', '947170bc-409c-4ea4-b580-b816d119d9f3', '6e855b45-f21e-48c1-b317-0e6ee8dfdcdd', 'YVA-5029', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 185400.00, 6, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('aa70f3a7-2b4d-46eb-9abf-5d4347914646', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', '8dce40bc-9e6a-46d3-83fb-5dfba5e2646b', 'CXG-6216', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 32700.00, 7, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('ac23796d-a62c-44f9-99e0-f4de1e0abb23', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', 'fab316b9-5bb9-4701-bf42-2664a6195dae', 'RUF-2301', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 47250.00, 6, 10.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('b1ca08b1-e229-4d3e-b21e-7e94630fd93d', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', '81d3c1eb-efa5-4e1f-bc7d-0b1fd8bb86cc', 'WBQ-1346', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 90950.00, 4, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('b5f4b8e1-c2be-4a89-b97a-ab267a4827c1', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', '45f30c5f-52d7-45a8-86cd-fc209983b7e7', 'MZJ-0201', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 69550.00, 5, 5.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('b9460065-62d0-47d9-a72c-488dfa494a91', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', '95159a4d-7f19-4382-a7de-ba70d4d08b65', 'CAG-6126', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 15300.00, 4, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('ba758d95-ef3a-455b-abe5-edf7abdf37b3', 'cb98b0e8-e508-47f7-af35-fda03c1c7fa4', 'b542502f-e31e-4ec1-a723-fb245315fa11', 'UHB-6906', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 22750.00, 1, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('bc7728e6-afad-452f-8e0f-4514c92322f8', '947170bc-409c-4ea4-b580-b816d119d9f3', 'ec5437de-944a-44e9-9ba1-47d0aa2075e7', 'XNV-9023', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 129600.00, 5, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('bd483de6-707c-4ef1-b93b-173980abd886', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', '22ad6310-d681-4cce-a353-214bb9aaf5b6', 'XDF-1405', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 180000.00, 5, 1.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('bea5ebb9-4c64-4561-bf21-dda6196a9a61', 'd235114e-1d8e-4624-8bd5-f7969d76e8b0', '50e4bdf2-d73b-415c-bd22-79f8477102d2', 'ZMO-2946', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 56100.00, 1, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('c1c9a836-2b75-48f6-ba87-d33d9322f10e', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', '91643558-1c23-4463-98d5-ea0ac9d5a765', 'FMR-2763', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 252500.00, 7, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('c4b40098-a477-4e26-80cc-64118af59b27', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', 'c8313166-6f5f-4402-bc57-6aeaded7eb49', 'CGU-3034', '573ba895-1241-4235-8937-9958b7827d33', 1.0000, 160.50, 6, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('c64ed7da-7220-433b-bb68-c18d7125afae', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', 'c0e26b88-77b5-4a58-ac52-ddbf02482c62', 'AQT-1307', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 18720.00, 1, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('c77a128d-d9d5-444c-99c5-6020a2700747', '947170bc-409c-4ea4-b580-b816d119d9f3', 'fa1fccf7-ef0d-4865-88ec-ed5cd852aa29', 'ETK-9157', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 13300.00, 4, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('c95dafc1-ea30-4c5d-8d56-895b4cdeeb76', '947170bc-409c-4ea4-b580-b816d119d9f3', '196dab25-6699-49e8-aff8-853d49ca3dc5', 'ELH-7378', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 15200.00, 4, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('ca5ec68d-48a2-4b87-9d48-9d093662785b', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', '562a2b01-9d6f-4c2b-94ec-b8a7ea19bc74', 'PHZ-4057', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 41400.00, 3, 10.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('cd627feb-0464-4d31-a624-93ff0d9e9778', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', '26c30409-cd63-4ab8-ba7d-e6ef140affd7', 'COB-5940', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 95000.00, 7, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('cd74b9ab-9a1f-431b-b76b-18b1736e55ab', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', '4a75e970-f153-4186-b969-d09c1c94820d', 'VBC-6373', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 44160.00, 4, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('cdd4132c-8ddb-4172-a331-079740a57390', 'd235114e-1d8e-4624-8bd5-f7969d76e8b0', '7485d9ed-db53-42bc-a32d-62d50b99a65b', 'AHE-7460', '0a88de8a-d1ed-46cb-a659-5dea1a8581a6', 1.0000, 11280.00, 3, 5.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('cf9ea0a1-5626-4141-b182-8999d4ac5b88', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', '12dea6c2-f310-446c-8ed4-e370186e0f80', 'IJF-5055', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 29960.00, 3, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('d2944d29-ee2c-40b5-bf20-82f36224fa0d', 'd42fa5a6-2c26-4dd6-89d6-b710e8a71b0d', '25648899-ccc3-4a45-8fbf-e10cc4a87d66', 'CKZ-3620', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 122400.00, 4, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('d4e992f3-29bb-4300-9e6d-fc46ebcdb551', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', '0fe42abe-ef9a-4c79-b26b-f72cf8f521ad', 'ZEX-0729', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 3800.00, 5, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('d54d8f7d-52e4-41aa-9a6d-3ca841acba0b', 'b888f0e5-761a-4c18-8f73-c74101f6d6dd', '8f345d03-bb0d-4c61-b342-4a6ccc1235c4', 'FQS-3628', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 90000.00, 3, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('d8905830-05ce-4941-80ea-a6d92676711e', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', '12bdf623-63d8-4c24-977c-f8ddf76bdc6c', 'YIM-7178', '573ba895-1241-4235-8937-9958b7827d33', 1.0000, 104.00, 5, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('da408a75-1b90-44e0-80ee-1d71fa9745cf', 'd235114e-1d8e-4624-8bd5-f7969d76e8b0', '8dbe9773-a8a0-45b4-a108-a5cb4f10b0ce', 'TUT-0574', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 36400.00, 6, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('dec6df62-61b7-4b4a-afc9-6e93ba0f92d9', 'b888f0e5-761a-4c18-8f73-c74101f6d6dd', '8757ff98-056c-41a5-8e34-b7591bbc67d8', 'UXH-5223', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 2350.00, 3, 10.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('e26fb12e-9510-4498-9331-ba8dc6b2678e', '947170bc-409c-4ea4-b580-b816d119d9f3', '6cbc2349-b9d1-45c0-8854-30dce14914da', 'WIU-8488', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 45450.00, 3, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('e35586a7-0b39-457e-9f72-370e513a7e22', 'd235114e-1d8e-4624-8bd5-f7969d76e8b0', 'ee2e1070-2bc3-4c6d-bcde-7c6be8a12ed5', 'SJO-5606', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 17640.00, 4, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('e62016b9-5846-444e-9a51-2e98203af1ec', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', 'd7acf05f-2978-4d96-bf38-dae8cdef4f6a', 'WLX-8697', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 93500.00, 2, 10.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('ea6396f6-4c78-48bf-995d-67833b4cfccb', '37e46037-41a9-43e3-80ef-0e21e7c55ac8', 'fcca06b4-4841-4891-ae01-a75f662b6968', 'GRI-7314', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 47700.00, 6, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('eb4cce4e-2fb7-4bc3-beae-fe1c69051bdf', 'cb98b0e8-e508-47f7-af35-fda03c1c7fa4', 'f7e69a23-b5e3-4054-b039-5502c76313fc', 'JXN-4483', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 127200.00, 2, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('ec330ec6-d361-4c5d-a5c2-c3337bded99e', 'b888f0e5-761a-4c18-8f73-c74101f6d6dd', '60c0d6d0-df03-4f4f-8a8f-b5475524329c', 'VHZ-1303', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 82450.00, 6, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('ee1051e2-e0d1-41f1-9ee2-1173bf1a7a72', 'cb98b0e8-e508-47f7-af35-fda03c1c7fa4', 'd3bc63c7-348f-4d4e-bbfb-86454b9cbe4c', 'DEQ-4978', '573ba895-1241-4235-8937-9958b7827d33', 1.0000, 208.00, 7, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('ef735768-5b3c-479e-b93f-b2e2a7292f0a', 'ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', '4b0a0750-2dfc-426d-9380-878eee141971', 'JKR-5299', '0a88de8a-d1ed-46cb-a659-5dea1a8581a6', 1.0000, 32200.00, 1, 1.0000, 1, 1, '2026-05-23 03:13:59', '2026-05-23 03:13:59'),
('f07d0a45-f89d-4359-84cc-7fa69fd2fbc2', 'b888f0e5-761a-4c18-8f73-c74101f6d6dd', '250ac775-be22-419c-a8e3-a82ef45a8232', 'PFW-6670', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 17100.00, 2, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('f4084ef6-1302-4a36-b5a0-3ccaddd065d6', 'd235114e-1d8e-4624-8bd5-f7969d76e8b0', '3b5d64fc-719c-46b8-a0b0-6508caa31388', 'VJD-9308', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 103550.00, 2, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('f573f77e-d79d-46ca-a285-305d655d08f5', 'b888f0e5-761a-4c18-8f73-c74101f6d6dd', '9ff4762a-46d2-4f5b-a946-09e898d415f2', 'KWU-9973', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 59950.00, 2, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('f6bce2fa-173c-41ad-9a89-b0e63f901f37', 'bb625b1b-7702-400c-a2d3-6bfcd0dd3290', 'fa762fd6-3198-4212-951a-fc113214b5b3', 'ZZU-8648', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 7440.00, 1, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('f7927b67-e915-4450-8fd7-8a076f0535a1', 'd235114e-1d8e-4624-8bd5-f7969d76e8b0', '1142502a-749f-4a0c-9a52-1ab6c098a5fd', 'BLE-1776', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 1.0000, 29400.00, 4, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('f8d56bdc-e1ac-45d6-969a-d8fdd5a1b42e', 'ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', '3a4df2b2-32b5-469d-8d23-7c037463aed3', 'ACG-1274', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 39520.00, 5, 5.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('f8e0358f-f4f3-4705-a583-23f1523b1498', '947170bc-409c-4ea4-b580-b816d119d9f3', 'c187bd9b-554f-4614-b810-6416d9c155e5', 'IAI-3015', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 48150.00, 1, 1.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('fd3ec279-7ad8-4750-8806-85f905bd48b8', 'ea9b5ac7-cd98-41d7-8e6a-73f32dcdcd91', 'ce1c4f4d-92a7-40e8-bb33-842e5d3e9a65', 'WPQ-3971', '135d56f1-e047-459a-a5e0-260ed2c646d9', 1.0000, 20240.00, 4, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('fd63b574-d30c-4575-93c0-1f5b1a14c981', '947170bc-409c-4ea4-b580-b816d119d9f3', 'd4412092-df4e-455e-9188-fd11c6dffcd5', 'FML-1660', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 1.0000, 187200.00, 7, 10.0000, 1, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58');

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

--
-- Table structure for table `tables`
--

CREATE TABLE `tables` (
  `id` char(36) NOT NULL,
  `tenant_id` char(36) NOT NULL,
  `outlet_id` char(36) NOT NULL,
  `floor_id` char(36) NOT NULL,
  `number` varchar(20) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `capacity` tinyint(3) UNSIGNED NOT NULL DEFAULT 4,
  `position_x` int(11) NOT NULL DEFAULT 0,
  `position_y` int(11) NOT NULL DEFAULT 0,
  `width` int(11) NOT NULL DEFAULT 100,
  `height` int(11) NOT NULL DEFAULT 100,
  `shape` varchar(20) NOT NULL DEFAULT 'rectangle',
  `status` varchar(20) NOT NULL DEFAULT 'available',
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `qr_token` varchar(64) DEFAULT NULL,
  `qr_generated_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tables`
--

INSERT INTO `tables` (`id`, `tenant_id`, `outlet_id`, `floor_id`, `number`, `name`, `capacity`, `position_x`, `position_y`, `width`, `height`, `shape`, `status`, `is_active`, `qr_token`, `qr_generated_at`, `created_at`, `updated_at`) VALUES
('03372f93-1290-47ba-8b51-33d403225d1e', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8d08c35f-ec5f-492e-85cf-9729d3ca647d', '9', 'VIP 1', 8, 50, 50, 150, 120, 'rectangle', 'occupied', 1, 'vyXPqLmP2rRRXbCPvvBkwG6KO89Ox6o1', '2026-05-23 03:14:15', '2026-05-23 03:14:07', '2026-05-23 03:14:15'),
('06419276-93e5-4a4a-b4f4-1065a5b6fac7', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '9f03c133-c785-469c-bdfa-ee81f0f8428e', '5', 'Meja 5', 4, 50, 170, 100, 100, 'square', 'occupied', 1, 'qy9YuWngxDz9kIjoIZ5IlXNiN174kqMD', '2026-05-23 03:14:15', '2026-05-23 03:14:07', '2026-05-23 03:14:15'),
('1424eadb-8c68-4664-9985-9b7540c706b8', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'ff511a72-e0c0-4248-b66b-04a6b2c92137', '17', 'Garden 3', 6, 310, 50, 130, 100, 'rectangle', 'reserved', 1, 'AbSYv3xDP92N9pHCEkC9f2GzhAkDqfom', '2026-05-23 03:14:15', '2026-05-23 03:14:07', '2026-05-23 03:14:15'),
('15207e84-8269-4f83-86b3-8aaf433954ac', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8e0da0ba-64b1-4946-9b27-6f0910bfc4f3', '13', 'Meja 13', 4, 170, 200, 100, 100, 'square', 'occupied', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:15'),
('21bee825-3b34-4868-bb91-69644cd443b0', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8e0da0ba-64b1-4946-9b27-6f0910bfc4f3', '10', 'VIP 2', 10, 220, 50, 180, 120, 'rectangle', 'occupied', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:15'),
('2352cfd9-1280-41a7-94bd-3debcba39fba', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8d08c35f-ec5f-492e-85cf-9729d3ca647d', '12', 'Meja 12', 4, 50, 200, 100, 100, 'square', 'occupied', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:15'),
('2d210fca-2d76-4798-8633-c116321c8a94', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '50f42b67-6e20-4d8d-945c-dd74b2515da1', '3', 'Meja 3', 2, 290, 50, 100, 100, 'square', 'occupied', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('2ddf1613-ccd3-4137-a3b3-8d8e36c795fd', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8d08c35f-ec5f-492e-85cf-9729d3ca647d', '11', 'VIP 3', 6, 420, 50, 120, 120, 'circle', 'occupied', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('2fce7eb9-9e2f-49f3-b199-4ca1b44299ab', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '9f03c133-c785-469c-bdfa-ee81f0f8428e', '8', 'Meja 8', 4, 460, 170, 100, 100, 'square', 'reserved', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('329c44e0-1153-4e78-a191-ef385e66d72d', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8e0da0ba-64b1-4946-9b27-6f0910bfc4f3', '11', 'VIP 3', 6, 420, 50, 120, 120, 'circle', 'occupied', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('3651296e-9c58-4764-9e07-4b05eca7a668', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '9f03c133-c785-469c-bdfa-ee81f0f8428e', '2', 'Meja 2', 4, 170, 50, 100, 100, 'square', 'reserved', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:15'),
('3ad11a71-5724-427b-8834-cb9dba3980d2', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '9f03c133-c785-469c-bdfa-ee81f0f8428e', '4', 'Meja 4', 6, 410, 50, 120, 100, 'rectangle', 'reserved', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:15'),
('49ab524c-6613-416f-85e8-28f778d5d4ef', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ac83c2a8-7047-4f4e-9f46-22f225859053', '16', 'Garden 2', 4, 180, 50, 100, 100, 'circle', 'dirty', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:15'),
('59f7644a-cabc-4515-9d10-01f3628ac01f', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'ff511a72-e0c0-4248-b66b-04a6b2c92137', '18', 'Garden 4', 2, 50, 180, 100, 100, 'circle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('5b403760-a59f-4cae-882c-f9433a66f40b', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '9f03c133-c785-469c-bdfa-ee81f0f8428e', '7', 'Meja 7', 8, 290, 170, 150, 100, 'rectangle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('62ebd55e-d557-4d6b-92f8-b705489b07f5', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8d08c35f-ec5f-492e-85cf-9729d3ca647d', '14', 'Meja 14', 2, 290, 200, 100, 100, 'circle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('63da424f-3d77-4cc2-ad7c-0b841e3fc090', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '9f03c133-c785-469c-bdfa-ee81f0f8428e', '6', 'Meja 6', 2, 170, 170, 100, 100, 'circle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('71382475-fe98-4390-81ef-63527e55ac6f', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '50f42b67-6e20-4d8d-945c-dd74b2515da1', '2', 'Meja 2', 4, 170, 50, 100, 100, 'square', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('7e028584-9088-4539-91a3-0d91cb0fb81c', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8d08c35f-ec5f-492e-85cf-9729d3ca647d', '10', 'VIP 2', 10, 220, 50, 180, 120, 'rectangle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('7fb84a9a-85a0-4a52-803f-217c4db1998b', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '50f42b67-6e20-4d8d-945c-dd74b2515da1', '1', 'Meja 1', 4, 50, 50, 100, 100, 'square', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('800847c6-2621-4ce7-98ed-4b5db56ab9d9', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'ff511a72-e0c0-4248-b66b-04a6b2c92137', '15', 'Garden 1', 4, 50, 50, 100, 100, 'circle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('81d83d96-8f7e-4a1d-a31d-0dde22b2f1a5', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ac83c2a8-7047-4f4e-9f46-22f225859053', '18', 'Garden 4', 2, 50, 180, 100, 100, 'circle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('883a753e-eab3-4ca4-ad65-95af46eb8060', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '50f42b67-6e20-4d8d-945c-dd74b2515da1', '5', 'Meja 5', 4, 50, 170, 100, 100, 'square', 'occupied', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('8b6ce496-1aa9-464d-bb45-c5a002e13e24', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '9f03c133-c785-469c-bdfa-ee81f0f8428e', '3', 'Meja 3', 2, 290, 50, 100, 100, 'square', 'occupied', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('8c73a435-fa9f-497f-b882-2cbb8d459bfd', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'ff511a72-e0c0-4248-b66b-04a6b2c92137', '16', 'Garden 2', 4, 180, 50, 100, 100, 'circle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('95406070-5994-4596-af5e-9dc2f0ed8244', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '9f03c133-c785-469c-bdfa-ee81f0f8428e', '1', 'Meja 1', 4, 50, 50, 100, 100, 'square', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('97262af3-e204-4cac-8883-642c58296880', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ac83c2a8-7047-4f4e-9f46-22f225859053', '20', 'Garden 6', 8, 310, 180, 160, 100, 'rectangle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('9f179624-f8e1-443a-8b6b-cccf0330bef2', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ac83c2a8-7047-4f4e-9f46-22f225859053', '19', 'Garden 5', 4, 180, 180, 100, 100, 'square', 'occupied', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('aa396229-c551-4da6-99ce-353c9b047bd3', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '50f42b67-6e20-4d8d-945c-dd74b2515da1', '8', 'Meja 8', 4, 460, 170, 100, 100, 'square', 'reserved', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('ac6ef5d9-42e9-45e8-a3e0-7be106436b7d', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '8d08c35f-ec5f-492e-85cf-9729d3ca647d', '13', 'Meja 13', 4, 170, 200, 100, 100, 'square', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('b4d7fe18-7ba1-4714-bcb6-6a177439fafb', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8e0da0ba-64b1-4946-9b27-6f0910bfc4f3', '9', 'VIP 1', 8, 50, 50, 150, 120, 'rectangle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('b50f90cd-908f-49bd-b564-db5b09249b82', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'ff511a72-e0c0-4248-b66b-04a6b2c92137', '19', 'Garden 5', 4, 180, 180, 100, 100, 'square', 'occupied', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('b5d42ceb-d218-464c-8fed-e85597b38106', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '50f42b67-6e20-4d8d-945c-dd74b2515da1', '7', 'Meja 7', 8, 290, 170, 150, 100, 'rectangle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('c9c39032-fa86-4e39-a751-4f125ad05627', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ac83c2a8-7047-4f4e-9f46-22f225859053', '17', 'Garden 3', 6, 310, 50, 130, 100, 'rectangle', 'reserved', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('cac87761-19fc-4935-bc20-e20957396993', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ac83c2a8-7047-4f4e-9f46-22f225859053', '15', 'Garden 1', 4, 50, 50, 100, 100, 'circle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('d0672c0f-4a76-45bc-9e3d-881d407b381f', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', 'ff511a72-e0c0-4248-b66b-04a6b2c92137', '20', 'Garden 6', 8, 310, 180, 160, 100, 'rectangle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('dd445cc3-5ced-4635-b3be-c576ac38e803', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '50f42b67-6e20-4d8d-945c-dd74b2515da1', '4', 'Meja 4', 6, 410, 50, 120, 100, 'rectangle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('fd32b014-049d-49b4-aed5-516c0c2bfce4', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8e0da0ba-64b1-4946-9b27-6f0910bfc4f3', '12', 'Meja 12', 4, 50, 200, 100, 100, 'square', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('fe41ce9e-42dc-43ea-a67c-9e664a1e40f2', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8e0da0ba-64b1-4946-9b27-6f0910bfc4f3', '14', 'Meja 14', 2, 290, 200, 100, 100, 'circle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('ff94eaa7-d005-49f3-8ca3-477828652e22', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'e5eda2e6-be39-4d86-abb0-eb5723d6af40', '50f42b67-6e20-4d8d-945c-dd74b2515da1', '6', 'Meja 6', 2, 170, 170, 100, 100, 'circle', 'available', 1, NULL, NULL, '2026-05-23 03:14:07', '2026-05-23 03:14:07');

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

--
-- Table structure for table `table_sessions`
--

CREATE TABLE `table_sessions` (
  `id` char(36) NOT NULL,
  `tenant_id` char(36) NOT NULL,
  `table_id` char(36) NOT NULL,
  `opened_by` char(36) DEFAULT NULL,
  `closed_by` char(36) DEFAULT NULL,
  `opened_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `closed_at` timestamp NULL DEFAULT NULL,
  `guest_count` tinyint(3) UNSIGNED NOT NULL DEFAULT 1,
  `notes` text DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `table_sessions`
--

INSERT INTO `table_sessions` (`id`, `tenant_id`, `table_id`, `opened_by`, `closed_by`, `opened_at`, `closed_at`, `guest_count`, `notes`, `status`, `created_at`, `updated_at`) VALUES
('0946039a-23bd-433c-bc6e-83b631a5ac65', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '21bee825-3b34-4868-bb91-69644cd443b0', 'a40932fa-dab7-4175-b008-182ac8f33d97', NULL, '2026-05-23 02:06:15', NULL, 6, 'Group meeting kantor', 'active', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('64c81ab3-3f6c-4880-8e30-7911f4faca36', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '2352cfd9-1280-41a7-94bd-3debcba39fba', 'a40932fa-dab7-4175-b008-182ac8f33d97', NULL, '2026-05-23 02:52:15', NULL, 1, 'Tamu VIP', 'active', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('7bcc00b1-f6e9-4574-9b62-c28d8da87809', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '03372f93-1290-47ba-8b51-33d403225d1e', 'a40932fa-dab7-4175-b008-182ac8f33d97', NULL, '2026-05-23 02:12:15', NULL, 2, 'Couple reguler', 'active', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('c718b58e-6d29-47af-8e61-3b9e3459f8ab', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '15207e84-8269-4f83-86b3-8aaf433954ac', 'a40932fa-dab7-4175-b008-182ac8f33d97', NULL, '2026-05-23 01:44:15', NULL, 4, 'Keluarga dengan anak', 'active', '2026-05-23 03:14:15', '2026-05-23 03:14:15');

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

--
-- Table structure for table `tenants`
--

CREATE TABLE `tenants` (
  `id` char(36) NOT NULL,
  `code` varchar(50) NOT NULL,
  `name` varchar(255) NOT NULL,
  `logo` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `subscription_reminder_h7_at` timestamp NULL DEFAULT NULL,
  `subscription_reminder_h3_at` timestamp NULL DEFAULT NULL,
  `subscription_reminder_h1_at` timestamp NULL DEFAULT NULL,
  `data_deletion_warning_1_at` timestamp NULL DEFAULT NULL,
  `data_deletion_warning_2_at` timestamp NULL DEFAULT NULL,
  `is_deleted` tinyint(1) NOT NULL DEFAULT 0,
  `phone` varchar(20) DEFAULT NULL,
  `currency` varchar(10) NOT NULL DEFAULT 'IDR',
  `timezone` varchar(50) NOT NULL DEFAULT 'Asia/Jakarta',
  `tax_percentage` decimal(5,2) NOT NULL DEFAULT 11.00,
  `tax_enabled` tinyint(1) NOT NULL DEFAULT 1,
  `tax_mode` enum('exclusive','inclusive') NOT NULL DEFAULT 'exclusive' COMMENT 'exclusive = tax added on top, inclusive = tax included in price',
  `service_charge_percentage` decimal(5,2) NOT NULL DEFAULT 0.00,
  `service_charge_enabled` tinyint(1) NOT NULL DEFAULT 0,
  `subscription_plan` varchar(50) NOT NULL DEFAULT 'free',
  `subscription_expires_at` timestamp NULL DEFAULT NULL,
  `trial_used` tinyint(1) NOT NULL DEFAULT 0,
  `trial_started_at` timestamp NULL DEFAULT NULL,
  `trial_ended_at` timestamp NULL DEFAULT NULL,
  `onboarding_completed_at` timestamp NULL DEFAULT NULL,
  `max_outlets` int(11) NOT NULL DEFAULT 1,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tenants`
--

INSERT INTO `tenants` (`id`, `code`, `name`, `logo`, `email`, `subscription_reminder_h7_at`, `subscription_reminder_h3_at`, `subscription_reminder_h1_at`, `data_deletion_warning_1_at`, `data_deletion_warning_2_at`, `is_deleted`, `phone`, `currency`, `timezone`, `tax_percentage`, `tax_enabled`, `tax_mode`, `service_charge_percentage`, `service_charge_enabled`, `subscription_plan`, `subscription_expires_at`, `trial_used`, `trial_started_at`, `trial_ended_at`, `onboarding_completed_at`, `max_outlets`, `is_active`, `created_at`, `updated_at`) VALUES
('3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'ENT434', 'Enterprise Food Chain', NULL, 'enterprise@demo.com', NULL, NULL, NULL, NULL, NULL, 0, '+1-845-741-7735', 'IDR', 'Asia/Jakarta', 11.00, 1, 'exclusive', 5.00, 0, 'free', NULL, 0, NULL, NULL, NULL, -1, 1, '2026-05-23 03:14:08', '2026-05-23 03:14:08'),
('6ce03976-d6e9-4cfb-8012-f0e7e896e593', 'PRO652', 'Restaurant Professional', NULL, 'professional@demo.com', NULL, NULL, NULL, NULL, NULL, 0, '+1-617-571-0691', 'IDR', 'Asia/Jakarta', 11.00, 1, 'exclusive', 5.00, 0, 'free', NULL, 0, NULL, NULL, NULL, 5, 1, '2026-05-23 03:14:08', '2026-05-23 03:14:08'),
('dd26a475-5821-4af2-8dfc-23145ba0b321', 'GRO901', 'Cafe Growth', NULL, 'growth@demo.com', NULL, NULL, NULL, NULL, NULL, 0, '+14806749100', 'IDR', 'Asia/Jakarta', 11.00, 1, 'exclusive', 5.00, 0, 'free', NULL, 0, NULL, NULL, NULL, 2, 1, '2026-05-23 03:14:08', '2026-05-23 03:14:08'),
('f00c6132-72db-41f2-b0a5-7a46d60c4c83', 'STA849', 'Warung Kopi Starter', NULL, 'starter@demo.com', NULL, NULL, NULL, NULL, NULL, 0, '1-571-899-6507', 'IDR', 'Asia/Jakarta', 11.00, 1, 'exclusive', 5.00, 0, 'free', NULL, 0, NULL, NULL, NULL, 1, 1, '2026-05-23 03:14:07', '2026-05-23 03:14:07'),
('fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'DEMO001', 'Demo Restaurant', NULL, 'demo@restaurant.com', NULL, NULL, NULL, NULL, NULL, 0, '08123456789', 'IDR', 'Asia/Jakarta', 11.00, 1, 'exclusive', 5.00, 0, 'premium', NULL, 0, NULL, NULL, NULL, 5, 1, '2026-05-23 03:13:56', '2026-05-23 03:13:56');

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

--
-- Table structure for table `transactions`
--

CREATE TABLE `transactions` (
  `id` char(36) NOT NULL,
  `tenant_id` char(36) NOT NULL,
  `outlet_id` char(36) NOT NULL,
  `pos_session_id` char(36) DEFAULT NULL,
  `table_id` char(36) DEFAULT NULL,
  `table_session_id` char(36) DEFAULT NULL,
  `order_type` varchar(20) NOT NULL DEFAULT 'dine_in',
  `customer_id` char(36) DEFAULT NULL,
  `customer_name` varchar(255) DEFAULT NULL,
  `user_id` char(36) NOT NULL,
  `waiter_id` char(36) DEFAULT NULL,
  `transaction_number` varchar(50) NOT NULL,
  `type` enum('sale','refund','void') NOT NULL,
  `original_transaction_id` char(36) DEFAULT NULL,
  `subtotal` decimal(15,2) NOT NULL,
  `discount_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `tax_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `service_charge_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `rounding` decimal(15,2) NOT NULL DEFAULT 0.00,
  `grand_total` decimal(15,2) NOT NULL,
  `payment_amount` decimal(15,2) NOT NULL,
  `change_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `tax_percentage` decimal(5,2) NOT NULL DEFAULT 0.00,
  `tax_mode` enum('exclusive','inclusive') NOT NULL DEFAULT 'exclusive' COMMENT 'Tax calculation mode used for this transaction',
  `service_charge_percentage` decimal(5,2) NOT NULL DEFAULT 0.00,
  `points_earned` decimal(12,2) NOT NULL DEFAULT 0.00,
  `points_redeemed` decimal(12,2) NOT NULL DEFAULT 0.00,
  `notes` text DEFAULT NULL,
  `status` enum('pending','completed','voided') NOT NULL DEFAULT 'pending',
  `completed_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transactions`
--

INSERT INTO `transactions` (`id`, `tenant_id`, `outlet_id`, `pos_session_id`, `table_id`, `table_session_id`, `order_type`, `customer_id`, `customer_name`, `user_id`, `waiter_id`, `transaction_number`, `type`, `original_transaction_id`, `subtotal`, `discount_amount`, `tax_amount`, `service_charge_amount`, `rounding`, `grand_total`, `payment_amount`, `change_amount`, `tax_percentage`, `tax_mode`, `service_charge_percentage`, `points_earned`, `points_redeemed`, `notes`, `status`, `completed_at`, `created_at`, `updated_at`) VALUES
('055df0d0-485d-4bf8-b65f-8c6d3c23780e', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'dine_in', '6e52bd5c-da0e-4f9f-8c3d-66a2ad45a9cc', 'Siti Rahayu', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260522-0009', 'sale', NULL, 181000.00, 36200.00, 15928.00, 7240.00, 32.00, 168000.00, 168000.00, 0.00, 11.00, 'exclusive', 5.00, 16.00, 0.00, NULL, 'completed', '2026-05-22 07:08:00', '2026-05-22 07:08:00', '2026-05-22 07:08:00'),
('10ea9c3a-03e1-4ab5-91b1-587fc5fe7db8', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'dine_in', '571e7a12-37ab-42f9-8842-d31cd5bd04e0', 'Budi Santoso', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260522-0013', 'sale', NULL, 134000.00, 0.00, 14740.00, 6700.00, 60.00, 155500.00, 155500.00, 0.00, 11.00, 'exclusive', 5.00, 15.00, 0.00, NULL, 'completed', '2026-05-22 10:30:00', '2026-05-22 10:30:00', '2026-05-22 10:30:00'),
('2eb6c62e-265b-4729-9cd7-153bd94e86a2', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'dine_in', NULL, 'Walk-in', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260522-0011', 'sale', NULL, 86000.00, 0.00, 9460.00, 4300.00, 40.00, 99800.00, 100000.00, 200.00, 11.00, 'exclusive', 5.00, 9.00, 0.00, NULL, 'completed', '2026-05-22 08:46:00', '2026-05-22 08:46:00', '2026-05-23 03:14:15'),
('3bd03b37-155f-4e68-b91e-a536e438061d', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '03cd719c-fd8a-48c9-80bc-be69bf798802', NULL, NULL, 'dine_in', NULL, 'Ibu dan Anak', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260523-0007', 'sale', NULL, 129000.00, 0.00, 14190.00, 6450.00, 60.00, 149700.00, 150000.00, 300.00, 11.00, 'exclusive', 5.00, 14.00, 0.00, NULL, 'completed', '2026-05-23 03:13:00', '2026-05-23 03:13:00', '2026-05-23 03:14:15'),
('3f20ceb1-27fd-45ec-a254-697adca65081', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '03cd719c-fd8a-48c9-80bc-be69bf798802', NULL, NULL, 'dine_in', '6e52bd5c-da0e-4f9f-8c3d-66a2ad45a9cc', 'Siti Rahayu', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260523-0006', 'sale', NULL, 83000.00, 16600.00, 7304.00, 3320.00, 76.00, 77100.00, 77100.00, 0.00, 11.00, 'exclusive', 5.00, 7.00, 0.00, NULL, 'completed', '2026-05-23 02:39:00', '2026-05-23 02:39:00', '2026-05-23 02:39:00'),
('41091492-bb72-4a62-9fb8-d187bad77d9b', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'takeaway', NULL, 'Walk-in', '69353b8f-83e5-40d9-95a8-9c47e42825b3', NULL, 'MAIN-20260522-0005', 'sale', NULL, 36000.00, 0.00, 3960.00, 1800.00, 40.00, 41800.00, 50000.00, 8200.00, 11.00, 'exclusive', 5.00, 4.00, 0.00, NULL, 'completed', '2026-05-22 03:54:00', '2026-05-22 03:54:00', '2026-05-23 03:14:15'),
('6ea75ed4-5356-4bfb-b8bd-9cf2890ecfa8', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'dine_in', NULL, 'Family Dinner', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260522-0012', 'sale', NULL, 251000.00, 25100.00, 24849.00, 11295.00, 56.00, 262100.00, 270000.00, 7900.00, 11.00, 'exclusive', 5.00, 26.00, 0.00, NULL, 'completed', '2026-05-22 09:26:00', '2026-05-22 09:26:00', '2026-05-23 03:14:15'),
('78a14c94-de6b-4a40-8c22-c6727007ba24', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '03cd719c-fd8a-48c9-80bc-be69bf798802', NULL, NULL, 'dine_in', 'd598d9e8-b195-49a3-9c6d-f50ad36ea809', 'Jane Smith', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260523-0004', 'sale', NULL, 93000.00, 0.00, 10230.00, 4650.00, 20.00, 107900.00, 107900.00, 0.00, 11.00, 'exclusive', 5.00, 10.00, 0.00, NULL, 'completed', '2026-05-23 01:40:00', '2026-05-23 01:40:00', '2026-05-23 01:40:00'),
('873d1b7b-ed44-4f67-9d55-baa409726450', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '03cd719c-fd8a-48c9-80bc-be69bf798802', NULL, NULL, 'dine_in', NULL, 'Group Brunch', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260523-0003', 'sale', NULL, 191000.00, 19100.00, 18909.00, 8595.00, 96.00, 199500.00, 200000.00, 500.00, 11.00, 'exclusive', 5.00, 19.00, 0.00, NULL, 'completed', '2026-05-23 01:06:00', '2026-05-23 01:06:00', '2026-05-23 03:14:15'),
('8ba905a7-3860-4c95-9543-8b6d2f235b07', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'dine_in', '9ee4e721-f68b-464b-a08e-b3e250c82330', 'Ahmad Yusuf', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260522-0008', 'sale', NULL, 70000.00, 0.00, 7700.00, 3500.00, 0.00, 81200.00, 90000.00, 8800.00, 11.00, 'exclusive', 5.00, 8.00, 0.00, NULL, 'completed', '2026-05-22 05:59:00', '2026-05-22 05:59:00', '2026-05-23 03:14:15'),
('8fb4df5f-6846-46d6-a89e-ea25ca779ede', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'dine_in', NULL, 'Meeting Room A', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260522-0003', 'sale', NULL, 171000.00, 17100.00, 16929.00, 7695.00, 76.00, 178600.00, 180000.00, 1400.00, 11.00, 'exclusive', 5.00, 17.00, 0.00, NULL, 'completed', '2026-05-22 02:20:00', '2026-05-22 02:20:00', '2026-05-23 03:14:15'),
('93f89ddb-d976-422d-bfce-304a3de38207', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'delivery', NULL, 'ShopeeFood #SF001', '69353b8f-83e5-40d9-95a8-9c47e42825b3', NULL, 'MAIN-20260522-0014', 'sale', NULL, 78000.00, 0.00, 8580.00, 3900.00, 20.00, 90500.00, 90500.00, 0.00, 11.00, 'exclusive', 5.00, 9.00, 0.00, NULL, 'completed', '2026-05-22 11:20:00', '2026-05-22 11:20:00', '2026-05-22 11:20:00'),
('9ba419bf-47e6-4cc7-975c-6ba317d02e6d', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '03cd719c-fd8a-48c9-80bc-be69bf798802', NULL, NULL, 'takeaway', NULL, 'Walk-in', '69353b8f-83e5-40d9-95a8-9c47e42825b3', NULL, 'MAIN-20260523-0005', 'sale', NULL, 61000.00, 0.00, 6710.00, 3050.00, 40.00, 70800.00, 80000.00, 9200.00, 11.00, 'exclusive', 5.00, 7.00, 0.00, NULL, 'completed', '2026-05-23 02:25:00', '2026-05-23 02:25:00', '2026-05-23 03:14:15'),
('ae7c8590-fb51-4b01-bd05-2efecf52edbf', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '03cd719c-fd8a-48c9-80bc-be69bf798802', NULL, NULL, 'takeaway', NULL, 'Walk-in', '69353b8f-83e5-40d9-95a8-9c47e42825b3', NULL, 'MAIN-20260523-0002', 'sale', NULL, 98000.00, 0.00, 10780.00, 4900.00, 20.00, 113700.00, 113700.00, 0.00, 11.00, 'exclusive', 5.00, 11.00, 0.00, NULL, 'completed', '2026-05-23 00:52:00', '2026-05-23 00:52:00', '2026-05-23 00:52:00'),
('af3f4485-b725-411a-b9bf-7977b576072f', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'dine_in', 'd598d9e8-b195-49a3-9c6d-f50ad36ea809', 'Jane Smith', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260522-0004', 'sale', NULL, 85000.00, 0.00, 9350.00, 4250.00, 0.00, 98600.00, 98600.00, 0.00, 11.00, 'exclusive', 5.00, 9.00, 0.00, NULL, 'completed', '2026-05-22 02:45:00', '2026-05-22 02:45:00', '2026-05-22 02:45:00'),
('bbae08aa-520f-481a-b58a-eb9f6086c498', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'takeaway', NULL, 'Walk-in', '69353b8f-83e5-40d9-95a8-9c47e42825b3', NULL, 'MAIN-20260522-0015', 'sale', NULL, 32000.00, 0.00, 3520.00, 1600.00, 80.00, 37200.00, 40000.00, 2800.00, 11.00, 'exclusive', 5.00, 3.00, 0.00, NULL, 'completed', '2026-05-22 12:24:00', '2026-05-22 12:24:00', '2026-05-23 03:14:15'),
('c389277e-48f0-4f42-ba85-531a6ad74271', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'dine_in', '14db04e7-5c6f-47e4-85ec-a9934810a0a9', 'John Doe', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260522-0001', 'sale', NULL, 100000.00, 0.00, 11000.00, 5000.00, 0.00, 116000.00, 120000.00, 4000.00, 11.00, 'exclusive', 5.00, 11.00, 0.00, NULL, 'completed', '2026-05-22 00:32:00', '2026-05-22 00:32:00', '2026-05-23 03:14:15'),
('cb8ae654-8ad3-4284-acc6-05c03eb42dc6', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'takeaway', NULL, 'Walk-in', '69353b8f-83e5-40d9-95a8-9c47e42825b3', NULL, 'MAIN-20260522-0010', 'sale', NULL, 111000.00, 0.00, 12210.00, 5550.00, 40.00, 128800.00, 128800.00, 0.00, 11.00, 'exclusive', 5.00, 12.00, 0.00, NULL, 'completed', '2026-05-22 08:06:00', '2026-05-22 08:06:00', '2026-05-22 08:06:00'),
('d452fcae-9cf7-4405-8efe-0852ebc68b77', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'takeaway', NULL, 'Grab #G001', '69353b8f-83e5-40d9-95a8-9c47e42825b3', NULL, 'MAIN-20260522-0002', 'sale', NULL, 60000.00, 0.00, 6600.00, 3000.00, 0.00, 69600.00, 69600.00, 0.00, 11.00, 'exclusive', 5.00, 6.00, 0.00, NULL, 'completed', '2026-05-22 01:22:00', '2026-05-22 01:22:00', '2026-05-22 01:22:00'),
('e13bd303-a28b-4b1b-84ef-bbcbe73e5191', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'dine_in', NULL, 'Group Lunch', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260522-0006', 'sale', NULL, 250000.00, 25000.00, 24750.00, 11250.00, 0.00, 261000.00, 261000.00, 0.00, 11.00, 'exclusive', 5.00, 26.00, 0.00, NULL, 'completed', '2026-05-22 04:38:00', '2026-05-22 04:38:00', '2026-05-22 04:38:00'),
('e9f1b4e8-efd3-4e5b-8696-8f4c2e2f4822', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6b0ccce6-f0ca-418b-9932-407960445292', NULL, NULL, 'takeaway', NULL, 'GoFood #GF002', '69353b8f-83e5-40d9-95a8-9c47e42825b3', NULL, 'MAIN-20260522-0007', 'sale', NULL, 86000.00, 0.00, 9460.00, 4300.00, 40.00, 99800.00, 99800.00, 0.00, 11.00, 'exclusive', 5.00, 9.00, 0.00, NULL, 'completed', '2026-05-22 05:09:00', '2026-05-22 05:09:00', '2026-05-22 05:09:00'),
('eeef10b5-f488-4d28-970e-1b701952b800', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '03cd719c-fd8a-48c9-80bc-be69bf798802', NULL, NULL, 'dine_in', '14db04e7-5c6f-47e4-85ec-a9934810a0a9', 'John Doe', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260523-0001', 'sale', NULL, 50000.00, 0.00, 5500.00, 2500.00, 0.00, 58000.00, 60000.00, 2000.00, 11.00, 'exclusive', 5.00, 5.00, 0.00, 'Regular pagi', 'completed', '2026-05-23 00:05:00', '2026-05-23 00:05:00', '2026-05-23 03:14:15'),
('fd6669ef-9e68-4b9c-8cef-17fdf591c2fa', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '03cd719c-fd8a-48c9-80bc-be69bf798802', NULL, NULL, 'dine_in', NULL, 'Lunch Meeting', '69353b8f-83e5-40d9-95a8-9c47e42825b3', 'a40932fa-dab7-4175-b008-182ac8f33d97', 'MAIN-20260523-0008', 'sale', NULL, 156000.00, 0.00, 17160.00, 7800.00, 40.00, 181000.00, 181000.00, 0.00, 11.00, 'exclusive', 5.00, 18.00, 0.00, NULL, 'completed', '2026-05-23 03:39:00', '2026-05-23 03:39:00', '2026-05-23 03:39:00');

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

--
-- Table structure for table `transaction_discounts`
--

CREATE TABLE `transaction_discounts` (
  `id` char(36) NOT NULL,
  `transaction_id` char(36) NOT NULL,
  `transaction_item_id` char(36) DEFAULT NULL,
  `discount_id` char(36) DEFAULT NULL,
  `discount_name` varchar(255) NOT NULL,
  `type` enum('percentage','fixed_amount') NOT NULL,
  `value` decimal(15,2) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transaction_discounts`
--

INSERT INTO `transaction_discounts` (`id`, `transaction_id`, `transaction_item_id`, `discount_id`, `discount_name`, `type`, `value`, `amount`, `created_at`, `updated_at`) VALUES
('27b65242-f87e-4bfc-9282-279679ebf44e', '3f20ceb1-27fd-45ec-a254-697adca65081', NULL, '7522098c-ba5e-4f51-b12d-1e97eabb47b8', 'VIP Discount 20%', 'percentage', 20.00, 16600.00, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('2fa1ec44-e43b-4dbf-aeb1-d2b4038e548b', '6ea75ed4-5356-4bfb-b8bd-9cf2890ecfa8', NULL, 'dc736ee9-4953-480c-8f0d-32013fbfa275', 'Weekend Special 10%', 'percentage', 10.00, 25100.00, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('5a76aa00-c433-44be-bae4-55048df8d657', '055df0d0-485d-4bf8-b65f-8c6d3c23780e', NULL, '7522098c-ba5e-4f51-b12d-1e97eabb47b8', 'VIP Discount 20%', 'percentage', 20.00, 36200.00, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('63d48e50-c9d0-4008-8509-a7887767c60f', '873d1b7b-ed44-4f67-9d55-baa409726450', NULL, 'b04363c2-a32d-4b63-a7ef-29640beaaaaa', 'Welcome Discount 10%', 'percentage', 10.00, 19100.00, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('7dd9e70b-f88e-47fa-9c8a-8b775b2eaed4', '8fb4df5f-6846-46d6-a89e-ea25ca779ede', NULL, 'b04363c2-a32d-4b63-a7ef-29640beaaaaa', 'Welcome Discount 10%', 'percentage', 10.00, 17100.00, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('dea95059-81ef-457b-8891-27e2f4a6feea', 'e13bd303-a28b-4b1b-84ef-bbcbe73e5191', NULL, '66f82ecc-f543-4f92-b376-ff7565c2f953', 'Flat Rp 25.000 Off', 'fixed_amount', 25000.00, 25000.00, '2026-05-23 03:14:15', '2026-05-23 03:14:15');

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

--
-- Table structure for table `transaction_items`
--

CREATE TABLE `transaction_items` (
  `id` char(36) NOT NULL,
  `transaction_id` char(36) NOT NULL,
  `inventory_item_id` char(36) DEFAULT NULL,
  `product_id` char(36) DEFAULT NULL,
  `product_variant_id` char(36) DEFAULT NULL,
  `item_name` varchar(255) NOT NULL,
  `item_sku` varchar(255) NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_name` varchar(255) NOT NULL,
  `unit_price` decimal(15,2) NOT NULL,
  `base_price` decimal(15,2) NOT NULL DEFAULT 0.00,
  `variant_price_adjustment` decimal(15,2) NOT NULL DEFAULT 0.00,
  `modifiers_total` decimal(15,2) NOT NULL DEFAULT 0.00,
  `cost_price` decimal(15,2) NOT NULL,
  `discount_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `subtotal` decimal(15,2) NOT NULL,
  `notes` text DEFAULT NULL,
  `modifiers` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`modifiers`)),
  `item_notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transaction_items`
--

INSERT INTO `transaction_items` (`id`, `transaction_id`, `inventory_item_id`, `product_id`, `product_variant_id`, `item_name`, `item_sku`, `quantity`, `unit_name`, `unit_price`, `base_price`, `variant_price_adjustment`, `modifiers_total`, `cost_price`, `discount_amount`, `subtotal`, `notes`, `modifiers`, `item_notes`, `created_at`, `updated_at`) VALUES
('027253f0-149e-4ca9-957a-f0772fed3d07', 'ae7c8590-fb51-4b01-bd05-2efecf52edbf', NULL, '1fcc6195-3ed1-453c-8b99-7a3579ab1e60', NULL, 'Iced Latte', 'ICE-LAT-001', 2.0000, 'pcs', 35000.00, 35000.00, 0.00, 0.00, 6300.00, 0.00, 70000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('16d73ba3-49cd-415d-b6f1-23a0daca8948', 'bbae08aa-520f-481a-b58a-eb9f6086c498', NULL, '4f92d1dc-690a-4bfd-9ca3-84a39abd89de', NULL, 'Cafe Latte', 'HOT-LAT-001', 1.0000, 'pcs', 32000.00, 32000.00, 0.00, 0.00, 6300.00, 0.00, 32000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('1dff01d1-35e0-454b-b4df-0259a7f17d0b', 'd452fcae-9cf7-4405-8efe-0852ebc68b77', NULL, 'a8e79fa3-5a30-45a9-8427-e65121156f12', NULL, 'Pain au Chocolat', 'PASTRY-PC-001', 1.0000, 'pcs', 28000.00, 28000.00, 0.00, 0.00, 10000.00, 0.00, 28000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('2537f7f7-e48f-489a-81af-030f2a28d684', '6ea75ed4-5356-4bfb-b8bd-9cf2890ecfa8', NULL, '3e0acf7a-37c4-4add-bbe2-4f533165d9e7', NULL, 'Chai Latte', 'TEA-CL-001', 1.0000, 'pcs', 32000.00, 32000.00, 0.00, 0.00, 4425.00, 0.00, 32000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('2a6dbbd4-062b-4adf-a2a5-34f08160d116', '8fb4df5f-6846-46d6-a89e-ea25ca779ede', NULL, 'f59f249b-f142-4109-88f0-d7afbfcbe161', NULL, 'Cinnamon Roll', 'PASTRY-CIN-001', 3.0000, 'pcs', 25000.00, 25000.00, 0.00, 0.00, 9000.00, 0.00, 75000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('33066dc3-ee1f-4fd7-8264-10a1a691312a', 'ae7c8590-fb51-4b01-bd05-2efecf52edbf', NULL, 'a8e79fa3-5a30-45a9-8427-e65121156f12', NULL, 'Pain au Chocolat', 'PASTRY-PC-001', 1.0000, 'pcs', 28000.00, 28000.00, 0.00, 0.00, 10000.00, 0.00, 28000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('3b10bb6c-dbbc-4c76-85cd-8557dda9bdf9', 'e9f1b4e8-efd3-4e5b-8696-8f4c2e2f4822', NULL, '88a91f91-d96c-4f81-9f06-b2a90e4f4c66', NULL, 'Tuna Melt', 'SAND-TUN-001', 1.0000, 'pcs', 48000.00, 48000.00, 0.00, 0.00, 18000.00, 0.00, 48000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('3fe0c4cf-7053-486c-8810-6fb812b7aeff', 'c389277e-48f0-4f42-ba85-531a6ad74271', NULL, '92923011-cecd-4166-a42d-6487b490275f', NULL, 'Americano', 'HOT-AME-001', 2.0000, 'pcs', 28000.00, 28000.00, 0.00, 0.00, 2700.00, 0.00, 56000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('3ff917b8-a81d-4d91-896e-2bbc6a498d7f', '93f89ddb-d976-422d-bfce-304a3de38207', NULL, '88a91f91-d96c-4f81-9f06-b2a90e4f4c66', NULL, 'Tuna Melt', 'SAND-TUN-001', 1.0000, 'pcs', 48000.00, 48000.00, 0.00, 0.00, 18000.00, 0.00, 48000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('41595956-1716-44c3-95fa-3ec80145a8f3', '873d1b7b-ed44-4f67-9d55-baa409726450', NULL, 'f59f249b-f142-4109-88f0-d7afbfcbe161', NULL, 'Cinnamon Roll', 'PASTRY-CIN-001', 2.0000, 'pcs', 25000.00, 25000.00, 0.00, 0.00, 9000.00, 0.00, 50000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('4597ec7f-b181-4fd1-baca-fd49790f7f60', 'fd6669ef-9e68-4b9c-8cef-17fdf591c2fa', NULL, '88a91f91-d96c-4f81-9f06-b2a90e4f4c66', NULL, 'Tuna Melt', 'SAND-TUN-001', 2.0000, 'pcs', 48000.00, 48000.00, 0.00, 0.00, 18000.00, 0.00, 96000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('4bb7ab64-8911-431e-835c-701778890681', 'eeef10b5-f488-4d28-970e-1b701952b800', NULL, 'eeb61689-ee40-4337-857c-08525e8bfdc4', NULL, 'Croissant', 'PASTRY-CR-001', 1.0000, 'pcs', 22000.00, 22000.00, 0.00, 0.00, 8000.00, 0.00, 22000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('4e3b916a-d873-4025-8d96-db991d6d3da9', '9ba419bf-47e6-4cc7-975c-6ba317d02e6d', NULL, '3a85c40c-cdde-4126-a7bc-13c24901544b', NULL, 'Macchiato', 'ESP-MAC-001', 1.0000, 'pcs', 25000.00, 25000.00, 0.00, 0.00, 3240.00, 0.00, 25000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('541aa331-752e-40a2-8610-e9797cfb06e7', '055df0d0-485d-4bf8-b65f-8c6d3c23780e', NULL, '3d987f55-7f18-4ce7-b333-4b7d0e8ae51f', NULL, 'Tiramisu', 'CAKE-TIR-001', 2.0000, 'pcs', 48000.00, 48000.00, 0.00, 0.00, 20000.00, 0.00, 96000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('57238972-d0f3-4e38-a30f-07f9ccf7904e', '055df0d0-485d-4bf8-b65f-8c6d3c23780e', NULL, '6f2d59c8-1c5a-4ffe-aac4-ecf2f3d16975', NULL, 'Earl Grey', 'TEA-EG-001', 2.0000, 'pcs', 25000.00, 25000.00, 0.00, 0.00, 600.00, 0.00, 50000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('5cbdde41-6470-44b4-84a4-fd6edefcbe80', '3bd03b37-155f-4e68-b91e-a536e438061d', NULL, '5f6c3ae7-edaf-47c5-88a3-00a573afad72', NULL, 'Berry Blast Smoothie', 'SM-BERRY-001', 1.0000, 'pcs', 38000.00, 38000.00, 0.00, 0.00, 15000.00, 0.00, 38000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('5e3167cd-271f-4c12-999c-38be21c26199', '8ba905a7-3860-4c95-9543-8b6d2f235b07', NULL, '3a85c40c-cdde-4126-a7bc-13c24901544b', NULL, 'Macchiato', 'ESP-MAC-001', 1.0000, 'pcs', 25000.00, 25000.00, 0.00, 0.00, 3240.00, 0.00, 25000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('5edf9b8d-d768-4171-8b8e-871b92164e8b', 'cb8ae654-8ad3-4284-acc6-05c03eb42dc6', NULL, '0896decb-26ac-4879-aabf-284be1ff1737', NULL, 'Mango Smoothie', 'SM-MANGO-001', 1.0000, 'pcs', 35000.00, 35000.00, 0.00, 0.00, 13000.00, 0.00, 35000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('65887c82-b3b0-48a3-86da-482367c35b0b', 'e13bd303-a28b-4b1b-84ef-bbcbe73e5191', NULL, '6a378e27-8bdb-401b-9a6c-e057f5d6ab38', NULL, 'Grilled Cheese', 'SAND-GC-001', 1.0000, 'pcs', 35000.00, 35000.00, 0.00, 0.00, 12000.00, 0.00, 35000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('677edfb5-71f2-48b0-b2a9-9b00cb8276a5', '055df0d0-485d-4bf8-b65f-8c6d3c23780e', NULL, '0fc5eee9-ad2d-4687-b636-dc7b2485e9e9', NULL, 'Green Tea Latte', 'TEA-GTL-001', 1.0000, 'pcs', 35000.00, 35000.00, 0.00, 0.00, 4825.00, 0.00, 35000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('6af526e5-5da7-4e54-a732-690a035a884b', '6ea75ed4-5356-4bfb-b8bd-9cf2890ecfa8', NULL, '98fd8efd-a30f-4456-b83e-9544b36eeeeb', NULL, 'Iced Chocolate', 'CHOCO-ICE-001', 2.0000, 'pcs', 32000.00, 32000.00, 0.00, 0.00, 4800.00, 0.00, 64000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('6cea8b43-f983-4b97-9710-16fd6248aee7', '8fb4df5f-6846-46d6-a89e-ea25ca779ede', NULL, '4f92d1dc-690a-4bfd-9ca3-84a39abd89de', NULL, 'Cafe Latte', 'HOT-LAT-001', 3.0000, 'pcs', 32000.00, 32000.00, 0.00, 0.00, 6300.00, 0.00, 96000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('73725081-9207-4773-aa85-9becfc517785', '41091492-bb72-4a62-9fb8-d187bad77d9b', NULL, '2861ed95-c672-4c7d-8dab-15f6a712a9fb', NULL, 'Espresso', 'ESP-001', 2.0000, 'pcs', 18000.00, 18000.00, 0.00, 0.00, 2700.00, 0.00, 36000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('777ece98-60c5-4a79-8f47-a73c258a2d0e', 'cb8ae654-8ad3-4284-acc6-05c03eb42dc6', NULL, '5f6c3ae7-edaf-47c5-88a3-00a573afad72', NULL, 'Berry Blast Smoothie', 'SM-BERRY-001', 2.0000, 'pcs', 38000.00, 38000.00, 0.00, 0.00, 15000.00, 0.00, 76000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('7a5256e3-2f76-4556-a088-e0f61f0fb157', '10ea9c3a-03e1-4ab5-91b1-587fc5fe7db8', NULL, '6a378e27-8bdb-401b-9a6c-e057f5d6ab38', NULL, 'Grilled Cheese', 'SAND-GC-001', 2.0000, 'pcs', 35000.00, 35000.00, 0.00, 0.00, 12000.00, 0.00, 70000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('8502035a-5aa2-4c1c-8568-ee5653cc1986', '78a14c94-de6b-4a40-8c22-c6727007ba24', NULL, '6f9029da-8dc7-48ce-ae48-2d0e4726e356', NULL, 'Club Sandwich', 'SAND-CLB-001', 1.0000, 'pcs', 55000.00, 55000.00, 0.00, 0.00, 22000.00, 0.00, 55000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('853dec57-5aa7-4886-9e9c-a007e374bb93', '8ba905a7-3860-4c95-9543-8b6d2f235b07', NULL, 'abf64656-f417-4162-81c6-42a949263e51', NULL, 'Cheesecake', 'CAKE-CHE-001', 1.0000, 'pcs', 45000.00, 45000.00, 0.00, 0.00, 18000.00, 0.00, 45000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('883daa04-4461-4a2d-88d8-b71ae7c02b5f', 'eeef10b5-f488-4d28-970e-1b701952b800', NULL, '92923011-cecd-4166-a42d-6487b490275f', NULL, 'Americano', 'HOT-AME-001', 1.0000, 'pcs', 28000.00, 28000.00, 0.00, 0.00, 2700.00, 0.00, 28000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('90fc4afb-0d98-4afe-8913-c1e572204e52', 'c389277e-48f0-4f42-ba85-531a6ad74271', NULL, 'eeb61689-ee40-4337-857c-08525e8bfdc4', NULL, 'Croissant', 'PASTRY-CR-001', 2.0000, 'pcs', 22000.00, 22000.00, 0.00, 0.00, 8000.00, 0.00, 44000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('93f05f4c-94ec-4b81-8474-10c6b50b9e83', 'e9f1b4e8-efd3-4e5b-8696-8f4c2e2f4822', NULL, '0caa53a2-18b3-416f-8b28-c57e1208ba2c', NULL, 'Cold Brew', 'ICE-CB-001', 1.0000, 'pcs', 38000.00, 38000.00, 0.00, 0.00, 3750.00, 0.00, 38000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('9524d976-ab9b-491d-ac47-06c37008900b', '873d1b7b-ed44-4f67-9d55-baa409726450', NULL, 'abf64656-f417-4162-81c6-42a949263e51', NULL, 'Cheesecake', 'CAKE-CHE-001', 1.0000, 'pcs', 45000.00, 45000.00, 0.00, 0.00, 18000.00, 0.00, 45000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('983cd5e9-23ca-4c63-be47-619fe858d022', '6ea75ed4-5356-4bfb-b8bd-9cf2890ecfa8', NULL, 'abf64656-f417-4162-81c6-42a949263e51', NULL, 'Cheesecake', 'CAKE-CHE-001', 1.0000, 'pcs', 45000.00, 45000.00, 0.00, 0.00, 18000.00, 0.00, 45000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('9cff12c6-42b3-4918-969d-9543189d734d', 'e13bd303-a28b-4b1b-84ef-bbcbe73e5191', NULL, '1fcc6195-3ed1-453c-8b99-7a3579ab1e60', NULL, 'Iced Latte', 'ICE-LAT-001', 3.0000, 'pcs', 35000.00, 35000.00, 0.00, 0.00, 6300.00, 0.00, 105000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('9e627183-1e0f-4eaa-9233-5aa02e19a256', '3f20ceb1-27fd-45ec-a254-697adca65081', NULL, '0fc5eee9-ad2d-4687-b636-dc7b2485e9e9', NULL, 'Green Tea Latte', 'TEA-GTL-001', 1.0000, 'pcs', 35000.00, 35000.00, 0.00, 0.00, 4825.00, 0.00, 35000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('9f722c22-a0e0-42f0-83ab-0d8b89021aa3', 'af3f4485-b725-411a-b9bf-7977b576072f', NULL, '873fd30d-c076-46be-b7fe-98ea7b797a53', NULL, 'Iced Americano', 'ICE-AME-001', 1.0000, 'pcs', 30000.00, 30000.00, 0.00, 0.00, 2700.00, 0.00, 30000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('a2807996-cb24-44c2-8cec-5d3ed87f8ee6', '9ba419bf-47e6-4cc7-975c-6ba317d02e6d', NULL, '2861ed95-c672-4c7d-8dab-15f6a712a9fb', NULL, 'Espresso', 'ESP-001', 2.0000, 'pcs', 18000.00, 18000.00, 0.00, 0.00, 2700.00, 0.00, 36000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('a3359e82-1200-4d51-9615-8a0ed00d87fc', 'af3f4485-b725-411a-b9bf-7977b576072f', NULL, '6f9029da-8dc7-48ce-ae48-2d0e4726e356', NULL, 'Club Sandwich', 'SAND-CLB-001', 1.0000, 'pcs', 55000.00, 55000.00, 0.00, 0.00, 22000.00, 0.00, 55000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('a60b9be7-da2d-46fa-9199-5bc57029e68a', 'fd6669ef-9e68-4b9c-8cef-17fdf591c2fa', NULL, '873fd30d-c076-46be-b7fe-98ea7b797a53', NULL, 'Iced Americano', 'ICE-AME-001', 2.0000, 'pcs', 30000.00, 30000.00, 0.00, 0.00, 2700.00, 0.00, 60000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('a7bdbdc7-619d-402c-b5eb-2dcd31d156e7', 'e13bd303-a28b-4b1b-84ef-bbcbe73e5191', NULL, '6f9029da-8dc7-48ce-ae48-2d0e4726e356', NULL, 'Club Sandwich', 'SAND-CLB-001', 2.0000, 'pcs', 55000.00, 55000.00, 0.00, 0.00, 22000.00, 0.00, 110000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('a8b262c4-3442-4fc7-baac-1e518d8ff036', '873d1b7b-ed44-4f67-9d55-baa409726450', NULL, 'fb3613d7-2fd4-4119-8804-d923a10c3415', NULL, 'Cappuccino', 'HOT-CAP-001', 3.0000, 'pcs', 32000.00, 32000.00, 0.00, 0.00, 5400.00, 0.00, 96000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('b356139d-6c94-4034-bd8a-21b6a5cef1c2', '6ea75ed4-5356-4bfb-b8bd-9cf2890ecfa8', NULL, '6f9029da-8dc7-48ce-ae48-2d0e4726e356', NULL, 'Club Sandwich', 'SAND-CLB-001', 2.0000, 'pcs', 55000.00, 55000.00, 0.00, 0.00, 22000.00, 0.00, 110000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('b56371da-620c-41ad-8a11-a2ffb076becf', '93f89ddb-d976-422d-bfce-304a3de38207', NULL, '873fd30d-c076-46be-b7fe-98ea7b797a53', NULL, 'Iced Americano', 'ICE-AME-001', 1.0000, 'pcs', 30000.00, 30000.00, 0.00, 0.00, 2700.00, 0.00, 30000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('be653e96-ad09-4647-822d-ecc522873022', '3bd03b37-155f-4e68-b91e-a536e438061d', NULL, '0896decb-26ac-4879-aabf-284be1ff1737', NULL, 'Mango Smoothie', 'SM-MANGO-001', 1.0000, 'pcs', 35000.00, 35000.00, 0.00, 0.00, 13000.00, 0.00, 35000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('c9086ed8-e42f-4194-943c-cc9a4dc5a4fb', '3f20ceb1-27fd-45ec-a254-697adca65081', NULL, '3d987f55-7f18-4ce7-b333-4b7d0e8ae51f', NULL, 'Tiramisu', 'CAKE-TIR-001', 1.0000, 'pcs', 48000.00, 48000.00, 0.00, 0.00, 20000.00, 0.00, 48000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('cd5a9338-cedd-4afd-bf9e-3b4e0ad12e63', '10ea9c3a-03e1-4ab5-91b1-587fc5fe7db8', NULL, 'fb3613d7-2fd4-4119-8804-d923a10c3415', NULL, 'Cappuccino', 'HOT-CAP-001', 2.0000, 'pcs', 32000.00, 32000.00, 0.00, 0.00, 5400.00, 0.00, 64000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('e4410313-334a-40ed-81e9-b3050630f796', '2eb6c62e-265b-4729-9cd7-153bd94e86a2', NULL, '23801b67-dd2e-42e0-a027-1e2c0cf209f4', NULL, 'Chocolate Brownie', 'CAKE-BRO-001', 2.0000, 'pcs', 28000.00, 28000.00, 0.00, 0.00, 10000.00, 0.00, 56000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('ebdaf227-3ff0-42f5-b9ba-a01a9ca14664', '3bd03b37-155f-4e68-b91e-a536e438061d', NULL, '23801b67-dd2e-42e0-a027-1e2c0cf209f4', NULL, 'Chocolate Brownie', 'CAKE-BRO-001', 2.0000, 'pcs', 28000.00, 28000.00, 0.00, 0.00, 10000.00, 0.00, 56000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('f050e053-1960-479e-b3eb-439aff58af2f', '2eb6c62e-265b-4729-9cd7-153bd94e86a2', NULL, '372ca7f6-3db0-4726-949c-5871626ae4fe', NULL, 'Hot Chocolate', 'CHOCO-HOT-001', 1.0000, 'pcs', 30000.00, 30000.00, 0.00, 0.00, 4800.00, 0.00, 30000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('f366c37c-5457-4e08-a5cd-4048a0ec3048', '78a14c94-de6b-4a40-8c22-c6727007ba24', NULL, '0caa53a2-18b3-416f-8b28-c57e1208ba2c', NULL, 'Cold Brew', 'ICE-CB-001', 1.0000, 'pcs', 38000.00, 38000.00, 0.00, 0.00, 3750.00, 0.00, 38000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('f4a4d693-930d-43b6-a636-a2cb3b63e887', 'd452fcae-9cf7-4405-8efe-0852ebc68b77', NULL, 'fb3613d7-2fd4-4119-8804-d923a10c3415', NULL, 'Cappuccino', 'HOT-CAP-001', 1.0000, 'pcs', 32000.00, 32000.00, 0.00, 0.00, 5400.00, 0.00, 32000.00, NULL, '[]', NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15');

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

--
-- Table structure for table `transaction_payments`
--

CREATE TABLE `transaction_payments` (
  `id` char(36) NOT NULL,
  `transaction_id` char(36) NOT NULL,
  `payment_method_id` char(36) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `charge_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
  `reference_number` varchar(255) DEFAULT NULL,
  `approval_code` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transaction_payments`
--

INSERT INTO `transaction_payments` (`id`, `transaction_id`, `payment_method_id`, `amount`, `charge_amount`, `reference_number`, `approval_code`, `created_at`, `updated_at`) VALUES
('182133df-9763-4a8a-b6a2-4ae41abc8c8a', 'c389277e-48f0-4f42-ba85-531a6ad74271', '72fb582c-9b93-4052-bec1-075848b97492', 120000.00, 0.00, NULL, NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('20145b01-87b8-4f2f-957a-c9d0dda7a943', 'e13bd303-a28b-4b1b-84ef-bbcbe73e5191', '9ca8cd2e-341e-4ca5-9be7-04151356aac8', 261000.00, 1827.00, 'CLLUO04OQUCM', '148266', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('373f50b9-fac7-4b02-ae11-5005b18884db', 'cb8ae654-8ad3-4284-acc6-05c03eb42dc6', '70dac937-161a-40db-b9ad-7a7aa25f698a', 128800.00, 1932.00, 'RCXXQDGL4CBW', '633537', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('4ed11315-b9de-47dd-a969-2a731ac75a80', 'd452fcae-9cf7-4405-8efe-0852ebc68b77', 'aebe0986-ff12-46ce-9f5e-bf14bc65dc0c', 69600.00, 1044.00, 'CKGB6ECBOJNX', '699458', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('5029cb30-5720-456e-8ba2-76106ffabe14', '8ba905a7-3860-4c95-9543-8b6d2f235b07', '72fb582c-9b93-4052-bec1-075848b97492', 90000.00, 0.00, NULL, NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('5b33bc9a-9987-4961-8e33-fe771d85692e', '10ea9c3a-03e1-4ab5-91b1-587fc5fe7db8', 'ee99fdea-a60c-4bd2-992d-86d277881cc9', 155500.00, 2333.00, 'SEMEIGIBSAR0', '541932', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('5c716aa3-1f5f-4520-ad44-e1a371082220', 'e9f1b4e8-efd3-4e5b-8696-8f4c2e2f4822', 'd407a5e5-5d8e-4ec1-88de-3aa463677c0a', 99800.00, 1497.00, 'XXRUAEQ8FIAH', '924042', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('5ff6d9af-2926-4ac5-9647-dd47ecfb7541', '93f89ddb-d976-422d-bfce-304a3de38207', '858a1822-9bd2-4fcf-a1c1-fe2f6cbaf0a4', 90500.00, 0.00, 'LGQMEZGZXAGK', '763991', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('629c38b9-ce36-43cd-b337-0ae8bb151260', 'eeef10b5-f488-4d28-970e-1b701952b800', '72fb582c-9b93-4052-bec1-075848b97492', 60000.00, 0.00, NULL, NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('69584316-70d3-42e6-a444-96c4eda368ff', '9ba419bf-47e6-4cc7-975c-6ba317d02e6d', '72fb582c-9b93-4052-bec1-075848b97492', 80000.00, 0.00, NULL, NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('7a56e949-8886-457e-830b-6f21404a448d', '2eb6c62e-265b-4729-9cd7-153bd94e86a2', '72fb582c-9b93-4052-bec1-075848b97492', 100000.00, 0.00, NULL, NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('81268a19-f58f-4760-8bcb-a7dc137c6213', '78a14c94-de6b-4a40-8c22-c6727007ba24', 'aebe0986-ff12-46ce-9f5e-bf14bc65dc0c', 107900.00, 1619.00, 'ETGW3M1MKYCZ', '166373', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('904eae4e-a90b-4e48-b2a1-aad270e1a0c3', '3f20ceb1-27fd-45ec-a254-697adca65081', 'd407a5e5-5d8e-4ec1-88de-3aa463677c0a', 77100.00, 1157.00, 'WAV34BG2CMER', '324565', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('a800b3c4-c280-4163-86a8-5e4bf8fba026', '6ea75ed4-5356-4bfb-b8bd-9cf2890ecfa8', '72fb582c-9b93-4052-bec1-075848b97492', 270000.00, 0.00, NULL, NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('ab887cd5-5648-444c-bb15-851a260bedc9', '8fb4df5f-6846-46d6-a89e-ea25ca779ede', '72fb582c-9b93-4052-bec1-075848b97492', 180000.00, 0.00, NULL, NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('bfbf18ef-b865-46d9-9bed-e8ff6fad1a61', '41091492-bb72-4a62-9fb8-d187bad77d9b', '72fb582c-9b93-4052-bec1-075848b97492', 50000.00, 0.00, NULL, NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('c46e8ef4-1e04-48b3-9893-41a48e22eb6f', 'ae7c8590-fb51-4b01-bd05-2efecf52edbf', '9ca8cd2e-341e-4ca5-9be7-04151356aac8', 113700.00, 796.00, '8YMVTB9C0YKN', '399069', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('d0c64a54-b037-430d-998a-390f0153da8b', '3bd03b37-155f-4e68-b91e-a536e438061d', '72fb582c-9b93-4052-bec1-075848b97492', 150000.00, 0.00, NULL, NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('d8ea4909-3a83-43b2-a703-ed4ab209ee67', 'bbae08aa-520f-481a-b58a-eb9f6086c498', '72fb582c-9b93-4052-bec1-075848b97492', 40000.00, 0.00, NULL, NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('d9a7cdd4-6a87-4b33-ae6d-432a7d00916d', '055df0d0-485d-4bf8-b65f-8c6d3c23780e', 'f87a2864-5efe-4f9a-81ed-529b38e1b593', 168000.00, 4200.00, 'ZH5X2HAS8JB7', '865384', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('dea0592a-ba7e-457f-ba75-05f0d5fb4801', '873d1b7b-ed44-4f67-9d55-baa409726450', '72fb582c-9b93-4052-bec1-075848b97492', 200000.00, 0.00, NULL, NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('ed55b205-3ba1-4e39-a90b-1c5f5c782d79', 'af3f4485-b725-411a-b9bf-7977b576072f', '65e96f9f-4d40-4af7-b970-78289df4a989', 98600.00, 493.00, 'EFXHYQT7OWI3', '998376', '2026-05-23 03:14:15', '2026-05-23 03:14:15'),
('f528d881-6777-49f0-b8af-a65a98420b1b', 'fd6669ef-9e68-4b9c-8cef-17fdf591c2fa', '65e96f9f-4d40-4af7-b970-78289df4a989', 181000.00, 905.00, 'OFCQKGBSWENM', '434156', '2026-05-23 03:14:15', '2026-05-23 03:14:15');

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

--
-- Table structure for table `units`
--

CREATE TABLE `units` (
  `id` char(36) NOT NULL,
  `tenant_id` char(36) DEFAULT NULL,
  `name` varchar(50) NOT NULL,
  `abbreviation` varchar(10) NOT NULL,
  `type` varchar(255) NOT NULL DEFAULT 'weight',
  `base_unit_id` char(36) DEFAULT NULL,
  `conversion_factor` decimal(12,6) NOT NULL DEFAULT 1.000000,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `units`
--

INSERT INTO `units` (`id`, `tenant_id`, `name`, `abbreviation`, `type`, `base_unit_id`, `conversion_factor`, `is_active`, `created_at`, `updated_at`) VALUES
('058ccf66-7690-41ee-885d-e688555fbe60', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Teaspoon', 'tsp', 'weight', NULL, 1.000000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('07b802cf-b675-4211-986a-7aee29758924', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Dozen', 'doz', 'weight', NULL, 1.000000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('0a88de8a-d1ed-46cb-a659-5dea1a8581a6', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Pack', 'pack', 'weight', NULL, 1.000000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('135d56f1-e047-459a-a5e0-260ed2c646d9', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Piece', 'pcs', 'weight', NULL, 1.000000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('146d610e-d292-4ba7-955d-0ae3599f3b1a', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Tablespoon', 'tbsp', 'weight', NULL, 1.000000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('1b29fa5f-7a1a-49c6-924d-be6e2a53cdb3', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Carton', 'ctn', 'weight', NULL, 1.000000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('258ca58a-8962-418a-a966-c7b8d496efa8', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Centiliter', 'cl', 'weight', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 0.010000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('573ba895-1241-4235-8937-9958b7827d33', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Gram', 'g', 'weight', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 0.001000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('5b8ed627-3786-4375-a36e-9ce9cf1a1e62', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Box', 'box', 'weight', NULL, 1.000000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('787c7a73-e895-466f-822b-b24721613f22', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Mililiter', 'ml', 'weight', 'bacdb581-2cb1-41eb-91e7-ba71e367553b', 0.001000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('79e8d048-ec2f-46e7-8276-9f5666763f39', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Cup', 'cup', 'weight', NULL, 1.000000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('7ee4c650-fae3-4a85-a8cd-74e3049fa828', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Kilogram', 'kg', 'weight', NULL, 1.000000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('893a640c-d132-48d9-b392-0e314493a9de', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Miligram', 'mg', 'weight', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 0.000001, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('b937cca1-5c68-465a-a224-1423b381bcfc', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Slice', 'slc', 'weight', NULL, 1.000000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('ba837da4-4be6-41ea-a8eb-3ffd0c97c795', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Ons', 'ons', 'weight', '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 0.100000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('bacdb581-2cb1-41eb-91e7-ba71e367553b', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Liter', 'L', 'weight', NULL, 1.000000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('db8cea6d-f10f-44e6-a290-5f5bc0074598', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Portion', 'por', 'weight', NULL, 1.000000, 1, '2026-05-23 03:13:58', '2026-05-23 03:13:58');

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

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

CREATE TABLE `users` (
  `id` char(36) NOT NULL,
  `tenant_id` char(36) DEFAULT NULL,
  `email` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `pin` varchar(6) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `avatar` varchar(255) DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `last_login_at` timestamp NULL DEFAULT NULL,
  `remember_token` varchar(100) DEFAULT NULL,
  `locale` varchar(5) NOT NULL DEFAULT 'id',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `users` (`id`, `tenant_id`, `email`, `password`, `pin`, `name`, `phone`, `avatar`, `is_active`, `email_verified_at`, `last_login_at`, `remember_token`, `locale`, `created_at`, `updated_at`) VALUES
('03dd075b-def4-48af-b977-27bcfdb07dcf', '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'enterprise@demo.com', '$2y$12$93.oW3TT0CsiaYI42fDvB.pk3zMaiyD2GH9VWqodSnlbNK.XHss72', NULL, 'Demo Enterprise', NULL, NULL, 1, '2026-05-23 03:14:08', NULL, NULL, 'id', '2026-05-23 03:14:08', '2026-05-23 03:14:08'),
('12bf3e5b-f4a8-4a78-a700-2bd7dccad276', 'dd26a475-5821-4af2-8dfc-23145ba0b321', 'growth@demo.com', '$2y$12$ghLM759wANtFcJT/i5ZkCuHKoPX3KjF6d.1/bHwmCsQpMnFuA7gXy', NULL, 'Demo Growth', NULL, NULL, 1, '2026-05-23 03:14:08', NULL, NULL, 'id', '2026-05-23 03:14:08', '2026-05-23 03:14:08'),
('1eb20387-aedc-47c1-949f-8a528f15a5bf', '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'chef.ahmad@demo.com', '$2y$12$cdTIfP/6d8IO6WPXDlOuAOgl1FZoNOU4FAKkvWPUx97CKDpzPgUYy', NULL, 'Chef Ahmad', NULL, NULL, 1, '2026-05-23 03:14:09', NULL, NULL, 'id', '2026-05-23 03:14:09', '2026-05-23 03:14:09'),
('2746512d-dcc2-41c2-9279-f3630c95117d', '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'chef.citra@demo.com', '$2y$12$DeonDEIoGv0zTH1nliGkzOPzer.VWeikHxsK1ZUL4Or/bZeFiJd1.', NULL, 'Chef Citra', NULL, NULL, 1, '2026-05-23 03:14:10', NULL, NULL, 'id', '2026-05-23 03:14:10', '2026-05-23 03:14:10'),
('2bd996c6-b0c3-464e-b080-283bf8275229', '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'waiter.dewi@demo.com', '$2y$12$8SiTnI20JBodpNqtBvde/Oh5biM/VPcMh9m4ioect1Yc/i3GghYTy', NULL, 'Waiter Dewi', NULL, NULL, 1, '2026-05-23 03:14:13', NULL, NULL, 'id', '2026-05-23 03:14:13', '2026-05-23 03:14:13'),
('3094d61f-580a-466b-b867-e8c813eb52b4', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'kitchen@demo.com', '$2y$12$AFnSjBxczhgYfOCBDNH0g.oJwVjx1FoGI0lFDqClybF6VkSSvy2uq', '555555', 'Demo Kitchen', NULL, NULL, 1, '2026-05-23 03:13:58', NULL, NULL, 'id', '2026-05-23 03:13:58', '2026-05-23 03:13:58'),
('339ecb64-64a4-4584-b588-ec8a9ab154af', '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'waiter.andi@demo.com', '$2y$12$52NpDjsTQprRg/EQ8Ml7fe9SnbBoowToeR3yHSF9WjL3rmbomkERq', NULL, 'Waiter Andi', NULL, NULL, 1, '2026-05-23 03:14:12', NULL, NULL, 'id', '2026-05-23 03:14:12', '2026-05-23 03:14:12'),
('49818eac-545f-4b52-abe2-53d77535e4c5', '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'waiter.chandra@demo.com', '$2y$12$wSwA9IOL.Jzm2ILokUbetuQBq0nHe0bdRmGJhAq5Rsz2h66Dls8KG', NULL, 'Waiter Chandra', NULL, NULL, 1, '2026-05-23 03:14:13', NULL, NULL, 'id', '2026-05-23 03:14:13', '2026-05-23 03:14:13'),
('51daaaff-7c46-4630-bb9d-45e59b6090ed', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'manager@demo.com', '$2y$12$CEmkBIHob2pBN.neMUSLi.2pCwvU0Wo9kzhXm2XyLmlZd.UwvDsIm', '222222', 'Demo Manager', NULL, NULL, 1, '2026-05-23 03:13:57', NULL, NULL, 'id', '2026-05-23 03:13:57', '2026-05-23 03:13:57'),
('57aa38c1-d706-4721-8acd-b7d24ad8415d', '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'waiter.supervisor@demo.com', '$2y$12$tBW5ep6QDnYi.2meimiJaedE.r2JXhMKOpp5j3peC/5a711SLIEQO', NULL, 'Waiter Supervisor', NULL, NULL, 1, '2026-05-23 03:14:14', NULL, NULL, 'id', '2026-05-23 03:14:14', '2026-05-23 03:14:14'),
('69353b8f-83e5-40d9-95a8-9c47e42825b3', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'cashier@demo.com', '$2y$12$VikMcI18f.f/erRnGebrEuMynplysIjwLuqLD93JFvTW9jnzQ/x5m', '333333', 'Demo Cashier', NULL, NULL, 1, '2026-05-23 03:13:57', '2026-05-23 22:31:30', NULL, 'id', '2026-05-23 03:13:57', '2026-05-23 22:31:30'),
('8c3fc889-e7f1-403c-9600-d0f65b56cf7a', '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'dani.barista@demo.com', '$2y$12$7i38K8LHS3fUcxR7nCxJoOMMWxl1rg6GMJAyzc2JG8Dk2p04lvmwG', NULL, 'Dani Barista', NULL, NULL, 1, '2026-05-23 03:14:10', NULL, NULL, 'id', '2026-05-23 03:14:10', '2026-05-23 03:14:10'),
('8c65db8c-6094-44b5-b79d-f8bb0cb764bd', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'owner@demo.com', '$2y$12$5MxTd4xe56Bvl4VMXrmMWewFNxMfnvrTVno5olILwMR1TH8YO6GN2', '111111', 'Demo Owner', NULL, NULL, 1, '2026-05-23 03:13:57', '2026-05-23 23:13:57', NULL, 'id', '2026-05-23 03:13:57', '2026-05-23 23:13:57'),
('9e9747c3-5548-411a-b095-a9af3db779ac', 'f00c6132-72db-41f2-b0a5-7a46d60c4c83', 'starter@demo.com', '$2y$12$iZ1D2JFcuksXQtcSGwurCO/bMa1wVNIlly2ZmUi7rythJ89XmgoZe', NULL, 'Demo Starter', NULL, NULL, 1, '2026-05-23 03:14:08', NULL, NULL, 'id', '2026-05-23 03:14:08', '2026-05-23 03:14:08'),
('a40932fa-dab7-4175-b008-182ac8f33d97', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'waiter@demo.com', '$2y$12$WikrosAeEZ9gGXxzAe6ATuJn.6zyipJuA4rebTNK7ronUVUbEHdmO', '444444', 'Demo Waiter', NULL, NULL, 1, '2026-05-23 03:13:57', NULL, NULL, 'id', '2026-05-23 03:13:57', '2026-05-23 03:13:57'),
('b98294a2-9929-4de5-be7e-facb31f13d0f', '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'waiter.eka@demo.com', '$2y$12$a5b5Z7qcJbsT1RiPdzcJzunlV/Ile9Rm3tbxk.hjjTnQC7TiQvPsK', NULL, 'Senior Waiter Eka', NULL, NULL, 1, '2026-05-23 03:14:14', NULL, NULL, 'id', '2026-05-23 03:14:14', '2026-05-23 03:14:14'),
('bf80c304-b9b9-4437-ab23-53a59ee4a09d', NULL, 'superadmin@ultimatepos.com', '$2y$12$UEdMO6pah9vptJP0cKJQS.K2Guv/sJfc0JwjCd01HKvYixH1z8r9W', '123456', 'Super Admin', NULL, NULL, 1, '2026-05-23 03:13:56', '2026-05-23 23:00:37', NULL, 'id', '2026-05-23 03:13:56', '2026-05-23 23:00:37'),
('c2434bfe-fc37-4c37-aa82-521d1dc27434', '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'waiter.bella@demo.com', '$2y$12$BpusVwvcSuaJgT.jcbg28e91fnm1QvMRWG58OUePA.JdhLIGNgShq', NULL, 'Waiter Bella', NULL, NULL, 1, '2026-05-23 03:14:12', NULL, NULL, 'id', '2026-05-23 03:14:12', '2026-05-23 03:14:12'),
('e7f30ed6-2f90-4777-a211-40a9b22b9534', '6ce03976-d6e9-4cfb-8012-f0e7e896e593', 'professional@demo.com', '$2y$12$bDkPC0gfoB/CbBelSjnQJevxnTPMCiXGEIwi1AvFNn3XACMVVTNXS', NULL, 'Demo Professional', NULL, NULL, 1, '2026-05-23 03:14:08', NULL, NULL, 'id', '2026-05-23 03:14:08', '2026-05-23 03:14:08'),
('f9c1c5ed-c5ca-40b4-9775-633ad80f7187', '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'eko.supervisor@demo.com', '$2y$12$Ag1ItjpThSZPsZBR1JdZB.7v8EF0TAYrz2w/lYFOST28mTvoO1C0m', NULL, 'Eko Supervisor', NULL, NULL, 1, '2026-05-23 03:14:11', NULL, NULL, 'id', '2026-05-23 03:14:11', '2026-05-23 03:14:11'),
('fab883b8-6652-4ce0-a5ae-c9bcea84ade0', '3645870b-a5b6-4e70-bfa6-0fb17f258ba3', 'chef.budi@demo.com', '$2y$12$jxdVbqcsIE94pG.qRkSl9.CNqRyYSKZRqxQjIdZabA94wXv/Hdwi2', NULL, 'Chef Budi', NULL, NULL, 1, '2026-05-23 03:14:09', NULL, NULL, 'id', '2026-05-23 03:14:09', '2026-05-23 03:14:09');

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

--
-- Table structure for table `user_outlets`
--

CREATE TABLE `user_outlets` (
  `user_id` char(36) NOT NULL,
  `outlet_id` char(36) NOT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `user_outlets`
--

INSERT INTO `user_outlets` (`user_id`, `outlet_id`, `is_default`) VALUES
('03dd075b-def4-48af-b977-27bcfdb07dcf', 'b986207a-24a6-425e-8a7d-8347755cd291', 1),
('12bf3e5b-f4a8-4a78-a700-2bd7dccad276', '01386b69-b9e8-4261-808d-f47f155f8604', 1),
('1eb20387-aedc-47c1-949f-8a528f15a5bf', 'b986207a-24a6-425e-8a7d-8347755cd291', 1),
('2746512d-dcc2-41c2-9279-f3630c95117d', 'b986207a-24a6-425e-8a7d-8347755cd291', 1),
('2bd996c6-b0c3-464e-b080-283bf8275229', 'b986207a-24a6-425e-8a7d-8347755cd291', 1),
('3094d61f-580a-466b-b867-e8c813eb52b4', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 1),
('339ecb64-64a4-4584-b588-ec8a9ab154af', 'b986207a-24a6-425e-8a7d-8347755cd291', 1),
('49818eac-545f-4b52-abe2-53d77535e4c5', 'b986207a-24a6-425e-8a7d-8347755cd291', 1),
('51daaaff-7c46-4630-bb9d-45e59b6090ed', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 1),
('57aa38c1-d706-4721-8acd-b7d24ad8415d', 'b986207a-24a6-425e-8a7d-8347755cd291', 1),
('69353b8f-83e5-40d9-95a8-9c47e42825b3', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 1),
('8c3fc889-e7f1-403c-9600-d0f65b56cf7a', 'b986207a-24a6-425e-8a7d-8347755cd291', 1),
('8c65db8c-6094-44b5-b79d-f8bb0cb764bd', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 1),
('9e9747c3-5548-411a-b095-a9af3db779ac', '5cb76f41-8005-47c2-8ed6-6d55b9dad5b1', 1),
('a40932fa-dab7-4175-b008-182ac8f33d97', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 1),
('b98294a2-9929-4de5-be7e-facb31f13d0f', 'b986207a-24a6-425e-8a7d-8347755cd291', 1),
('c2434bfe-fc37-4c37-aa82-521d1dc27434', 'b986207a-24a6-425e-8a7d-8347755cd291', 1),
('e7f30ed6-2f90-4777-a211-40a9b22b9534', 'a2c17677-f897-4d98-8684-e3154d49f19d', 1),
('f9c1c5ed-c5ca-40b4-9775-633ad80f7187', 'b986207a-24a6-425e-8a7d-8347755cd291', 1),
('fab883b8-6652-4ce0-a5ae-c9bcea84ade0', 'b986207a-24a6-425e-8a7d-8347755cd291', 1);

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

--
-- Table structure for table `user_pins`
--

CREATE TABLE `user_pins` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` char(36) NOT NULL,
  `pin_hash` varchar(255) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `user_pins`
--

INSERT INTO `user_pins` (`id`, `user_id`, `pin_hash`, `is_active`, `last_used_at`, `created_at`, `updated_at`) VALUES
(1, '1eb20387-aedc-47c1-949f-8a528f15a5bf', '$2y$12$RUZVoB2ly9lTL7Ev9NCEp.DOgWVMpY5vYaBAJuF/YndecW742AGGe', 1, NULL, '2026-05-23 03:14:09', '2026-05-23 03:14:09'),
(2, 'fab883b8-6652-4ce0-a5ae-c9bcea84ade0', '$2y$12$ea9W2JsNR83Hb7VCe/NewuWl7.xcVUwR/45Gj2wqJoweMFhWXonxe', 1, NULL, '2026-05-23 03:14:10', '2026-05-23 03:14:10'),
(3, '2746512d-dcc2-41c2-9279-f3630c95117d', '$2y$12$Kn2QWjY.Dg.Y5txjElMWGu.1q..Ap27xc0fuT.ISIn/LsaLzs0m2m', 1, NULL, '2026-05-23 03:14:10', '2026-05-23 03:14:10'),
(4, '8c3fc889-e7f1-403c-9600-d0f65b56cf7a', '$2y$12$T3yat94pqGrSZddVzVmEJO7vCd3adVeUTvjLtEDSnf70tQ5RE1cy2', 1, NULL, '2026-05-23 03:14:11', '2026-05-23 03:14:11'),
(5, 'f9c1c5ed-c5ca-40b4-9775-633ad80f7187', '$2y$12$uzQZxjD6yM136IjU6e6cxulH9K67om6mYczO/v1.ICEcisOJ2rtsa', 1, NULL, '2026-05-23 03:14:11', '2026-05-23 03:14:11'),
(6, '339ecb64-64a4-4584-b588-ec8a9ab154af', '$2y$12$IJUf4dxdLw94Rl8VJ1hO9uo9Lqwzm73N8c2nsAVneIths15WMxUa.', 1, NULL, '2026-05-23 03:14:12', '2026-05-23 03:14:12'),
(7, 'c2434bfe-fc37-4c37-aa82-521d1dc27434', '$2y$12$9UN5lLl0YhxB2z0SvkMvYe8H32uU7/zcE/l/grTRJ0owxn6BSBvs6', 1, NULL, '2026-05-23 03:14:12', '2026-05-23 03:14:12'),
(8, '49818eac-545f-4b52-abe2-53d77535e4c5', '$2y$12$bOlv7x/8KVLHY64P/V4pMOzvtL7h5z1np5Jv2i9pgFFQmXbAoASEq', 1, NULL, '2026-05-23 03:14:13', '2026-05-23 03:14:13'),
(9, '2bd996c6-b0c3-464e-b080-283bf8275229', '$2y$12$miaZSK85mmq4jePE4NZxXuFu5BmoZeOY/KBvxEhFfyMh04W9CiLPC', 1, NULL, '2026-05-23 03:14:13', '2026-05-23 03:14:13'),
(10, 'b98294a2-9929-4de5-be7e-facb31f13d0f', '$2y$12$kAsXEuVKjtuaFubTvI1N4.Td6hdd3h9qABmKZabzb0..a8Vx7h6WK', 1, NULL, '2026-05-23 03:14:14', '2026-05-23 03:14:14'),
(11, '57aa38c1-d706-4721-8acd-b7d24ad8415d', '$2y$12$id6Ok/.9Lwvq48F/KGKI/.mdplXLysfSHzsPgiaG6arckJjIrpkdq', 1, NULL, '2026-05-23 03:14:15', '2026-05-23 03:14:15');

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

--
-- Table structure for table `user_roles`
--

CREATE TABLE `user_roles` (
  `user_id` char(36) NOT NULL,
  `role_id` char(36) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `user_roles`
--

INSERT INTO `user_roles` (`user_id`, `role_id`) VALUES
('03dd075b-def4-48af-b977-27bcfdb07dcf', 'd3441f26-b560-4d68-8bab-5c7aa48b72c3'),
('12bf3e5b-f4a8-4a78-a700-2bd7dccad276', 'd23874f3-22d0-431c-8e77-6694c3043400'),
('1eb20387-aedc-47c1-949f-8a528f15a5bf', '6eff363c-46a3-48c5-9ebb-893fb66812db'),
('2746512d-dcc2-41c2-9279-f3630c95117d', '6eff363c-46a3-48c5-9ebb-893fb66812db'),
('2bd996c6-b0c3-464e-b080-283bf8275229', 'ba3326e8-5428-410f-ae08-25e269c97f9a'),
('3094d61f-580a-466b-b867-e8c813eb52b4', '6eff363c-46a3-48c5-9ebb-893fb66812db'),
('339ecb64-64a4-4584-b588-ec8a9ab154af', 'ba3326e8-5428-410f-ae08-25e269c97f9a'),
('49818eac-545f-4b52-abe2-53d77535e4c5', 'ba3326e8-5428-410f-ae08-25e269c97f9a'),
('51daaaff-7c46-4630-bb9d-45e59b6090ed', '84df5d1d-caca-4c39-8026-4eaec2d03ad5'),
('57aa38c1-d706-4721-8acd-b7d24ad8415d', '84df5d1d-caca-4c39-8026-4eaec2d03ad5'),
('69353b8f-83e5-40d9-95a8-9c47e42825b3', '06093b77-2ab8-4402-ae18-b374667a1aa4'),
('8c3fc889-e7f1-403c-9600-d0f65b56cf7a', '6eff363c-46a3-48c5-9ebb-893fb66812db'),
('8c65db8c-6094-44b5-b79d-f8bb0cb764bd', '7c392f92-9749-43f7-9e08-598b7b52b356'),
('9e9747c3-5548-411a-b095-a9af3db779ac', '6efb3a4a-6516-4b14-852e-fafead5dffd7'),
('a40932fa-dab7-4175-b008-182ac8f33d97', 'ba3326e8-5428-410f-ae08-25e269c97f9a'),
('b98294a2-9929-4de5-be7e-facb31f13d0f', 'ba3326e8-5428-410f-ae08-25e269c97f9a'),
('bf80c304-b9b9-4437-ab23-53a59ee4a09d', 'e3111a6b-941d-48ec-8c7c-b08d51924e05'),
('c2434bfe-fc37-4c37-aa82-521d1dc27434', 'ba3326e8-5428-410f-ae08-25e269c97f9a'),
('e7f30ed6-2f90-4777-a211-40a9b22b9534', '8877effe-0cce-4012-aa0e-eb71cd9fada8'),
('f9c1c5ed-c5ca-40b4-9775-633ad80f7187', '84df5d1d-caca-4c39-8026-4eaec2d03ad5'),
('fab883b8-6652-4ce0-a5ae-c9bcea84ade0', '6eff363c-46a3-48c5-9ebb-893fb66812db');

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

--
-- Table structure for table `variant_groups`
--

CREATE TABLE `variant_groups` (
  `id` char(36) NOT NULL,
  `tenant_id` char(36) NOT NULL,
  `name` varchar(255) NOT NULL,
  `display_name` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `display_type` enum('button','dropdown','color','image') NOT NULL DEFAULT 'button',
  `is_required` tinyint(1) NOT NULL DEFAULT 1,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `sort_order` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `variant_groups`
--

INSERT INTO `variant_groups` (`id`, `tenant_id`, `name`, `display_name`, `description`, `display_type`, `is_required`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES
('1e80b805-c051-445a-beb1-ab8a9a3611c7', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Spice Level', NULL, 'For food items', 'button', 1, 1, 6, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('73eed6dc-d720-419e-ad48-5d7f1f386449', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Temperature', NULL, 'Hot or iced', 'button', 1, 1, 4, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('8ff076be-dd24-4b05-b059-c7313874d0f7', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Sugar Level', NULL, 'Sweetness level', 'dropdown', 1, 1, 3, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('a279acd6-1e11-450e-a2eb-23db6258f3b0', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Size', NULL, 'Beverage size options', 'button', 1, 1, 1, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('bd088566-573a-40cc-870e-69e4cb85748e', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Ice Level', NULL, 'Amount of ice in beverage', 'button', 1, 1, 2, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('cbc2e253-b786-49d0-beaf-e496be850658', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', 'Milk Type', NULL, 'Type of milk for coffee', 'dropdown', 1, 1, 5, '2026-05-23 03:14:02', '2026-05-23 03:14:02');

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

--
-- Table structure for table `variant_options`
--

CREATE TABLE `variant_options` (
  `id` char(36) NOT NULL,
  `variant_group_id` char(36) NOT NULL,
  `name` varchar(255) NOT NULL,
  `display_name` varchar(255) DEFAULT NULL,
  `value` varchar(255) DEFAULT NULL COMMENT 'For color: hex code, for image: path',
  `price_adjustment` decimal(15,2) NOT NULL DEFAULT 0.00 COMMENT 'Add to base price',
  `is_default` tinyint(1) NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `sort_order` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `variant_options`
--

INSERT INTO `variant_options` (`id`, `variant_group_id`, `name`, `display_name`, `value`, `price_adjustment`, `is_default`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES
('14d9aa0a-e8db-4512-8dcd-b27204eace9b', 'bd088566-573a-40cc-870e-69e4cb85748e', 'Extra Ice', NULL, NULL, 0.00, 0, 1, 3, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('17c5a087-cdbc-4d5e-a025-2f8e30060abf', 'cbc2e253-b786-49d0-beaf-e496be850658', 'Coconut Milk', NULL, NULL, 6000.00, 0, 1, 4, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('19346fb1-059e-41b3-ab8a-88077ff4985c', '73eed6dc-d720-419e-ad48-5d7f1f386449', 'Iced', NULL, NULL, 3000.00, 0, 1, 1, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('2171395e-7935-49f5-9f7a-3e8941a915fa', 'a279acd6-1e11-450e-a2eb-23db6258f3b0', 'Small', NULL, NULL, 0.00, 0, 1, 0, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('2a0250c1-23ef-4f59-bd9b-8ac792969f4c', '1e80b805-c051-445a-beb1-ab8a9a3611c7', 'Mild', NULL, NULL, 0.00, 0, 1, 0, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('2bb41abb-44be-48d0-ba0e-813382cc1fd8', '8ff076be-dd24-4b05-b059-c7313874d0f7', '50%', NULL, NULL, 0.00, 0, 1, 2, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('322f55ab-80e6-4f9f-a222-8e0578a60e50', 'cbc2e253-b786-49d0-beaf-e496be850658', 'Almond Milk', NULL, NULL, 8000.00, 0, 1, 2, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('42b59efa-2533-44fd-ae52-a55c409fe666', '1e80b805-c051-445a-beb1-ab8a9a3611c7', 'Extra Spicy', NULL, NULL, 0.00, 0, 1, 3, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('52a108f2-cad2-44c9-a2e9-4a00f7378331', 'bd088566-573a-40cc-870e-69e4cb85748e', 'Less Ice', NULL, NULL, 0.00, 0, 1, 1, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('5a4196cd-aba6-4c10-847c-d996d64f8dcb', '1e80b805-c051-445a-beb1-ab8a9a3611c7', 'Medium', NULL, NULL, 0.00, 0, 1, 1, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('5cc4e691-6cab-4cd2-b8dd-99c74ec54473', 'cbc2e253-b786-49d0-beaf-e496be850658', 'Soy Milk', NULL, NULL, 5000.00, 0, 1, 3, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('61b07662-86d3-40e4-84a8-276ac3dcd978', 'a279acd6-1e11-450e-a2eb-23db6258f3b0', 'Medium', NULL, NULL, 5000.00, 0, 1, 1, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('6324d9b0-633b-4116-99ca-b48424ddbba5', 'cbc2e253-b786-49d0-beaf-e496be850658', 'Oat Milk', NULL, NULL, 8000.00, 0, 1, 1, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('6b991074-588c-43a8-84c5-70a852d1ca95', '8ff076be-dd24-4b05-b059-c7313874d0f7', '0% (No Sugar)', NULL, NULL, 0.00, 0, 1, 0, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('713c3c97-49d7-4059-9b4b-1f498206c998', '8ff076be-dd24-4b05-b059-c7313874d0f7', '25%', NULL, NULL, 0.00, 0, 1, 1, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('834c34b9-dfe6-40da-932d-72098f69c9b7', '8ff076be-dd24-4b05-b059-c7313874d0f7', '75%', NULL, NULL, 0.00, 0, 1, 3, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('873b34a2-268a-4932-a9aa-d368bd1f15f7', '8ff076be-dd24-4b05-b059-c7313874d0f7', '100% (Normal)', NULL, NULL, 0.00, 0, 1, 4, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('8c291576-e719-4b19-97fb-483d667f92cc', 'cbc2e253-b786-49d0-beaf-e496be850658', 'Regular Milk', NULL, NULL, 0.00, 0, 1, 0, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('989baece-dbd1-4821-9605-76f13862b0a7', 'bd088566-573a-40cc-870e-69e4cb85748e', 'No Ice', NULL, NULL, 0.00, 0, 1, 0, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('aeefcc85-aa18-49dd-804d-b98c1feb5ae4', '73eed6dc-d720-419e-ad48-5d7f1f386449', 'Hot', NULL, NULL, 0.00, 0, 1, 0, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('b35d8b3c-7ef2-4abc-af56-5ae51da4bc32', 'bd088566-573a-40cc-870e-69e4cb85748e', 'Normal Ice', NULL, NULL, 0.00, 0, 1, 2, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('efad42be-2b2a-42da-8a04-983867a9b2f4', '1e80b805-c051-445a-beb1-ab8a9a3611c7', 'Spicy', NULL, NULL, 0.00, 0, 1, 2, '2026-05-23 03:14:02', '2026-05-23 03:14:02'),
('f3e263dc-8724-4499-ab5a-6f232e257642', 'a279acd6-1e11-450e-a2eb-23db6258f3b0', 'Large', NULL, NULL, 10000.00, 0, 1, 2, '2026-05-23 03:14:02', '2026-05-23 03:14:02');

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

--
-- Table structure for table `waste_logs`
--

CREATE TABLE `waste_logs` (
  `id` char(36) NOT NULL,
  `tenant_id` char(36) NOT NULL,
  `outlet_id` char(36) NOT NULL,
  `inventory_item_id` char(36) NOT NULL,
  `batch_id` char(36) DEFAULT NULL,
  `waste_date` date NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_id` char(36) NOT NULL,
  `cost_price` decimal(15,2) NOT NULL DEFAULT 0.00,
  `total_cost` decimal(15,2) NOT NULL DEFAULT 0.00,
  `reason` varchar(255) NOT NULL,
  `notes` text DEFAULT NULL,
  `logged_by` char(36) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `waste_logs`
--

INSERT INTO `waste_logs` (`id`, `tenant_id`, `outlet_id`, `inventory_item_id`, `batch_id`, `waste_date`, `quantity`, `unit_id`, `cost_price`, `total_cost`, `reason`, `notes`, `logged_by`, `created_at`, `updated_at`) VALUES
('05471ce8-1383-44d7-bc18-f36207285386', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '12bdf623-63d8-4c24-977c-f8ddf76bdc6c', NULL, '2026-04-25', 3.1100, '573ba895-1241-4235-8937-9958b7827d33', 101.00, 314.11, 'preparation', 'Prep waste - trimmings', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('058d71a6-04d5-4f98-837d-cfb2962c5e82', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'a8ce6ead-ceb8-4836-926c-59e06d8da4df', NULL, '2026-05-19', 2.2100, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 45000.00, 99450.00, 'expired', 'End of shelf life', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('13ff82e1-a122-4bd2-80d6-504fb6d663e6', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '12bdf623-63d8-4c24-977c-f8ddf76bdc6c', NULL, '2026-05-16', 4.3000, '573ba895-1241-4235-8937-9958b7827d33', 101.00, 434.30, 'overproduction', 'Over-prepped for service', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('208a54e4-cc0a-4e52-b657-f8c616465bcf', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ffff33ea-09d2-4834-950b-b9f96e7ebdbd', NULL, '2026-05-14', 2.5600, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 21000.00, 53760.00, 'expired', 'End of shelf life', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('39da44fe-7b4d-4843-9c09-9cbd5c63c707', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '3b5d64fc-719c-46b8-a0b0-6508caa31388', NULL, '2026-05-01', 4.7500, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 99750.00, 473812.50, 'preparation', 'Peeling waste', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('3b90ad0a-06a8-4e08-bc73-b7bd653dee2b', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd3bc63c7-348f-4d4e-bbfb-86454b9cbe4c', NULL, '2026-05-17', 4.4400, '573ba895-1241-4235-8937-9958b7827d33', 202.00, 896.88, 'damaged', 'Packaging damage', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('3d91e353-8b00-46b6-8d79-9772d0264b69', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6e855b45-f21e-48c1-b317-0e6ee8dfdcdd', NULL, '2026-05-17', 1.1200, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 185400.00, 207648.00, 'spoiled', 'Improper storage damage', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('51d4aef0-6f67-4560-aa73-f3743d65b42a', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '0b679841-55cb-42f6-839b-e873e73120cf', NULL, '2026-04-26', 4.1400, '573ba895-1241-4235-8937-9958b7827d33', 82.40, 341.14, 'damaged', 'Packaging damage', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('51fd99b6-f94b-46f6-85be-1480ccccee61', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '50227258-bde8-4585-82c3-24de0ec10c44', NULL, '2026-04-25', 1.0600, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 65650.00, 69589.00, 'spoiled', 'Found spoiled during prep', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('577fe523-5f5f-4018-90ac-e80e9bc825fa', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '1462554a-d08d-4da6-99d7-3b8434aeda4d', NULL, '2026-05-17', 4.8000, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 20800.00, 99840.00, 'expired', 'Product passed expiry date', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('6b9b8ad9-8956-4e65-8493-a9f8d0bcb801', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ffff33ea-09d2-4834-950b-b9f96e7ebdbd', NULL, '2026-05-16', 4.1600, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 21000.00, 87360.00, 'expired', 'End of shelf life', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('712805ca-409c-4983-98c1-a93cdcd6c802', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ecd6c8c0-eb6d-4842-bc89-2d49e2f4564d', NULL, '2026-04-28', 0.8300, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 35350.00, 29340.50, 'spoiled', 'Quality deterioration', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('77b8c536-05bd-465b-9b27-60ec4241048d', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '6e855b45-f21e-48c1-b317-0e6ee8dfdcdd', NULL, '2026-04-25', 2.9600, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 185400.00, 548784.00, 'spoiled', 'Found spoiled during prep', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('7d0f1ce5-76b1-42be-a1e5-873aa414cda0', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '80adc244-40bf-4e5c-beb0-338474572b13', NULL, '2026-05-18', 3.7600, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 111100.00, 417736.00, 'spoiled', 'Improper storage damage', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('9e7e5762-a2bc-4fb5-8f1a-2ab791d0d1dd', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '50e4bdf2-d73b-415c-bd22-79f8477102d2', NULL, '2026-05-16', 4.6600, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 55550.00, 258863.00, 'overproduction', 'Unsold prepared items', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('a59eee2f-a55a-4abe-9e70-9d7b6944c9c3', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '26c30409-cd63-4ab8-ba7d-e6ef140affd7', NULL, '2026-04-30', 3.8200, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 96900.00, 370158.00, 'spoiled', 'Found spoiled during prep', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('a71368dd-116a-46cf-b39c-2db9e387ae99', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'ee2e1070-2bc3-4c6d-bcde-7c6be8a12ed5', NULL, '2026-05-10', 3.6700, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 17460.00, 64078.20, 'damaged', 'Container broken', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('c198e35d-fcac-47bc-b2f6-7d43384f9972', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '8260fc52-f5fb-4154-9851-736cdbf8a257', NULL, '2026-04-30', 4.2700, '573ba895-1241-4235-8937-9958b7827d33', 200.00, 854.00, 'spoiled', 'Quality deterioration', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('c5bbaf4f-c652-478d-aa52-5e16e922df3d', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '3b5d64fc-719c-46b8-a0b0-6508caa31388', NULL, '2026-05-23', 4.8600, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 99750.00, 484785.00, 'expired', 'End of shelf life', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('d14627fb-479f-4f03-bdce-fa314c118a2c', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd3bc63c7-348f-4d4e-bbfb-86454b9cbe4c', NULL, '2026-05-15', 2.6100, '573ba895-1241-4235-8937-9958b7827d33', 202.00, 527.22, 'spoiled', 'Quality deterioration', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('d80785cd-0019-4f25-8c96-310b7c05fbe5', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '26c30409-cd63-4ab8-ba7d-e6ef140affd7', NULL, '2026-05-09', 1.9000, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 96900.00, 184110.00, 'spoiled', 'Found spoiled during prep', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('dd1778b0-8e39-42c7-9c96-49f0e07bd049', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '60c0d6d0-df03-4f4f-8a8f-b5475524329c', NULL, '2026-04-29', 0.5800, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 84150.00, 48807.00, 'preparation', 'Cutting waste', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('e427531a-1f8c-44fc-801d-1d9cc0784f50', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', '50227258-bde8-4585-82c3-24de0ec10c44', NULL, '2026-05-12', 2.3700, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 65650.00, 155590.50, 'damaged', 'Packaging damage', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('efb01d65-8f39-4fd4-8561-31afbe4921cd', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'd3bc63c7-348f-4d4e-bbfb-86454b9cbe4c', NULL, '2026-04-30', 3.4500, '573ba895-1241-4235-8937-9958b7827d33', 202.00, 696.90, 'expired', 'End of shelf life', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00'),
('f31d6374-df0d-4a8e-96cc-fd5296175152', 'fee5a0aa-73ca-4947-ab88-4d15f80f62bb', '8c8265f8-8c1c-4921-942f-b20ce24be7b0', 'f7e69a23-b5e3-4054-b039-5502c76313fc', NULL, '2026-05-06', 3.9000, '7ee4c650-fae3-4a85-a8cd-74e3049fa828', 124800.00, 486720.00, 'overproduction', 'Unsold prepared items', '3094d61f-580a-466b-b867-e8c813eb52b4', '2026-05-23 03:14:00', '2026-05-23 03:14:00');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `authorization_logs`
--
ALTER TABLE `authorization_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `authorization_logs_outlet_id_foreign` (`outlet_id`),
  ADD KEY `authorization_logs_requested_by_foreign` (`requested_by`),
  ADD KEY `authorization_logs_tenant_id_outlet_id_action_type_index` (`tenant_id`,`outlet_id`,`action_type`),
  ADD KEY `authorization_logs_tenant_id_requested_at_index` (`tenant_id`,`requested_at`),
  ADD KEY `authorization_logs_authorized_by_responded_at_index` (`authorized_by`,`responded_at`);

--
-- Indexes for table `authorization_settings`
--
ALTER TABLE `authorization_settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `authorization_settings_tenant_id_unique` (`tenant_id`);

--
-- Indexes for table `batch_settings`
--
ALTER TABLE `batch_settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `batch_settings_tenant_id_unique` (`tenant_id`);

--
-- Indexes for table `cache`
--
ALTER TABLE `cache`
  ADD PRIMARY KEY (`key`);

--
-- Indexes for table `cache_locks`
--
ALTER TABLE `cache_locks`
  ADD PRIMARY KEY (`key`);

--
-- Indexes for table `cash_drawer_logs`
--
ALTER TABLE `cash_drawer_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cash_drawer_logs_tenant_id_foreign` (`tenant_id`),
  ADD KEY `cash_drawer_logs_user_id_foreign` (`user_id`),
  ADD KEY `cash_drawer_logs_transaction_id_foreign` (`transaction_id`),
  ADD KEY `cash_drawer_logs_pos_session_id_created_at_index` (`pos_session_id`,`created_at`),
  ADD KEY `cash_drawer_logs_outlet_id_type_index` (`outlet_id`,`type`);

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

--
-- Indexes for table `combo_items`
--
ALTER TABLE `combo_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `combo_items_product_id_foreign` (`product_id`),
  ADD KEY `combo_items_category_id_foreign` (`category_id`),
  ADD KEY `combo_items_combo_id_sort_order_index` (`combo_id`,`sort_order`);

--
-- Indexes for table `customers`
--
ALTER TABLE `customers`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `customers_tenant_id_code_unique` (`tenant_id`,`code`),
  ADD UNIQUE KEY `customers_tenant_id_email_unique` (`tenant_id`,`email`),
  ADD KEY `customers_tenant_id_phone_index` (`tenant_id`,`phone`),
  ADD KEY `customers_tenant_id_name_index` (`tenant_id`,`name`),
  ADD KEY `customers_tenant_id_is_active_index` (`tenant_id`,`is_active`);

--
-- Indexes for table `customer_points`
--
ALTER TABLE `customer_points`
  ADD PRIMARY KEY (`id`),
  ADD KEY `customer_points_created_by_foreign` (`created_by`),
  ADD KEY `customer_points_customer_id_index` (`customer_id`),
  ADD KEY `customer_points_created_at_index` (`created_at`);

--
-- Indexes for table `discounts`
--
ALTER TABLE `discounts`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `discounts_tenant_id_code_unique` (`tenant_id`,`code`),
  ADD KEY `discounts_tenant_id_is_active_valid_from_valid_until_index` (`tenant_id`,`is_active`,`valid_from`,`valid_until`);

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

--
-- Indexes for table `floors`
--
ALTER TABLE `floors`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `floors_outlet_id_name_unique` (`outlet_id`,`name`),
  ADD KEY `floors_tenant_id_index` (`tenant_id`);

--
-- Indexes for table `goods_receives`
--
ALTER TABLE `goods_receives`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `goods_receives_tenant_id_gr_number_unique` (`tenant_id`,`gr_number`),
  ADD KEY `goods_receives_outlet_id_foreign` (`outlet_id`),
  ADD KEY `goods_receives_supplier_id_foreign` (`supplier_id`),
  ADD KEY `goods_receives_received_by_foreign` (`received_by`),
  ADD KEY `goods_receives_tenant_id_outlet_id_status_index` (`tenant_id`,`outlet_id`,`status`),
  ADD KEY `goods_receives_tenant_id_receive_date_index` (`tenant_id`,`receive_date`),
  ADD KEY `goods_receives_purchase_order_id_index` (`purchase_order_id`);

--
-- Indexes for table `goods_receive_items`
--
ALTER TABLE `goods_receive_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `goods_receive_items_purchase_order_item_id_foreign` (`purchase_order_item_id`),
  ADD KEY `goods_receive_items_unit_id_foreign` (`unit_id`),
  ADD KEY `goods_receive_items_goods_receive_id_index` (`goods_receive_id`),
  ADD KEY `goods_receive_items_inventory_item_id_index` (`inventory_item_id`);

--
-- Indexes for table `held_orders`
--
ALTER TABLE `held_orders`
  ADD PRIMARY KEY (`id`),
  ADD KEY `held_orders_tenant_id_foreign` (`tenant_id`),
  ADD KEY `held_orders_pos_session_id_foreign` (`pos_session_id`),
  ADD KEY `held_orders_user_id_foreign` (`user_id`),
  ADD KEY `held_orders_customer_id_foreign` (`customer_id`),
  ADD KEY `held_orders_outlet_id_pos_session_id_index` (`outlet_id`,`pos_session_id`),
  ADD KEY `held_orders_hold_number_index` (`hold_number`);

--
-- Indexes for table `inventory_categories`
--
ALTER TABLE `inventory_categories`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `inventory_categories_tenant_id_slug_unique` (`tenant_id`,`slug`),
  ADD KEY `inventory_categories_parent_id_foreign` (`parent_id`),
  ADD KEY `inventory_categories_tenant_id_is_active_index` (`tenant_id`,`is_active`),
  ADD KEY `inventory_categories_tenant_id_parent_id_index` (`tenant_id`,`parent_id`);

--
-- Indexes for table `inventory_items`
--
ALTER TABLE `inventory_items`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `inventory_items_tenant_id_sku_unique` (`tenant_id`,`sku`),
  ADD KEY `inventory_items_category_id_foreign` (`category_id`),
  ADD KEY `inventory_items_unit_id_foreign` (`unit_id`),
  ADD KEY `inventory_items_purchase_unit_id_foreign` (`purchase_unit_id`),
  ADD KEY `inventory_items_tenant_id_barcode_index` (`tenant_id`,`barcode`),
  ADD KEY `inventory_items_tenant_id_category_id_index` (`tenant_id`,`category_id`),
  ADD KEY `inventory_items_tenant_id_is_active_index` (`tenant_id`,`is_active`),
  ADD KEY `inventory_items_tenant_id_name_index` (`tenant_id`,`name`);

--
-- Indexes for table `inventory_stocks`
--
ALTER TABLE `inventory_stocks`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `inventory_stocks_outlet_id_inventory_item_id_unique` (`outlet_id`,`inventory_item_id`),
  ADD KEY `inventory_stocks_inventory_item_id_foreign` (`inventory_item_id`),
  ADD KEY `inventory_stocks_outlet_id_quantity_index` (`outlet_id`,`quantity`);

--
-- Indexes for table `jobs`
--
ALTER TABLE `jobs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jobs_queue_index` (`queue`);

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

--
-- Indexes for table `kitchen_orders`
--
ALTER TABLE `kitchen_orders`
  ADD PRIMARY KEY (`id`),
  ADD KEY `kitchen_orders_transaction_id_foreign` (`transaction_id`),
  ADD KEY `kitchen_orders_table_id_foreign` (`table_id`),
  ADD KEY `kitchen_orders_tenant_id_outlet_id_status_index` (`tenant_id`,`outlet_id`,`status`),
  ADD KEY `kitchen_orders_outlet_id_status_created_at_index` (`outlet_id`,`status`,`created_at`),
  ADD KEY `kitchen_orders_station_id_status_index` (`station_id`,`status`);

--
-- Indexes for table `kitchen_order_items`
--
ALTER TABLE `kitchen_order_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `kitchen_order_items_transaction_item_id_foreign` (`transaction_item_id`),
  ADD KEY `kitchen_order_items_station_id_foreign` (`station_id`),
  ADD KEY `kitchen_order_items_kitchen_order_id_status_index` (`kitchen_order_id`,`status`);

--
-- Indexes for table `kitchen_stations`
--
ALTER TABLE `kitchen_stations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `kitchen_stations_outlet_id_foreign` (`outlet_id`),
  ADD KEY `kitchen_stations_tenant_id_outlet_id_is_active_index` (`tenant_id`,`outlet_id`,`is_active`);

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

--
-- Indexes for table `modifiers`
--
ALTER TABLE `modifiers`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `modifiers_modifier_group_id_name_unique` (`modifier_group_id`,`name`),
  ADD KEY `modifiers_inventory_item_id_foreign` (`inventory_item_id`),
  ADD KEY `modifiers_modifier_group_id_is_active_index` (`modifier_group_id`,`is_active`);

--
-- Indexes for table `modifier_groups`
--
ALTER TABLE `modifier_groups`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `modifier_groups_tenant_id_name_unique` (`tenant_id`,`name`),
  ADD KEY `modifier_groups_tenant_id_is_active_index` (`tenant_id`,`is_active`);

--
-- Indexes for table `outlets`
--
ALTER TABLE `outlets`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `outlets_tenant_id_code_unique` (`tenant_id`,`code`),
  ADD KEY `outlets_tenant_id_index` (`tenant_id`);

--
-- Indexes for table `password_reset_tokens`
--
ALTER TABLE `password_reset_tokens`
  ADD PRIMARY KEY (`email`);

--
-- Indexes for table `payment_methods`
--
ALTER TABLE `payment_methods`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `payment_methods_tenant_id_code_unique` (`tenant_id`,`code`),
  ADD KEY `payment_methods_tenant_id_is_active_sort_order_index` (`tenant_id`,`is_active`,`sort_order`);

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `permissions_slug_unique` (`slug`);

--
-- Indexes for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`),
  ADD KEY `personal_access_tokens_expires_at_index` (`expires_at`);

--
-- Indexes for table `pin_attempts`
--
ALTER TABLE `pin_attempts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pin_attempts_outlet_id_foreign` (`outlet_id`),
  ADD KEY `pin_attempts_user_id_foreign` (`user_id`),
  ADD KEY `pin_attempts_tenant_id_outlet_id_attempted_at_index` (`tenant_id`,`outlet_id`,`attempted_at`);

--
-- Indexes for table `pos_sessions`
--
ALTER TABLE `pos_sessions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `pos_sessions_outlet_id_session_number_unique` (`outlet_id`,`session_number`),
  ADD KEY `pos_sessions_closed_by_foreign` (`closed_by`),
  ADD KEY `pos_sessions_outlet_id_status_index` (`outlet_id`,`status`),
  ADD KEY `pos_sessions_user_id_status_index` (`user_id`,`status`),
  ADD KEY `pos_sessions_tenant_id_index` (`tenant_id`);

--
-- Indexes for table `prices`
--
ALTER TABLE `prices`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `prices_inventory_item_id_outlet_id_unique` (`inventory_item_id`,`outlet_id`),
  ADD KEY `prices_outlet_id_foreign` (`outlet_id`),
  ADD KEY `prices_tenant_id_outlet_id_is_active_index` (`tenant_id`,`outlet_id`,`is_active`);

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `products_tenant_id_sku_unique` (`tenant_id`,`sku`),
  ADD UNIQUE KEY `products_tenant_id_slug_unique` (`tenant_id`,`slug`),
  ADD KEY `products_category_id_foreign` (`category_id`),
  ADD KEY `products_recipe_id_foreign` (`recipe_id`),
  ADD KEY `products_inventory_item_id_foreign` (`inventory_item_id`),
  ADD KEY `products_tenant_id_barcode_index` (`tenant_id`,`barcode`),
  ADD KEY `products_tenant_id_category_id_is_active_index` (`tenant_id`,`category_id`,`is_active`),
  ADD KEY `products_tenant_id_product_type_index` (`tenant_id`,`product_type`),
  ADD KEY `products_kitchen_station_id_foreign` (`kitchen_station_id`);

--
-- Indexes for table `product_categories`
--
ALTER TABLE `product_categories`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `product_categories_tenant_id_slug_unique` (`tenant_id`,`slug`),
  ADD UNIQUE KEY `product_categories_tenant_id_code_unique` (`tenant_id`,`code`),
  ADD KEY `product_categories_parent_id_foreign` (`parent_id`),
  ADD KEY `product_categories_tenant_id_is_active_index` (`tenant_id`,`is_active`),
  ADD KEY `product_categories_tenant_id_parent_id_index` (`tenant_id`,`parent_id`);

--
-- Indexes for table `product_modifier_groups`
--
ALTER TABLE `product_modifier_groups`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `product_modifier_groups_product_id_modifier_group_id_unique` (`product_id`,`modifier_group_id`),
  ADD KEY `product_modifier_groups_modifier_group_id_foreign` (`modifier_group_id`);

--
-- Indexes for table `product_outlets`
--
ALTER TABLE `product_outlets`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `product_outlets_product_id_outlet_id_unique` (`product_id`,`outlet_id`),
  ADD KEY `product_outlets_outlet_id_is_available_index` (`outlet_id`,`is_available`);

--
-- Indexes for table `product_variants`
--
ALTER TABLE `product_variants`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_variants_inventory_item_id_foreign` (`inventory_item_id`),
  ADD KEY `product_variants_recipe_id_foreign` (`recipe_id`),
  ADD KEY `product_variants_product_id_is_active_index` (`product_id`,`is_active`);

--
-- Indexes for table `product_variant_groups`
--
ALTER TABLE `product_variant_groups`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `product_variant_groups_product_id_variant_group_id_unique` (`product_id`,`variant_group_id`),
  ADD KEY `product_variant_groups_variant_group_id_foreign` (`variant_group_id`);

--
-- Indexes for table `purchase_orders`
--
ALTER TABLE `purchase_orders`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `purchase_orders_tenant_id_po_number_unique` (`tenant_id`,`po_number`),
  ADD KEY `purchase_orders_outlet_id_foreign` (`outlet_id`),
  ADD KEY `purchase_orders_supplier_id_foreign` (`supplier_id`),
  ADD KEY `purchase_orders_created_by_foreign` (`created_by`),
  ADD KEY `purchase_orders_approved_by_foreign` (`approved_by`),
  ADD KEY `purchase_orders_tenant_id_outlet_id_status_index` (`tenant_id`,`outlet_id`,`status`),
  ADD KEY `purchase_orders_tenant_id_supplier_id_index` (`tenant_id`,`supplier_id`),
  ADD KEY `purchase_orders_tenant_id_order_date_index` (`tenant_id`,`order_date`);

--
-- Indexes for table `purchase_order_items`
--
ALTER TABLE `purchase_order_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `purchase_order_items_unit_id_foreign` (`unit_id`),
  ADD KEY `purchase_order_items_purchase_order_id_index` (`purchase_order_id`),
  ADD KEY `purchase_order_items_inventory_item_id_index` (`inventory_item_id`);

--
-- Indexes for table `qr_orders`
--
ALTER TABLE `qr_orders`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `qr_orders_order_number_unique` (`order_number`),
  ADD KEY `qr_orders_outlet_id_foreign` (`outlet_id`),
  ADD KEY `qr_orders_table_id_foreign` (`table_id`),
  ADD KEY `qr_orders_transaction_id_foreign` (`transaction_id`),
  ADD KEY `qr_orders_tenant_id_outlet_id_status_index` (`tenant_id`,`outlet_id`,`status`),
  ADD KEY `qr_orders_xendit_invoice_id_index` (`xendit_invoice_id`);

--
-- Indexes for table `qr_order_items`
--
ALTER TABLE `qr_order_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `qr_order_items_qr_order_id_foreign` (`qr_order_id`),
  ADD KEY `qr_order_items_product_id_foreign` (`product_id`),
  ADD KEY `qr_order_items_product_variant_id_foreign` (`product_variant_id`);

--
-- Indexes for table `recipes`
--
ALTER TABLE `recipes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `recipes_yield_unit_id_foreign` (`yield_unit_id`),
  ADD KEY `recipes_tenant_id_product_id_index` (`tenant_id`,`product_id`),
  ADD KEY `recipes_tenant_id_is_active_index` (`tenant_id`,`is_active`);

--
-- Indexes for table `recipe_items`
--
ALTER TABLE `recipe_items`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `recipe_items_recipe_id_inventory_item_id_unique` (`recipe_id`,`inventory_item_id`),
  ADD KEY `recipe_items_inventory_item_id_foreign` (`inventory_item_id`),
  ADD KEY `recipe_items_unit_id_foreign` (`unit_id`),
  ADD KEY `recipe_items_recipe_id_sort_order_index` (`recipe_id`,`sort_order`);

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `roles_tenant_id_slug_unique` (`tenant_id`,`slug`),
  ADD KEY `roles_tenant_id_index` (`tenant_id`);

--
-- Indexes for table `role_permissions`
--
ALTER TABLE `role_permissions`
  ADD PRIMARY KEY (`role_id`,`permission_id`),
  ADD KEY `role_permissions_permission_id_foreign` (`permission_id`);

--
-- Indexes for table `sessions`
--
ALTER TABLE `sessions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `sessions_user_id_index` (`user_id`),
  ADD KEY `sessions_last_activity_index` (`last_activity`);

--
-- Indexes for table `stock_adjustments`
--
ALTER TABLE `stock_adjustments`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `stock_adjustments_tenant_id_adjustment_number_unique` (`tenant_id`,`adjustment_number`),
  ADD KEY `stock_adjustments_outlet_id_foreign` (`outlet_id`),
  ADD KEY `stock_adjustments_created_by_foreign` (`created_by`),
  ADD KEY `stock_adjustments_approved_by_foreign` (`approved_by`),
  ADD KEY `stock_adjustments_tenant_id_outlet_id_status_index` (`tenant_id`,`outlet_id`,`status`),
  ADD KEY `stock_adjustments_tenant_id_adjustment_date_index` (`tenant_id`,`adjustment_date`);

--
-- Indexes for table `stock_adjustment_items`
--
ALTER TABLE `stock_adjustment_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_adjustment_items_batch_id_foreign` (`batch_id`),
  ADD KEY `stock_adjustment_items_stock_adjustment_id_index` (`stock_adjustment_id`),
  ADD KEY `stock_adjustment_items_inventory_item_id_index` (`inventory_item_id`);

--
-- Indexes for table `stock_batches`
--
ALTER TABLE `stock_batches`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_batches_inventory_item_id_foreign` (`inventory_item_id`),
  ADD KEY `stock_batches_outlet_id_inventory_item_id_status_index` (`outlet_id`,`inventory_item_id`,`status`),
  ADD KEY `stock_batches_outlet_id_expiry_date_status_index` (`outlet_id`,`expiry_date`,`status`),
  ADD KEY `stock_batches_tenant_id_expiry_date_index` (`tenant_id`,`expiry_date`),
  ADD KEY `stock_batches_batch_number_index` (`batch_number`),
  ADD KEY `stock_batches_expiry_date_index` (`expiry_date`);

--
-- Indexes for table `stock_batch_movements`
--
ALTER TABLE `stock_batch_movements`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_batch_movements_tenant_id_foreign` (`tenant_id`),
  ADD KEY `stock_batch_movements_inventory_item_id_foreign` (`inventory_item_id`),
  ADD KEY `stock_batch_movements_user_id_foreign` (`user_id`),
  ADD KEY `stock_batch_movements_stock_batch_id_created_at_index` (`stock_batch_id`,`created_at`),
  ADD KEY `stock_batch_movements_outlet_id_inventory_item_id_type_index` (`outlet_id`,`inventory_item_id`,`type`);

--
-- Indexes for table `stock_movements`
--
ALTER TABLE `stock_movements`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_movements_inventory_item_id_foreign` (`inventory_item_id`),
  ADD KEY `stock_movements_batch_id_foreign` (`batch_id`),
  ADD KEY `stock_movements_created_by_foreign` (`created_by`),
  ADD KEY `stock_movements_outlet_id_inventory_item_id_created_at_index` (`outlet_id`,`inventory_item_id`,`created_at`),
  ADD KEY `stock_movements_outlet_id_type_created_at_index` (`outlet_id`,`type`,`created_at`),
  ADD KEY `stock_movements_reference_type_reference_id_index` (`reference_type`,`reference_id`);

--
-- Indexes for table `stock_transfers`
--
ALTER TABLE `stock_transfers`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `stock_transfers_tenant_id_transfer_number_unique` (`tenant_id`,`transfer_number`),
  ADD KEY `stock_transfers_from_outlet_id_foreign` (`from_outlet_id`),
  ADD KEY `stock_transfers_to_outlet_id_foreign` (`to_outlet_id`),
  ADD KEY `stock_transfers_created_by_foreign` (`created_by`),
  ADD KEY `stock_transfers_approved_by_foreign` (`approved_by`),
  ADD KEY `stock_transfers_received_by_foreign` (`received_by`),
  ADD KEY `stock_transfers_tenant_id_from_outlet_id_status_index` (`tenant_id`,`from_outlet_id`,`status`),
  ADD KEY `stock_transfers_tenant_id_to_outlet_id_status_index` (`tenant_id`,`to_outlet_id`,`status`),
  ADD KEY `stock_transfers_tenant_id_transfer_date_index` (`tenant_id`,`transfer_date`);

--
-- Indexes for table `stock_transfer_items`
--
ALTER TABLE `stock_transfer_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_transfer_items_batch_id_foreign` (`batch_id`),
  ADD KEY `stock_transfer_items_unit_id_foreign` (`unit_id`),
  ADD KEY `stock_transfer_items_stock_transfer_id_index` (`stock_transfer_id`),
  ADD KEY `stock_transfer_items_inventory_item_id_index` (`inventory_item_id`);

--
-- Indexes for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `subscriptions_subscription_plan_id_foreign` (`subscription_plan_id`),
  ADD KEY `subscriptions_tenant_id_status_index` (`tenant_id`,`status`);

--
-- Indexes for table `subscription_invoices`
--
ALTER TABLE `subscription_invoices`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscription_invoices_invoice_number_unique` (`invoice_number`),
  ADD UNIQUE KEY `subscription_invoices_xendit_invoice_id_unique` (`xendit_invoice_id`),
  ADD KEY `subscription_invoices_subscription_id_foreign` (`subscription_id`),
  ADD KEY `subscription_invoices_subscription_plan_id_foreign` (`subscription_plan_id`),
  ADD KEY `subscription_invoices_tenant_id_status_index` (`tenant_id`,`status`),
  ADD KEY `subscription_invoices_xendit_invoice_id_index` (`xendit_invoice_id`);

--
-- Indexes for table `subscription_plans`
--
ALTER TABLE `subscription_plans`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscription_plans_slug_unique` (`slug`);

--
-- Indexes for table `suppliers`
--
ALTER TABLE `suppliers`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `suppliers_tenant_id_code_unique` (`tenant_id`,`code`),
  ADD KEY `suppliers_tenant_id_is_active_index` (`tenant_id`,`is_active`),
  ADD KEY `suppliers_tenant_id_name_index` (`tenant_id`,`name`);

--
-- Indexes for table `supplier_items`
--
ALTER TABLE `supplier_items`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `supplier_items_supplier_id_inventory_item_id_unique` (`supplier_id`,`inventory_item_id`),
  ADD KEY `supplier_items_unit_id_foreign` (`unit_id`),
  ADD KEY `supplier_items_inventory_item_id_is_active_index` (`inventory_item_id`,`is_active`),
  ADD KEY `supplier_items_inventory_item_id_is_preferred_index` (`inventory_item_id`,`is_preferred`);

--
-- Indexes for table `tables`
--
ALTER TABLE `tables`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `tables_outlet_id_number_unique` (`outlet_id`,`number`),
  ADD UNIQUE KEY `tables_qr_token_unique` (`qr_token`),
  ADD KEY `tables_tenant_id_index` (`tenant_id`),
  ADD KEY `tables_floor_id_index` (`floor_id`),
  ADD KEY `tables_status_index` (`status`);

--
-- Indexes for table `table_sessions`
--
ALTER TABLE `table_sessions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `table_sessions_opened_by_foreign` (`opened_by`),
  ADD KEY `table_sessions_closed_by_foreign` (`closed_by`),
  ADD KEY `table_sessions_tenant_id_index` (`tenant_id`),
  ADD KEY `table_sessions_table_id_index` (`table_id`),
  ADD KEY `table_sessions_status_index` (`status`),
  ADD KEY `table_sessions_opened_at_index` (`opened_at`);

--
-- Indexes for table `tenants`
--
ALTER TABLE `tenants`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `tenants_code_unique` (`code`);

--
-- Indexes for table `transactions`
--
ALTER TABLE `transactions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `transactions_tenant_id_transaction_number_unique` (`tenant_id`,`transaction_number`),
  ADD KEY `transactions_outlet_id_foreign` (`outlet_id`),
  ADD KEY `transactions_user_id_foreign` (`user_id`),
  ADD KEY `transactions_original_transaction_id_foreign` (`original_transaction_id`),
  ADD KEY `transactions_tenant_id_outlet_id_completed_at_index` (`tenant_id`,`outlet_id`,`completed_at`),
  ADD KEY `transactions_pos_session_id_status_index` (`pos_session_id`,`status`),
  ADD KEY `transactions_customer_id_index` (`customer_id`),
  ADD KEY `transactions_table_id_index` (`table_id`),
  ADD KEY `transactions_table_session_id_index` (`table_session_id`),
  ADD KEY `transactions_order_type_index` (`order_type`);

--
-- Indexes for table `transaction_discounts`
--
ALTER TABLE `transaction_discounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `transaction_discounts_transaction_item_id_foreign` (`transaction_item_id`),
  ADD KEY `transaction_discounts_discount_id_foreign` (`discount_id`),
  ADD KEY `transaction_discounts_transaction_id_index` (`transaction_id`);

--
-- Indexes for table `transaction_items`
--
ALTER TABLE `transaction_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `transaction_items_transaction_id_index` (`transaction_id`),
  ADD KEY `transaction_items_product_id_index` (`product_id`),
  ADD KEY `transaction_items_product_variant_id_index` (`product_variant_id`),
  ADD KEY `transaction_items_inventory_item_id_foreign` (`inventory_item_id`);

--
-- Indexes for table `transaction_payments`
--
ALTER TABLE `transaction_payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `transaction_payments_payment_method_id_foreign` (`payment_method_id`),
  ADD KEY `transaction_payments_transaction_id_index` (`transaction_id`);

--
-- Indexes for table `units`
--
ALTER TABLE `units`
  ADD PRIMARY KEY (`id`),
  ADD KEY `units_base_unit_id_foreign` (`base_unit_id`),
  ADD KEY `units_tenant_id_type_index` (`tenant_id`,`type`),
  ADD KEY `units_tenant_id_is_active_index` (`tenant_id`,`is_active`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`),
  ADD KEY `users_tenant_id_index` (`tenant_id`),
  ADD KEY `users_email_index` (`email`);

--
-- Indexes for table `user_outlets`
--
ALTER TABLE `user_outlets`
  ADD PRIMARY KEY (`user_id`,`outlet_id`),
  ADD KEY `user_outlets_user_id_index` (`user_id`),
  ADD KEY `user_outlets_outlet_id_index` (`outlet_id`);

--
-- Indexes for table `user_pins`
--
ALTER TABLE `user_pins`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_pins_user_id_unique` (`user_id`);

--
-- Indexes for table `user_roles`
--
ALTER TABLE `user_roles`
  ADD PRIMARY KEY (`user_id`,`role_id`),
  ADD KEY `user_roles_role_id_foreign` (`role_id`);

--
-- Indexes for table `variant_groups`
--
ALTER TABLE `variant_groups`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `variant_groups_tenant_id_name_unique` (`tenant_id`,`name`),
  ADD KEY `variant_groups_tenant_id_is_active_index` (`tenant_id`,`is_active`);

--
-- Indexes for table `variant_options`
--
ALTER TABLE `variant_options`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `variant_options_variant_group_id_name_unique` (`variant_group_id`,`name`),
  ADD KEY `variant_options_variant_group_id_is_active_index` (`variant_group_id`,`is_active`);

--
-- Indexes for table `waste_logs`
--
ALTER TABLE `waste_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `waste_logs_outlet_id_foreign` (`outlet_id`),
  ADD KEY `waste_logs_inventory_item_id_foreign` (`inventory_item_id`),
  ADD KEY `waste_logs_batch_id_foreign` (`batch_id`),
  ADD KEY `waste_logs_unit_id_foreign` (`unit_id`),
  ADD KEY `waste_logs_logged_by_foreign` (`logged_by`),
  ADD KEY `waste_logs_tenant_id_outlet_id_waste_date_index` (`tenant_id`,`outlet_id`,`waste_date`),
  ADD KEY `waste_logs_tenant_id_inventory_item_id_index` (`tenant_id`,`inventory_item_id`),
  ADD KEY `waste_logs_tenant_id_reason_index` (`tenant_id`,`reason`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `authorization_settings`
--
ALTER TABLE `authorization_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `batch_settings`
--
ALTER TABLE `batch_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `jobs`
--
ALTER TABLE `jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=86;

--
-- AUTO_INCREMENT for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pin_attempts`
--
ALTER TABLE `pin_attempts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subscriptions`
--
ALTER TABLE `subscriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `subscription_invoices`
--
ALTER TABLE `subscription_invoices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subscription_plans`
--
ALTER TABLE `subscription_plans`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `user_pins`
--
ALTER TABLE `user_pins`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `authorization_logs`
--
ALTER TABLE `authorization_logs`
  ADD CONSTRAINT `authorization_logs_authorized_by_foreign` FOREIGN KEY (`authorized_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `authorization_logs_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `authorization_logs_requested_by_foreign` FOREIGN KEY (`requested_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `authorization_logs_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `authorization_settings`
--
ALTER TABLE `authorization_settings`
  ADD CONSTRAINT `authorization_settings_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `batch_settings`
--
ALTER TABLE `batch_settings`
  ADD CONSTRAINT `batch_settings_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `cash_drawer_logs`
--
ALTER TABLE `cash_drawer_logs`
  ADD CONSTRAINT `cash_drawer_logs_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `cash_drawer_logs_pos_session_id_foreign` FOREIGN KEY (`pos_session_id`) REFERENCES `pos_sessions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `cash_drawer_logs_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `cash_drawer_logs_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `cash_drawer_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `combos`
--
ALTER TABLE `combos`
  ADD CONSTRAINT `combos_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `combo_items`
--
ALTER TABLE `combo_items`
  ADD CONSTRAINT `combo_items_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `product_categories` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `combo_items_combo_id_foreign` FOREIGN KEY (`combo_id`) REFERENCES `combos` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `combo_items_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `customers`
--
ALTER TABLE `customers`
  ADD CONSTRAINT `customers_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `customer_points`
--
ALTER TABLE `customer_points`
  ADD CONSTRAINT `customer_points_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `customer_points_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `discounts`
--
ALTER TABLE `discounts`
  ADD CONSTRAINT `discounts_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `floors`
--
ALTER TABLE `floors`
  ADD CONSTRAINT `floors_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `floors_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `goods_receives`
--
ALTER TABLE `goods_receives`
  ADD CONSTRAINT `goods_receives_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `goods_receives_purchase_order_id_foreign` FOREIGN KEY (`purchase_order_id`) REFERENCES `purchase_orders` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `goods_receives_received_by_foreign` FOREIGN KEY (`received_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `goods_receives_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `suppliers` (`id`),
  ADD CONSTRAINT `goods_receives_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `goods_receive_items`
--
ALTER TABLE `goods_receive_items`
  ADD CONSTRAINT `goods_receive_items_goods_receive_id_foreign` FOREIGN KEY (`goods_receive_id`) REFERENCES `goods_receives` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `goods_receive_items_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`),
  ADD CONSTRAINT `goods_receive_items_purchase_order_item_id_foreign` FOREIGN KEY (`purchase_order_item_id`) REFERENCES `purchase_order_items` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `goods_receive_items_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`);

--
-- Constraints for table `held_orders`
--
ALTER TABLE `held_orders`
  ADD CONSTRAINT `held_orders_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `held_orders_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `held_orders_pos_session_id_foreign` FOREIGN KEY (`pos_session_id`) REFERENCES `pos_sessions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `held_orders_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `held_orders_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `inventory_categories`
--
ALTER TABLE `inventory_categories`
  ADD CONSTRAINT `inventory_categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `inventory_categories` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `inventory_categories_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `inventory_items`
--
ALTER TABLE `inventory_items`
  ADD CONSTRAINT `inventory_items_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `inventory_categories` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `inventory_items_purchase_unit_id_foreign` FOREIGN KEY (`purchase_unit_id`) REFERENCES `units` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `inventory_items_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `inventory_items_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`);

--
-- Constraints for table `inventory_stocks`
--
ALTER TABLE `inventory_stocks`
  ADD CONSTRAINT `inventory_stocks_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `inventory_stocks_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `kitchen_orders`
--
ALTER TABLE `kitchen_orders`
  ADD CONSTRAINT `kitchen_orders_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `kitchen_orders_station_id_foreign` FOREIGN KEY (`station_id`) REFERENCES `kitchen_stations` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `kitchen_orders_table_id_foreign` FOREIGN KEY (`table_id`) REFERENCES `tables` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `kitchen_orders_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `kitchen_orders_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `kitchen_order_items`
--
ALTER TABLE `kitchen_order_items`
  ADD CONSTRAINT `kitchen_order_items_kitchen_order_id_foreign` FOREIGN KEY (`kitchen_order_id`) REFERENCES `kitchen_orders` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `kitchen_order_items_station_id_foreign` FOREIGN KEY (`station_id`) REFERENCES `kitchen_stations` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `kitchen_order_items_transaction_item_id_foreign` FOREIGN KEY (`transaction_item_id`) REFERENCES `transaction_items` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `kitchen_stations`
--
ALTER TABLE `kitchen_stations`
  ADD CONSTRAINT `kitchen_stations_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `kitchen_stations_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `modifiers`
--
ALTER TABLE `modifiers`
  ADD CONSTRAINT `modifiers_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `modifiers_modifier_group_id_foreign` FOREIGN KEY (`modifier_group_id`) REFERENCES `modifier_groups` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `modifier_groups`
--
ALTER TABLE `modifier_groups`
  ADD CONSTRAINT `modifier_groups_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `outlets`
--
ALTER TABLE `outlets`
  ADD CONSTRAINT `outlets_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `payment_methods`
--
ALTER TABLE `payment_methods`
  ADD CONSTRAINT `payment_methods_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `pin_attempts`
--
ALTER TABLE `pin_attempts`
  ADD CONSTRAINT `pin_attempts_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `pin_attempts_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `pin_attempts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `pos_sessions`
--
ALTER TABLE `pos_sessions`
  ADD CONSTRAINT `pos_sessions_closed_by_foreign` FOREIGN KEY (`closed_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `pos_sessions_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`),
  ADD CONSTRAINT `pos_sessions_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `pos_sessions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `prices`
--
ALTER TABLE `prices`
  ADD CONSTRAINT `prices_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `prices_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `prices_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `products`
--
ALTER TABLE `products`
  ADD CONSTRAINT `products_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `product_categories` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `products_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `products_kitchen_station_id_foreign` FOREIGN KEY (`kitchen_station_id`) REFERENCES `kitchen_stations` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `products_recipe_id_foreign` FOREIGN KEY (`recipe_id`) REFERENCES `recipes` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `products_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `product_categories`
--
ALTER TABLE `product_categories`
  ADD CONSTRAINT `product_categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `product_categories` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `product_categories_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `product_modifier_groups`
--
ALTER TABLE `product_modifier_groups`
  ADD CONSTRAINT `product_modifier_groups_modifier_group_id_foreign` FOREIGN KEY (`modifier_group_id`) REFERENCES `modifier_groups` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `product_modifier_groups_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `product_outlets`
--
ALTER TABLE `product_outlets`
  ADD CONSTRAINT `product_outlets_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `product_outlets_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `product_variants`
--
ALTER TABLE `product_variants`
  ADD CONSTRAINT `product_variants_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `product_variants_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `product_variants_recipe_id_foreign` FOREIGN KEY (`recipe_id`) REFERENCES `recipes` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `product_variant_groups`
--
ALTER TABLE `product_variant_groups`
  ADD CONSTRAINT `product_variant_groups_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `product_variant_groups_variant_group_id_foreign` FOREIGN KEY (`variant_group_id`) REFERENCES `variant_groups` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `purchase_orders`
--
ALTER TABLE `purchase_orders`
  ADD CONSTRAINT `purchase_orders_approved_by_foreign` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `purchase_orders_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `purchase_orders_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `purchase_orders_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `suppliers` (`id`),
  ADD CONSTRAINT `purchase_orders_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `purchase_order_items`
--
ALTER TABLE `purchase_order_items`
  ADD CONSTRAINT `purchase_order_items_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`),
  ADD CONSTRAINT `purchase_order_items_purchase_order_id_foreign` FOREIGN KEY (`purchase_order_id`) REFERENCES `purchase_orders` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `purchase_order_items_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`);

--
-- Constraints for table `qr_orders`
--
ALTER TABLE `qr_orders`
  ADD CONSTRAINT `qr_orders_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `qr_orders_table_id_foreign` FOREIGN KEY (`table_id`) REFERENCES `tables` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `qr_orders_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `qr_orders_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `qr_order_items`
--
ALTER TABLE `qr_order_items`
  ADD CONSTRAINT `qr_order_items_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `qr_order_items_product_variant_id_foreign` FOREIGN KEY (`product_variant_id`) REFERENCES `product_variants` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `qr_order_items_qr_order_id_foreign` FOREIGN KEY (`qr_order_id`) REFERENCES `qr_orders` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `recipes`
--
ALTER TABLE `recipes`
  ADD CONSTRAINT `recipes_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `recipes_yield_unit_id_foreign` FOREIGN KEY (`yield_unit_id`) REFERENCES `units` (`id`);

--
-- Constraints for table `recipe_items`
--
ALTER TABLE `recipe_items`
  ADD CONSTRAINT `recipe_items_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `recipe_items_recipe_id_foreign` FOREIGN KEY (`recipe_id`) REFERENCES `recipes` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `recipe_items_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`);

--
-- Constraints for table `roles`
--
ALTER TABLE `roles`
  ADD CONSTRAINT `roles_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `role_permissions`
--
ALTER TABLE `role_permissions`
  ADD CONSTRAINT `role_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `role_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_adjustments`
--
ALTER TABLE `stock_adjustments`
  ADD CONSTRAINT `stock_adjustments_approved_by_foreign` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `stock_adjustments_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stock_adjustments_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_adjustments_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_adjustment_items`
--
ALTER TABLE `stock_adjustment_items`
  ADD CONSTRAINT `stock_adjustment_items_batch_id_foreign` FOREIGN KEY (`batch_id`) REFERENCES `stock_batches` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `stock_adjustment_items_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`),
  ADD CONSTRAINT `stock_adjustment_items_stock_adjustment_id_foreign` FOREIGN KEY (`stock_adjustment_id`) REFERENCES `stock_adjustments` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_batches`
--
ALTER TABLE `stock_batches`
  ADD CONSTRAINT `stock_batches_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_batches_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_batches_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_batch_movements`
--
ALTER TABLE `stock_batch_movements`
  ADD CONSTRAINT `stock_batch_movements_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_batch_movements_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_batch_movements_stock_batch_id_foreign` FOREIGN KEY (`stock_batch_id`) REFERENCES `stock_batches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_batch_movements_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_batch_movements_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `stock_movements`
--
ALTER TABLE `stock_movements`
  ADD CONSTRAINT `stock_movements_batch_id_foreign` FOREIGN KEY (`batch_id`) REFERENCES `stock_batches` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `stock_movements_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `stock_movements_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_movements_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_transfers`
--
ALTER TABLE `stock_transfers`
  ADD CONSTRAINT `stock_transfers_approved_by_foreign` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `stock_transfers_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stock_transfers_from_outlet_id_foreign` FOREIGN KEY (`from_outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_transfers_received_by_foreign` FOREIGN KEY (`received_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `stock_transfers_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_transfers_to_outlet_id_foreign` FOREIGN KEY (`to_outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_transfer_items`
--
ALTER TABLE `stock_transfer_items`
  ADD CONSTRAINT `stock_transfer_items_batch_id_foreign` FOREIGN KEY (`batch_id`) REFERENCES `stock_batches` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `stock_transfer_items_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`),
  ADD CONSTRAINT `stock_transfer_items_stock_transfer_id_foreign` FOREIGN KEY (`stock_transfer_id`) REFERENCES `stock_transfers` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_transfer_items_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`);

--
-- Constraints for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD CONSTRAINT `subscriptions_subscription_plan_id_foreign` FOREIGN KEY (`subscription_plan_id`) REFERENCES `subscription_plans` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `subscriptions_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `subscription_invoices`
--
ALTER TABLE `subscription_invoices`
  ADD CONSTRAINT `subscription_invoices_subscription_id_foreign` FOREIGN KEY (`subscription_id`) REFERENCES `subscriptions` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `subscription_invoices_subscription_plan_id_foreign` FOREIGN KEY (`subscription_plan_id`) REFERENCES `subscription_plans` (`id`),
  ADD CONSTRAINT `subscription_invoices_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `suppliers`
--
ALTER TABLE `suppliers`
  ADD CONSTRAINT `suppliers_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `supplier_items`
--
ALTER TABLE `supplier_items`
  ADD CONSTRAINT `supplier_items_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `supplier_items_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `suppliers` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `supplier_items_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`);

--
-- Constraints for table `tables`
--
ALTER TABLE `tables`
  ADD CONSTRAINT `tables_floor_id_foreign` FOREIGN KEY (`floor_id`) REFERENCES `floors` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `tables_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `tables_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `table_sessions`
--
ALTER TABLE `table_sessions`
  ADD CONSTRAINT `table_sessions_closed_by_foreign` FOREIGN KEY (`closed_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `table_sessions_opened_by_foreign` FOREIGN KEY (`opened_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `table_sessions_table_id_foreign` FOREIGN KEY (`table_id`) REFERENCES `tables` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `table_sessions_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `transactions`
--
ALTER TABLE `transactions`
  ADD CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `transactions_original_transaction_id_foreign` FOREIGN KEY (`original_transaction_id`) REFERENCES `transactions` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `transactions_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`),
  ADD CONSTRAINT `transactions_pos_session_id_foreign` FOREIGN KEY (`pos_session_id`) REFERENCES `pos_sessions` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `transactions_table_id_foreign` FOREIGN KEY (`table_id`) REFERENCES `tables` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `transactions_table_session_id_foreign` FOREIGN KEY (`table_session_id`) REFERENCES `table_sessions` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `transactions_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transactions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `transaction_discounts`
--
ALTER TABLE `transaction_discounts`
  ADD CONSTRAINT `transaction_discounts_discount_id_foreign` FOREIGN KEY (`discount_id`) REFERENCES `discounts` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `transaction_discounts_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transaction_discounts_transaction_item_id_foreign` FOREIGN KEY (`transaction_item_id`) REFERENCES `transaction_items` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `transaction_items`
--
ALTER TABLE `transaction_items`
  ADD CONSTRAINT `transaction_items_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `transaction_items_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `transaction_items_product_variant_id_foreign` FOREIGN KEY (`product_variant_id`) REFERENCES `product_variants` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `transaction_items_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `transaction_payments`
--
ALTER TABLE `transaction_payments`
  ADD CONSTRAINT `transaction_payments_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`),
  ADD CONSTRAINT `transaction_payments_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `units`
--
ALTER TABLE `units`
  ADD CONSTRAINT `units_base_unit_id_foreign` FOREIGN KEY (`base_unit_id`) REFERENCES `units` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `units_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `users_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `user_outlets`
--
ALTER TABLE `user_outlets`
  ADD CONSTRAINT `user_outlets_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `user_outlets_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `user_pins`
--
ALTER TABLE `user_pins`
  ADD CONSTRAINT `user_pins_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `user_roles`
--
ALTER TABLE `user_roles`
  ADD CONSTRAINT `user_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `user_roles_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `variant_groups`
--
ALTER TABLE `variant_groups`
  ADD CONSTRAINT `variant_groups_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `variant_options`
--
ALTER TABLE `variant_options`
  ADD CONSTRAINT `variant_options_variant_group_id_foreign` FOREIGN KEY (`variant_group_id`) REFERENCES `variant_groups` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `waste_logs`
--
ALTER TABLE `waste_logs`
  ADD CONSTRAINT `waste_logs_batch_id_foreign` FOREIGN KEY (`batch_id`) REFERENCES `stock_batches` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `waste_logs_inventory_item_id_foreign` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory_items` (`id`),
  ADD CONSTRAINT `waste_logs_logged_by_foreign` FOREIGN KEY (`logged_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `waste_logs_outlet_id_foreign` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `waste_logs_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `waste_logs_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`);
COMMIT;

