-- Host: db-master-2.internal    Database: webapp_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=16442;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$fZez3N7BjD/FAiFqidylu0iPWUZcmImbyhBpkjQJYr255CtrOv8rR','admin','ak_dbfbd50ea47ecbc3','2023-12-10 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$GBnoGg0mPFPILcCFLh4gUSxjAwXKjASaZmktPLooAlhMhL1YPqh/T','user','ak_77c72a5b3129e4c1','2023-05-18 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$crO8Kyb5QWCqvCuPCq3JT/0vlftBmrLr5zFa0VOO094mlgRm.DUtn','user','ak_0e797d24dbe8b2f1','2023-09-07 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$ATOmOlIKJKnh4V67SJTUqDHV5yse1aR71Jit4bO1y1AWqy.u6VsSn','user','ak_7b120d2f870b377a','2023-09-20 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$KkWt1gUkJsevC/T146PZrRafvz/vvqY/WkMStmJOADkXRJx0iA1jI','user','ak_3a9cfe9489c818a2','2023-01-02 10:22:00',NULL);

