-- Host: db-master-5.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$4xD6sdzTX0tsseanxQfksdQ5F9Hlj53eDjU/hyadRKV2/7a2z1x9i','user','ak_895b3bcbc28a71ac','2023-05-16 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$BkIxL/Z5QPao/mUfX8w8KUn71PK8LcIgyfX1TCPxVJOqlkO2pGysF','user','ak_b2f59a5f078e4026','2023-11-15 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$lw3fNOqC1O4Y4wRH7JH8wO8YtrxHFEP1miYJfTWcAt8wtP65du2wg','user','ak_e0477dbad761ecda','2023-11-20 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$JsRr8PmR4BNi5BX5lkMuNcSWaiS.3GjvJxCm7HYL5pw7CxmX5oMoC','admin','ak_ea31303665b87f23','2023-12-12 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$q9buGBo5RLZx7xlEj9XVW/.6cunNZZYYMJfQmenMUfFiX2T55eE71','admin','ak_53fce59bc4927b78','2023-12-26 10:02:00',NULL);

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

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


