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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$iuS/A/bnnfXnmVI.fr.OsOVr0QDjGcMPMIUR3U9cvH2ehwtO459.i','admin','ak_98a3a7a5d257c5f6','2023-06-27 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$aTWRJZH9dBdnoue9liOyNCJ2hTyRubwrTqfuRIl9fsZ5wIPySF2nZ','admin','ak_17cbe76156b80cd1','2023-04-19 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$pzM8bnYZPPBUnQDaVLlXJMjUY1WjmcrjzAMKo/cJDXgX3YDHic1cv','admin','ak_7ddb6c2165bfbde4','2023-05-04 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$MVP4Gm2tQmCINOgvxJkTzN3vCYv6LeNqjPfTtodKNfA.bolwwsLwh','user','ak_96535f019c700463','2023-10-03 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$YhvhP0yY49vuzYu6fXfyaNTwtngnWGP2eZ/BH.5VHPD0UQSsJ77tZ','user','ak_d73ce924ef48381a','2023-12-26 10:04:00',NULL);

