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


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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$JQp5lnIoGNpYxQRdjJ3LsKFyxPhBPVYNb8dCKHFp8h9inZkLsM9jK','admin','ak_e20993807e59e279','2023-08-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$8Gbzt4roxo2wWWvo5qmHSu.Qst82PBTgXrado8Aw2H12D5m9ci0Ql','admin','ak_cdc95f01dd8fa381','2023-06-09 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$dhnNzZge9S73eUxqVpoHrdLadjou4K456iQkbqAJTw9TbIakhEHva','admin','ak_62e8553d7b42f09c','2023-12-01 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$8fCz5a/eEqdW6IoDLs69tx3xJndQkhWVkihegzVVBgRzA31CfodE8','admin','ak_a6fe90d53a27c2ea','2023-08-13 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$9OhVSSgL6N.afLvnHHQ8w7PHNgwEj4umyJ1BdPrtHeu3comhLPK30','user','ak_b12da7ecfd67e971','2023-09-11 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$2A1n9O2Oxt733e6Z7WIG6aAoEn5F/Ap5IuutD8n9rM5YS3q3F.V4b','user','ak_aae5488b9b7df437','2023-09-28 10:07:00',NULL);

