-- Host: db-master-0.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=23126;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$raeW0r4QEF2vsuLR8KJvFOiJTG8a4GRy6hdm2xcLrDr7pJvVcstN6','admin','ak_394a3d3cc10df08e','2023-07-09 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$igTXMsorfADzyBxpgTkdgvIq8Ei6PULln4/T9L/OAAz5vNeTyphmB','user','ak_f3972bafd4d4fc6c','2023-07-01 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$VPFzuayCzKfIZ/9yEKmSqUFdGgecCU52xQcr1k/AWmt2ocHCM9h8H','user','ak_55fb7ef595df4f58','2023-07-23 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$l7YqKMpwG/ii6qDsh9ISCPqWCmttETaMdsRWl/TwNSARXta74LKA0','user','ak_e9b0dc7362ec7e64','2023-08-13 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$JzWeUOW8gutouduLEHNdusgQmviINqXnvnbWKJIsiKdAU9zfXIfI6','user','ak_cdd3f0a0fd36183e','2023-11-04 10:17:00',NULL);

