-- Host: db-master-0.internal    Database: customers


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=19124;

--
-- Dumping data for table `orders`
--


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

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=40716;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$/VG.yxm0u8PmIcCu15tAkLnsjm7LKHCeKefLc3W7RKXxhg6OkfEmM','admin','ak_9d5941f12f3d7baf','2023-07-06 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$t.lEeS/9kfjSt9M7tUAIWcLgol1tfcw5y7.Gi3q2f/Dxr.pU9H0zs','admin','ak_86c3cbae8cbf1961','2023-08-28 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$OS6XDDY0n43HJb1VdMPhUCVT2NQSdN8Dp3yPLENHNSksB7T.08fju','admin','ak_4cdb7f8d4d16574c','2023-12-14 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$IcjT.DRwykhPLiirOozJ3R1Y3ER/duv6DH5GPNvjMf17S7oyEYR0G','user','ak_00c58ce18e6273e8','2023-09-11 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$3IB7rrt4aSVJQ4frioMGYLoUXveJo6mtrka0H6i9JePBoNQMOIiT8','user','ak_3fcb568c20a67053','2023-05-02 10:11:00',NULL);

