-- Host: db-master-4.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=25422;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$7K244JwaM9b3oLuFobn7I8sUH/ToyNmmBxrpScfFZy24ClVfy9zjF','user','ak_eb21eaf9976cabf5','2023-01-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$dvEjPmXX9uxsQvvFJnMFWYQH5LGLLMiXajwkyaf1c6dX1A3l4E.jb','admin','ak_d26f4fdc0843b591','2023-11-14 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$7HzjYN8yNyIbxV4ZkPJGS5LFTHEo1uCTdKFtGlcp/rJnl7RUaPl/6','user','ak_eff534b7833af877','2023-02-23 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$UJwW9GZgW3t7xMk62o8gPu1kyViJfN.MEHJWoOx5t1jJiE6q/hnJ6','user','ak_d92ad55818af561a','2023-08-13 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$R82Qw2ogApuonysmbVb5O9g62yV9QE5cKtI/JtajQMQgxoui1D4z4','admin','ak_5a9fc6f38a8f3278','2023-03-15 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$YNQMR8lKzclElNaRPu5JJK03LBDFqGVrUa9t8Tg1FG3FASUlCYvsD','admin','ak_87e9ed0f8febf119','2023-12-02 10:01:00',NULL);

