-- Host: db-master-8.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=31718;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$FOO7XMaEw430fRohkwLxBfi1Z3mBNQtHe.pL/DwDn3JrWC595ZcsT','user','ak_9f29525afcb0509c','2023-07-08 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$OOGGqtCst6zX3fzd1m4doyOOx4EzHxMHZKRxh6/I2XRnOP.glbDIR','user','ak_b598c079558f926a','2023-06-23 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$nwSc6R8kO.DZgsPwZ5UENrfMckG.rPbIfCcZJ/Q589ARXaWrKvick','user','ak_125b7a4088fbf8f3','2023-12-28 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$iJaj.h/TRi/GaMbVMnGml74g9IxEBJMhIcPYXEUl8KfjF498suAbw','admin','ak_657808f2137faadf','2023-02-24 10:07:00',NULL);

