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


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$/uVp59zz/SXbJLbUv8UHn4QCl2oxCc0g3rOnquAP4q45ZdJq.ZZXl','admin','ak_1a2733e4457ec435','2023-06-21 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$a6DpD87CfSwJeLAFsVW5TUJcJHTL60VlMz6Rr024dR3BkqzSPhZuD','user','ak_a42f2a97b019ce47','2023-03-01 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$sbIQxjMG7HYtO8cYSKYAWbMR4yC5SZoHSa0UgiyGrvytZqq.j972M','admin','ak_ed10bc0bb0bd8915','2023-05-07 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$pE4v79.GRnSCw7cafkkr/ujvhr21/MgVdyPAurKZhsUrhbhtdo4u2','admin','ak_685b1dfa6dd7c201','2023-01-23 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$JHqC1MeHEizFgzkvxhX02sOzsPtrSfnyZTigklllgOu1MHLTUZT3z','admin','ak_970d686ee0d11c8d','2023-04-14 10:16:00',NULL);

