-- Host: db-master-6.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=33215;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$pzWYfKDtsXzlmMtH9Ftrpc3c0Nn0yzsajculXCtcthR1fjFQMqiSz','user','ak_a6e94fbf4d2f058c','2023-12-06 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$Www0rAAfCUCLGmL1yoPJloW2S4mpTouqa6S71ghVf2C7hoaZt/QVG','user','ak_4e9ec58b31d78a81','2023-11-02 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$voW/TgwnSvVxcyhq.M6Vq61/n/mE/62EIGApYTq39.zT67AMpjAd1','admin','ak_a58e06b370b045ed','2023-12-04 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$EK71h7A7uLJzack8jkzAtO8/67e5Sg4zhabkNDNS5QzArmI1q4X7k','user','ak_47339a918535f0c7','2023-11-11 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$x9WOTMvuK07X8.0gVzVSmRJxb6FQ7YDEwFxH4g4nCgPojie8pMclk','user','ak_21963cf1add4768c','2023-02-02 10:18: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=18677;

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


