-- Host: db-master-1.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=4002;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$uBS153WndH5cV/Jioyu1dMQu7.f/cTkaB8UlBpW4VLTtu1PVuG3XU','user','ak_79140c054468ecef','2023-12-12 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$OfQ5AZPfYsKezuFg42RzFc.S9YirfaRztOGePYU/qpCvSlDGrJVzE','admin','ak_5c66c41157829f24','2023-10-03 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$aGqdHiH1/kLLtMD.IIzJcJsHbdf2bZBaxPdGyUAEgqVN3ySUGXNV8','user','ak_2a71438a8ede5588','2023-09-27 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$DOY7.Tagxirhp3Ve0qMZwqAOYudYNqZrxDfKIetNgvfSfI/R1IkSV','user','ak_92e3991cb8218da8','2023-07-22 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$v1GiEttPVM9hVjgGrIa7GxEUe//qHYoQonZuqYvKyN.7qhHLhBXV8','user','ak_4f236b6d10feee38','2023-09-17 10:23: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=22850;

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


