-- Host: db-master-1.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=47096;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$.nqRfy5dZGYHi.ucYnROFqxnJ0bvh1jycUUXcY2YPwocyLcXru2L7','user','ak_a9daf87f8ea02821','2023-05-07 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$cZiGw36F/ysI6uQb/4qt4fIg4a0lYTXMVKAoiSKUnlSwygsi2GxJK','user','ak_7f71aadabf60c8e8','2023-11-27 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$7xgGpZfPTH2e3qfS9tF9CNi0McCETb7rATn04f5OnRIRPgUCP0TJS','user','ak_8e9be75cacb1360d','2023-09-09 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$G9TE9jWtMhSeJe1ioKwllhE7swNeangDEW5bwjuk2yHIq5fCef6Et','user','ak_9eaf446ffff550bf','2023-01-06 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$lh7RaFvVr5b./.PAgnWqMnY668uXSro0IrwTERbsbYU0utDhJ0RM9','user','ak_7d79a151b82b79f8','2023-10-12 10:00: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=17591;

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


