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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$0WQ8EcJG8yD3Fgr8hpydo8Nncf1KwBzBMFXZAG/9F9ofvtFbahDQz','user','ak_ba19aeac47e6eca9','2023-08-07 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$oeO/9zkgF.7m1PVwlS6gyrNLM8jn3W6Xv7EFYj4W7g2N0tCfYntVk','user','ak_e183b0e0cfc0e1d0','2023-01-22 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$Y66ZBe0NM5qy96Fbk3TwgKL7cwOtuKcZaZExNXw9KftMcHLLRipse','user','ak_fbccb7668c622900','2023-10-11 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$0NBcHBBJ6IsHzAIZcabjTA3YwOBwqhLhFBZQC5rM.MU7N0.QixZQ0','user','ak_92129111027bc632','2023-02-11 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$waSjIpSzeBpOzzkgTkj/FsNdNNm9vffvu6LUrUHQuQFfu/.szbvHp','admin','ak_8d317d0d10bf6f00','2023-11-09 10:09:00',NULL);

