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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=24946;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$YUR.2hF9R9BrWEp8Uk4m7pOZnKpK8vuva2fJsJ1C0Kz/0ABzqrVFw','user','ak_500b5eeb6723215e','2023-09-22 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$0moIRCeMr0PDBVlYjWJaTzJd2Nyntf91d2SNVk7dM4RyPDjKZdSaw','admin','ak_e6fee33dd81043bb','2023-04-12 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$PGEc2glFnqBoDbkzBfWAppazc0Au0V0sRrPi72sKEG.c05Xg4safg','user','ak_0546277b593dcf10','2023-09-04 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$HktUDxUBze5vA.VZ0r4aAzPvCAg5dDCLL.HjAt8KzKxZZXQWZiM9w','user','ak_9ad24e9497561a56','2023-10-16 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$0Zp7g1affOkauVLN9iwhdy4ySAIZOrkdd2hoa0KMMcJjeGOZpWAg8','user','ak_46cde7cee1f526fd','2023-04-16 10:04:00',NULL);

