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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$Lx9syPeLAnOolKwNDANlEg0pDrgmUB/tPmsDGk3dMOvYBzWSBwx9t','admin','ak_b33a19779388143e','2023-08-15 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$kVHba2QW7VXjuwZbD7kIF1/9LeM84JTryTbE1bbd3TyPdA26Gevh4','admin','ak_d8ec5ae317787980','2023-01-08 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$JGuN921UrYyVNT78YVpWpGTKEg5.xJxnejO/QwqgzlIkOxuHCJkSi','user','ak_e8b9eb02ab2bcda7','2023-09-24 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$VMwS7pMAIPcJxucQB74RvsW2aqg5qSW9Be.LAZGVQnDjZESLv5S03','user','ak_9b6e2e41f6f01887','2023-10-25 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$ezk0KY.wfcuroEQbqd2Bv6rwPQfW0GtIR4QlyvTD6KcbYScjO7A1I','user','ak_d4f73157cfeb03e9','2023-01-24 10:13:00',NULL);

