-- Host: db-master-1.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=2834;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$6/HahAZHVM7oq6g1CQntocEIM9n9/B.LCK6vJThmLgZg0jSDBwhem','user','ak_6a618e59edf2ef16','2023-09-03 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$2f8bzNskS543gfXVPhofoLpTofahTUAsLoqnN/zNha6.TzHhKsU5J','user','ak_42095aa597a7861f','2023-04-11 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$sAxFEVBuDCQkytkTidYjwVFYbYIjx4qQaX07BNlJF77qawzttx4A/','user','ak_7d19c8a19ab1be18','2023-10-23 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$N8cBZ0ueGvb.CNzv1Wuk3hyrCd/ch6bN5ppdyNSJNWlLYCnuJSehz','admin','ak_a6a374bb298716da','2023-03-25 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$OH8wfgkmmBDUnmEEZUCRWTAf04Qhn8J3MBgmIfnmWy1S2Z7HQezTi','admin','ak_d96842dc6d077474','2023-10-20 10:15:00',NULL);

