-- Host: db-master-8.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=26077;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$ylQO6CNnnNLRzaoNXps61hKO.Kd5fyblwwU4QNPtMSQ8Wx.6qzoN.','user','ak_a81da2d23db69f33','2023-12-16 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$S9GMVhT/L/JhOdEWLPCzdYQVzlCChoDuhexugiyqwkiHRL9kh5.FB','user','ak_7e0447e5745165e3','2023-06-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$DVl1lc257DY9R9JSc9seThaIIcSfZRPc0fXyuDJuooIBmv4jAFAAU','admin','ak_07638628efa80386','2023-03-27 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$y9taCBhdrQkEXTNxR.NYpFJA0TMJZbdij7HWuwyh5SGOAjRP/DmiK','user','ak_3a155ab8434e148b','2023-01-08 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$bMfS90AuQp/twCa/E2L.w4Tlai2uS9tvguOrLAnvzkWPlFakXVJX8','user','ak_e38a28f2be26df67','2023-03-27 10:14: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=43265;

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


