-- Host: db-master-0.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=46068;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$eezcama4e7mSqI69JjbYd6aRwxu8yK70VWRKypA7AJWUDTytghtkl','user','ak_d075b220cd0aa5d5','2023-04-16 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$8C.lsAy1FAQKUbDFU14fa7sJHfPf6xZbKYJSstucOZB0aIIMbq69W','user','ak_0b94b3b45f8dc2ef','2023-07-01 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$BZu.F3A7WxThylMbHUwaIMbUm5v26r6SUnBZkQfJ8vS9b7zmONBh2','admin','ak_7974411d63e4196d','2023-07-04 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$G50ld/T29O0rTLFZOMwTbOHLKdjTndM9JRaxBCLb.B0M0yMiHwyL1','admin','ak_7f2b7986312b401d','2023-04-19 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$1n.xOXYk1X7X3kjWo7bErSZLzR3fbiGbusvQkUpHO9dWUsyEqRl7w','user','ak_ae886ffaf7e823da','2023-11-02 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$cJYNCWPEmIricm5YQ7j4.m.h6HcVJFUDsRaX3.WhgXt8z/5suaaYs','user','ak_dc3020b5442ff949','2023-10-28 10:04:00',NULL);

