-- Host: db-master-5.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=49944;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$FggrZpHgO3ck5jpi99TGSDYCV/MlUNsgTHJjkDSlGEb1dp5upMbn4','user','ak_5fc1096b843e07fe','2023-10-23 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$zWPqc8Yxsv4WVqf18KKpwBLd.B3lzfkryxNrsKPh/N.LrNCptNfaT','user','ak_17eb832907593521','2023-09-09 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$zTDjxZYBeaJ0F7gx85DG8.wc2I2KyEwQHV.4McPBJWvGdAKqvLZrP','admin','ak_c7126765f6ff98d7','2023-02-12 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$a2H72R1cETG/GxBjsusSo2ovtQ7ZAF6mqgiUB27ypVRfHVHdtdt5s','admin','ak_33de9d508c9d900d','2023-06-15 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$O9d7i.gvruX/m71G3PFXXMN/yKMKMUhpwjOQtc4z4RlMHsHun3hHP','user','ak_daa514fa4efc5a95','2023-03-23 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$Az9uWUYDNYipw7p5Qw29.HUyl3CCC1MEzfrGtUWYydUfuFalUipWg','user','ak_d5bde9edb03c8635','2023-01-26 10:19:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=13374;

--
-- Dumping data for table `audit_log`
--


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

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


