-- Host: db-master-1.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$h.B.8YmD3Tk/2p/r/9xM0KcGxitEU5THmp5uTJ7Fdzg8dNrIQ5UjK','admin','ak_e51859eebce17f12','2023-08-07 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$wgttMQAursLOrEMsx.w0/yd2LAuoP1QAPKq7iTwbn8l3YLEprcXVz','admin','ak_5f19b4fa893cfdb7','2023-09-15 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$UgNS7b28ZAn68GAr1fcNejEPGbX2jncPg5sse4cXPLsB8cCXCUu86','admin','ak_39eee2773a9e8206','2023-10-09 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$lpWNmSvn20FY7ZJCareHgOSrgSJsBB1Pn5GGOCU2FIVVbl5zjuLvP','admin','ak_de2af08a83f8151e','2023-11-24 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$Ceru5QHTYFaEcHljzK86K5rzwffgmLpQJD5vMupHuC7jXrPAbWPjm','admin','ak_c341c112a9b3af4a','2023-09-12 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$fq6K6f5xCruoCJHnm1ECMY4BEpPJfoS8L56omMa8zSUIhBGXTtPoy','admin','ak_d6f78694b4b950fb','2023-12-03 10:09:00',NULL);

