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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$7N6k5U0Cm8/AFCw9BvkBle9iV7KaEIayBiIo4ud8PVuujXKLHup0X','user','ak_fe0a5e32b6617b70','2023-10-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$Sdyo1.okrQUo/spEWuG1wvlE4XVRTCKoNodJLRopr8tuRYxz3uJR8','admin','ak_f36e3ac9ab0754e6','2023-12-02 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$.kenb1HWQrFkp2HEv4VSDqwi1iqoJR/P5XZ1b6xVgF6Jl99mIMWFA','user','ak_9705b09f7fbf0ff5','2023-07-02 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$EwA3PGDpVgzFBeAEZ5Mt.kG6PE/BEX5eE3FLS9whhr8g8L4h48rmk','user','ak_a34af4d32fb3bca5','2023-02-03 10:22:00',NULL);

