-- Host: db-master-4.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=44841;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$DmkVItOFtdKbgPzdM89ccjC8mTKZr1AP6U2L5DNgO6VEvClC1UlHh','user','ak_fad5053289085d8c','2023-12-28 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$UZnPneA0KAvj4WNx2tkqtclkNobNYf9mpjc6tWszVJv5wfFmAykdG','admin','ak_f47ec7076771fa8b','2023-01-07 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$03YWjySjMvOMXTyC39lrl.ZdM11/Y2fM/GUJsbxWVxezj3LpAUCMZ','admin','ak_05057bd4a3805f4d','2023-06-21 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$99MGr2AOsZVViV9W5PhRW5Dv7Mmofj47rZYVk5PiRhOe7bQxlBJEx','admin','ak_6530aa534f97acff','2023-01-13 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$bVsUJivL8I3xyqipUVtBArhPEEoR5HKs7I7MQxVDQOmSJDMJ/SiuV','admin','ak_6752fe0ef47db139','2023-11-04 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$eadduIPZVdJTKgwNX6Y1sH4HpQvosC0CPojhJfaSQxOxikD7xgFH7','user','ak_6bb3eec0e88f37cf','2023-01-26 10:16: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=10211;

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


