-- Host: db-master-9.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$6W8SGatdvVezpHzzwOhtJJaWqM.XMsLTcflfUoV4cAdN4/WDWZk4G','user','ak_065738c815946311','2023-03-05 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$QkPfnHwYzxodGkT2GWWDB3BeWNlLQ7d43So33hzOUW/KGd3DzzfUQ','user','ak_18bed828d5cbb0f5','2023-12-08 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$qb2DwM0CHa8dqfD6XjXM3Xx9ijDCD97k6Ak1K3C9rlHSsoG0grXBw','user','ak_0eae0b028c10038f','2023-05-11 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$gFgzQQuW2MgkhOPwQLmzZmNBMy.8F7sKhrNd4p4qtdCAztm2PvE9k','admin','ak_5c9cafd56a13dc77','2023-02-21 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$kLZEb78FJBc.MgdVo/RnrbDTTylMOwqYyrXQ7YBjw0OwaFfVZVgVp','user','ak_e54eda0e6602615a','2023-09-14 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$Vz.34JSIvNPjlyFaNwV4seW/OiEKsF2Xhv7oz4GbT3G3u/pz4A.2w','user','ak_3a016cef8315b66a','2023-10-16 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@internal.io','$2b$12$TwqtKCX108ujPopJZ0vobKJ8NNoEpBbD9/d33IYfLLjX2ZykIQzGz','user','ak_910701fcab54eacd','2023-03-09 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=1552;

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


