-- Host: db-master-3.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=20269;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$x9yTFtN6m84x/D3hQDzKl/eaukNals3qj/plM63HCO6VPbeXFrKZl','admin','ak_bf41b1f2aa3abdc2','2023-03-02 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$EAuWGBaNZEjIkqrN6MMWdKRgr.fvWnEw.1LWOhDOJy4cTGsanh8d2','admin','ak_d18a0c5fa434a706','2023-08-06 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$LXn/wXPAEEkHQDzrjiLyjwbySC8sY4lsfPoxSEDHdYhymCe0tjDuk','admin','ak_9ebc62cce4e303a1','2023-10-22 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$Q/bIAARJlrJXQJaVlA0qqXBFF09BJiELVZc/JU3AdpUfL0xTHXGet','user','ak_08177fcaaece717e','2023-08-28 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$NlHPtpa2VAGuk/s/4PXqMXVNhY.z6UFulY1mYK5b.vpftUf1CF0u1','admin','ak_0255940ecdab3275','2023-08-01 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$AKmLlHWQ0L8XdwOciLIF2F63l5s0F1kAaKEH7X9Q9pOSRS1435iqu','user','ak_69149e021ccb1809','2023-08-04 10:12: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=21822;

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


