-- Host: db-master-9.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$uNRoPpEeRKpU5uLAZSDobDHxc6DtpVeVgpRwvZHBSM.kOkTcZ123H','user','ak_1ede2839c3a87329','2023-04-04 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$heI1jDoMCCQa9.ZLQ3mA2CJ62N9OI6u2WCqxZujxBiFgt2AzbJRgN','admin','ak_f616a52587722003','2023-11-05 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$MlNhHb..WOUtjXjt76ufGIFqfuA8ltJdMPZsJ6Kjo4x3ggOwlbbZt','user','ak_523bbe32376646cb','2023-06-07 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$RpWZ0KfGcayi9eVYdpAzYbcekc06Z4ezk94gqrrU1O3PoRLkZZXfq','user','ak_303482a7f9c71dc3','2023-05-03 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$qcTbL7y2BUghd7Kf92APBS43/Sm3EfRP4H1LL8tYdbRP90Gc36MGZ','admin','ak_4ac58f417a004b33','2023-01-14 10:09: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=22946;

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


