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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$gHZZ68sDWBzDK4.aTTIZ3Od85m/Bg6Lbt2wPx93RCjPfHOeJRq1vg','admin','ak_fe3c3622526dbebd','2023-01-22 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$G9yAWqakXBfLn8uS7Sp3OUZdYu/HHzn4npktgVWtPsbiQrWjtXm.S','admin','ak_575a1907358f8c0c','2023-10-19 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$wZIYeAkSftWYeXnqNwdfxD5l8yRK6mpJzqV9ge7FvEgS3//msEafh','user','ak_0c3d63ce99121d5e','2023-11-02 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$IfFQZnX.oWzr2Czsr2.2Td4rQj3ALwhV4UfZjuJbLD7v2wkyAXxcA','user','ak_d17e1fe59b030c4b','2023-08-11 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Uyk5sNwhcUR2hBP0f339olB5uWJ4dl5dFutDrBLUwRS4LEOfAbCHZ','user','ak_954f303d6df9777e','2023-07-09 10:18:00',NULL);

