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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$hlvX8iQJV4TMGMyd.d7MZP0p3Tz9tINsnYf8Lj5elC0iNCM78yFLz','user','ak_88545ff7da9df63f','2023-04-23 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$h6lGq1t4NTGo5m53iuhowVvx1qTUP7j5zdrBAH3yuDSOFSgRkejs4','user','ak_8eef58591ff6eb52','2023-04-03 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$73lbSxQIMbh/Pl8cC9w2nQ2tjn9qfgZ3YEcOAooDf/lT.E/CZugSj','user','ak_e62dc3eb5bc120c6','2023-07-18 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$qPoAsRqyzFYcJP/ktxUa.KkPDoUEr/svDKt2XHaVIYWsKZBcR0gqe','user','ak_7ebd9336e2f082d9','2023-11-25 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$mqw/StTEF0WrXOMw/FfcUbSOr7GY2eSNTOLbW8A3rtxpVDPApAzRU','user','ak_596f5680eb0298d5','2023-10-10 10:04:00',NULL);

