-- Host: db-master-4.internal    Database: webapp_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=14743;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$x8CopPci5BhTtnWtgft8RMTFQ7pqOCx8sfrdyXnOGYsZaENBuoLzg','user','ak_8571c232b944481c','2023-10-15 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$lNO0fWJeyaxPy7BN9W1gH8XIrQu7btOYfJCovN9JpKGI/kfD9p9Af','user','ak_b155f8902b368907','2023-10-18 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$wE.bH9ShHg/Jz9o/IfOConCVEsBBZNM4A4NMLS7gOnEBQEnl64SnV','user','ak_26a21b4df4df990c','2023-12-06 10:16:00',NULL);

