-- Host: db-master-0.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=31899;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$7/PDfzwUNa.X7WO8k8q.N6wBHRjukjrGHwqXDCBXZ5bKIyBLEHXzA','user','ak_186f63ba5a0bff8b','2023-12-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$TkaQuAE7iWUAoxP1lxU/CxlPAuAiZXt4W.WAxayGrUYUhEILTIity','admin','ak_5a7a48bf0b3bc83c','2023-01-08 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$xskLN/WPZIdWez68V8DgYQnSpeR8SqaH6uEaLbhMv9zdrBGvLEm3c','user','ak_8e18df9516c4ed03','2023-07-23 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$8DB7b48qVDG/7S6iAlGhkYeROXp3q9.xlJTyGQTgmjiC84l/8NsNY','user','ak_7e537d8d873aa1b2','2023-10-18 10:16:00',NULL);

