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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$E6kTqjnWotdySytGpn6GQSLPSkGbeiiGLrJn8XdTXHMP9Wm3XCcfQ','user','ak_1d4fc1befcb6b4f7','2023-08-21 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$O4D8Z/Os96UApbYvtg1RgIptt8TjPj8cdEi5nGprZKNRqK0.0eLfH','user','ak_13171a179831529e','2023-05-05 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$5t2b8ZOG2F7lp3uRcXGQ4hl1ApoRT0X5kD8SD1WQvwXL7D.GpGqtz','admin','ak_b935ce2c250815e4','2023-06-23 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$Lf1vkFc/ib.tX9/fg6A4MZ7Jwavv8rD3wl22Cxm10Z5XwHXvT7950','user','ak_8a3fa519388596ba','2023-04-09 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$s0HBvsl16vq6yhdwzAkIdlb9gziS7Zo6glUD/Nc1KENm6hZiKP3sn','user','ak_032877b16856c5bb','2023-06-21 10:01:00',NULL);

