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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=39509;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$tsUAtiOUBHFQ5ytbG.a60v9Z5wdtEqttxXbROIZ3Eow87ufaq61ch','admin','ak_36836a5674e4ec7a','2023-05-12 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$.rw7UGBurb3JbnH/BhJq0nkM9c5XigXMSuG80ijCFZu/0Dqi9JWYe','user','ak_0c93c628eeb7e531','2023-01-20 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$gA5Y7dBVnjw/IpwJcQWIhUKSCVi/8vuMH8Y8ETM/fakgsmeZhPQmm','user','ak_ed5cccff94e9456c','2023-10-13 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$pqQphtCv0CSWXdkgPWLXTO6y.Mk6AtoVM.rGBCaHeqWI2oaf7GtpS','user','ak_476fa031dfb929d3','2023-01-27 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$M3OJE0hyz4fQKCC/yRKaRVIXoTIzDkx5KKOt520XreAP8lzv0A2fG','user','ak_e6d38945ff3f262c','2023-09-13 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$96PmMmKxIDAkevFBxkHutQriMXzKztYwAZa.tcxqvEPJ4p3y7sGZ/','user','ak_1f70981bbfa23eac','2023-11-21 10:04:00',NULL);

