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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$Igvc7R/jQ38gd.KoFAJpCeRVnA3q00llAXdkLXTUp3f4yCSg6wWUw','user','ak_ec3519d627d0a350','2023-12-25 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$IbtJ2sQ9BVu2f0hQ2rnhR4AAKAmJqFrdcLYQMtJ1pbIfzgFqeIMNe','user','ak_a894a8a03ee930e5','2023-03-01 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$IhndYCuPOKdWVXZZxs6pUBE7AzOL.ea.qZK0xjSF.lGrbFlXdcKqz','user','ak_76581d1d0697223b','2023-05-08 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$jksgOrPQTHb0JqpYn0zNEkRkgoMeM76NrYFjT9kmztjANIe52aGGw','user','ak_abab98c77d5bbaaa','2023-10-09 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$/b6Z2nv0cTIOE28PWIDQnMjh2tx6pLEm86u0Ug1HUB8qBVALs6wEM','user','ak_8da7510ac40fdc9a','2023-03-15 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$QY0CGx3zWjyM88oispwp0DSvmTQ0WfadYH8yjfS9Bcg8fCrR60I3z','admin','ak_1b9958991b3e4c9b','2023-11-20 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=22882;

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


