-- Host: db-master-8.internal    Database: production_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=21808;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$Y6Nj/DZOij8IMe3375ZXwbI0J0ok7Ux47PDxRTL.F425ebOz3Zz5W','user','ak_068ad0bd7093ba19','2023-11-07 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$bfCVxIsHgUMvg9zKnspuiSev2ApnCRZXS/tmc.AiNUj5DsXPTXSnv','user','ak_d78c65e521a2f318','2023-06-05 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$7cZGH9PFykMjgvRStFxnWqd5X5JUhCWCJ8svKuC/f.0qfpIRF.Xte','user','ak_b1d2cd178e7a61ae','2023-11-18 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$EENYYnIPD7kpFZ5VTTDLDW0C2f3u4vETSShuUooHjWIqYRrnLRiYV','user','ak_19992e18e91f2826','2023-04-09 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$myJeeDDYZaehBSPIiDv/VPth7pNQE/ya3WXTGn/1m1/2vIBZ4gzcs','user','ak_36c7fe145999de95','2023-03-13 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$UKIWWg8UzVo/Vcq1zpAcbaNpIViZWxBHsOuiyn5hTgtazcZXJZ7c.','user','ak_02ecb6a14aa4771c','2023-07-15 10:10:00',NULL);

