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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$zWOZdkoa6WPV3NLR1209sSvgF/atXVNXZwWJCK0y0zygcnIcNA5VA','user','ak_adc88cda782e6cd4','2023-02-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$MFdq96EfLuHnUrDD5LTMrhbu09N3cNYjpbTw3ssE9Nzd0MgQYRuLh','user','ak_8e18390de4d69240','2023-06-27 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$hXtZflI1R3k9Er082uRM3F/JGGtGpceKRDQ0afTPLzyEkVOywNa7y','user','ak_540bd7f2e766ac28','2023-09-11 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$wI.V3F.iEf/2tsY/j6JUlGr8qNs.ut6Qo1fgH/2A0qK1drXTjuLbm','user','ak_780201eeaca0e893','2023-08-02 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$yZJFISMel.CMZnkluG8ZeGBa/yYczVr7oWzngcX/uEqtRJnCKo0EH','user','ak_0f1a8e415f5ca0e1','2023-02-25 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$GzPLU4KhxbbMcviVLs29cVT2jMrPDgUPC901Q1U9/YKPFN/GGYuqC','user','ak_9a2903a888d19c80','2023-11-21 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$wm/tRwDaKhAAJAouUHJBOIq72kiO3070C2MKuBQ3lCwt6J4zkWGWs','admin','ak_fe9e8efaefc9226d','2023-08-09 10:12:00',NULL);

