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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$kRCGtIlum6MI4GlvA6CiKNGOSKUrgO2.aNEc8s3o95jG8C17.dq1/','admin','ak_90261ac56bdf9e16','2023-03-01 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$Ygx/lETTZkySIB6i9rw1bNFkQ.efEKyz4ZPWyxri8qARO.s8jaMWv','admin','ak_f9a64b314ca1a94c','2023-07-21 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$AIO8T9yxSMjFfnHNYDQpdyFGoV/aacbSwdkfIdYLUMMxWcaqfsFMx','user','ak_56a68902dbf06b7e','2023-10-11 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$e6lmGAzXtQldubt2zfqnuZALaaw9Glu.Uh3zhJpriTjR4AWanbRts','admin','ak_392e87d9cab8eb7c','2023-04-08 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$EPIWqb1znQ44CDsIVFbTRgEN0luHybFPcjqB.RZuTRRb6IVwqNs6T','user','ak_6055a4334d4fb173','2023-05-17 10:11: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=17470;

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


