-- Host: db-master-6.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$L82.JuciVxjO0zX8BDgbEhViSkkirqouqZKfgAd7DuAfyWJWkChli','user','ak_d69401d776e5b3f1','2023-10-10 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$EK7w2UyNE05lJB7qs5KjUwzi8m23Q.ONrPCSQM8Sn7nFHHS6awEkJ','admin','ak_92546f7e93e0ad6d','2023-03-23 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$J1AfV3xI1FczmltKwrXYy1EfGCiZs9Ru.A8He1G6U7m5wyoMt35Qa','admin','ak_b6c37cb8123db3b7','2023-07-15 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$EdsVk6ojFMzZ/JkNfFTWp632tS5a5ofcqvG1QRhgwohpLnZaqRK3o','user','ak_3a04f961d15b88cb','2023-05-23 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$sXU7xQXCIXjmgZjtJ9jFYIHawkH52GI7/b.6F/m8/hIDyNw3MQppO','user','ak_91d96168b80a396f','2023-12-10 10:04:00',NULL);

