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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$2v4cYihY1AMnnHnE1NvpM0LFBFooDRweu8cxwlkwRc/TnrLq8XCyC','admin','ak_192f2017a41aa6b7','2023-09-25 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$9yXe800QaMCJAVsTHpqxo81QgF7afF6TwrrZOZrNqiVtqJtUJF7Cw','user','ak_e78d3148439ea610','2023-05-07 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$mAZd3LeulfcakSRtri7kcYSLqsWp5pfSXt9YtjhTx84ur/ZWGGAJt','admin','ak_f9f3e25260f561a6','2023-01-05 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$zj3PTqMO5Ipq/yI1Wj26CYFQgvTjIbpoSvCXera0IHui3yaCuNq1t','user','ak_2da38b67815b3ae2','2023-12-26 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$6pCILZRJELh5H1ndg4y3hZl0Ro7pGR7Osl5xIPlfA15hcfpLCDusF','user','ak_0394c3674ecac139','2023-05-13 10:13: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=49272;

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


