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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$mliblAcsO/vpG.M0R/0JQIXEDLIi5jzNwGhXjTP9IRmmXOf2kO8/8','admin','ak_1d3cc1636c374272','2023-09-13 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$WRzlUActu5QF5TQx0lEeBXa7LARvM5uyVU3Ja0S40oFYoLZsu5u8y','user','ak_0e80f64b668a1d6a','2023-02-14 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$Bt5HmZUQtnRB25p0ZQGONRwuh6Ok/6Ug.JWRcS4hiA8O2tD83CXti','user','ak_573d736cfbf4ba6a','2023-10-10 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$XqgDS/sotQ2Q.wx99FMIz7aZdTQqGJ.FA.55eYs35P2Orc9ibfZn.','user','ak_a2b2d6dbdea9d537','2023-12-19 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$fkjAemtK2wMgEp9YGtzhpsWOBk2.t7Eoq/e0j9l7ux7cUg9OYsgGS','user','ak_6f57857bb47d771d','2023-11-04 10:18:00',NULL);

