-- Host: db-master-0.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$Lqfctq6ejgYtxw4shU28h7tolWAIvbT2P2ZosXGbxeKVrs2QLysaP','admin','ak_859317d885cce6b0','2023-11-01 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$P1WDMf6YTKeZuiSfun7bbXIr8x3knAl5VMdMWcej1wlS5Xptm8Ynm','user','ak_d7f3f5c59da5c841','2023-10-12 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$K71IvFWR2T8cXln37W6y0460X9KjKq16HplWhsBMJEj7dc13at/j4','user','ak_e1a9ecc59cabfcc9','2023-04-11 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$bbkhB4DmEzorokLBr/4nKNHUpCBUSBl09IoCY.6amnE4MtVw5u6jp','user','ak_cfad222f1cfd976a','2023-06-10 10:19:00',NULL);

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

--
-- Dumping data for table `orders`
--


