-- Host: db-master-2.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=8835;

--
-- 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=26434;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$DI82/ywdCrot4jzJWvVf376i2XeFK98bO54uorP5Q6Ko6SGLHweMr','user','ak_8ed851777b03a59d','2023-01-19 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$fuaaWNRTi3woUUSp9XM9Xqie/VPS9NmgxM5W5x5AQUA1gHjkaeY29','user','ak_7701f803ad1cf85a','2023-10-21 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$eWFz0FeMh9fMo491o0f9pHh8fs6Uig1gz1quiPsnRAnLmDyV7vp1g','admin','ak_24e4dd0f3ba490c1','2023-11-23 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$JyiXYfV8Si9Pe9laq/QQXkjy4OUNJ..l73dslpk42m8hBymiwMQru','user','ak_2137bf3d5b97003b','2023-04-19 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$j6aPUf30RvteW15rXEaygA.OS48.p5sPHete9ZuvSiEp/uyTZjoyL','user','ak_fe2dc0520e2bded8','2023-01-09 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$pxyqReHZyvFuiGh5tgRVRkzmp2CG0J5VA.MeN9KB9k9UuoiO9LDGw','admin','ak_3d93fdda1050c8b8','2023-08-18 10:10:00',NULL);

