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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$60/PJanNi2XnXN0NuLY6I1Z3DrS4ATBaL5l6vw51b0niHihev6SGv','user','ak_9c54d001a1fa9706','2023-07-19 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$k3RVk576C4YEYW8b86jQWj0KHiBkv8gzffBjEGQnTDJD6FtlqSR0L','user','ak_1afc3e148231a38e','2023-08-22 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$BTVKmoaLs53H.FPwfMEUoqDdsNs2Y6IlZ5VFoEnBYZuwETITJZRW6','user','ak_3b282244279d9da9','2023-11-24 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$7KFGTs7OT2PDsv1ZcEByt/IQJuJhNXAK8MduPt5Le9n9QEU/Eh7b6','user','ak_b5e0a5c7a5331588','2023-04-27 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$IztUHZVkqWjFfAqD7pFCJJkIAPfKGqy3l77QlIPXZLRalqskfrnXA','user','ak_376b43a5cd802ea5','2023-11-07 10:03:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=49451;

--
-- Dumping data for table `products`
--


