-- Host: db-master-0.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=23799;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$qKqJRqZJOSwIWPC1DdeC0EeyekTLXVKAftHeOgVwqkvdRJxDbrxZj','user','ak_8c8739f4e2f99e83','2023-05-12 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$tUnfB01fmnQGmo8vEsAe.fQwTKPvvEXNAdFqvna7jKKf2NBdi1l0H','user','ak_dc4147db6bfad83c','2023-10-01 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$9YbwYqbiUrHNYm7tZXcoXyhpQEokrOpCtLnG4LUBrSqXrLYqaaePA','user','ak_e6c7daca1cb395a5','2023-12-20 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$4j0PI4sDuM1Ryj/7D5iDr9CHO2dccppe2672y/L0LoIhYvf14CVaI','user','ak_5b35cb54ba1c73ae','2023-10-06 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$OK.FnW5V.kK2AMXLVmCru6DAproD5x9yXsl67N/p2cLRYGP4eMdZf','admin','ak_aa6eccc2fa79c8f3','2023-12-11 10:03:00',NULL);

