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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$Uv5Q4cTJjIGT687PD5lTApQXc2Ebs94ukOXvA.o4sUziZIyzTcPav','admin','ak_af598688eb5b0afc','2023-01-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$EpnWnaR3OzaRevuTCUtpvd7oWQ93qMHPRT37fMb.34HgHIBus6474','user','ak_74cbeee6733c2b86','2023-04-05 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$/.2SS4Edf5QwQvGsyUlfAXACWvCn4kJAqcVr1bhdtI19v0hXJhtDX','admin','ak_3b500c158b47b61e','2023-09-01 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$1LGo3QlqTTmUsIZLD8pFqR43Eik2uyaU0bVphWKr4Hg7YqH9dPavt','user','ak_07985902d7883952','2023-04-19 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$SlLRzEp4poEkOSihkUW4arEUsU1eyPIuGrf/5IeHLdbnLhPG6OLRk','user','ak_48c5608492cffae2','2023-06-23 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$z6OfwwLMZ.TH1AzQUrPvwwyilPpLdqoq8pV08XptUzDzZPDzVZ2J5','user','ak_c02aef0b017156ef','2023-07-04 10:19:00',NULL);

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

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


