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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$keBeCNyGmdf8A0RiiDDfhNXtLudNhxZukFPM3eHsogI446CnIBemB','user','ak_f63da7028b191201','2023-06-28 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$xW9N95K3I0hF8t0G9X9FdBGHqxscSwRrsCOQa0//1pVtFjJbUsxjZ','user','ak_2a93bcf0d9cbcfdd','2023-08-24 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$CFJF0k8EEVKpJa1MQFafTocFKNuH5pmTN50KxV81m.F7SHLaLZx6.','user','ak_0b71fff7b30e89ee','2023-07-14 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$C4RzfFi2e2mXg/acTUfKvyNILK7b/7aNs5HhKHkFafqTscPH2chm.','user','ak_4a58e95862e747d3','2023-08-20 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$O89.BsTolCQh6mZxNT50lsFlS59dUFyHUEOcFT369CAsxISY38UDa','user','ak_bcd923085ac42fbc','2023-08-07 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$IxkrMo39gsaCdBSymxT/wmvSv4rh3fZHwmH0yAQ.lfPTjXwXAEvAP','admin','ak_4b20bbcb00df6c13','2023-11-20 10:12:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@company.com','$2b$12$OmH2EL2C64x81Iof0/XbZpO86LnHgrMmjfolZFJV8zbnXE.p1.qUQ','user','ak_7e1cce2c23f093df','2023-01-25 10:20:00',NULL);

