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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$ilJPYqx8.gIdFLaZeHw1jjY90.K3WiRg1Yph8GVk5/.VzvznA.6PD','user','ak_03d453c28c97cd4e','2023-10-13 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$zyT499ED9EFhTd.CGuIReqF4gQbtaHnvjq3VgT0NBA3NBlBzMGycz','user','ak_96c0b80ef7dbb36c','2023-06-25 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$Ok4re34I9C4yoGo3pPJzkqP8XP6sF64lR8OBRhfH7lKyAelNAHMAJ','user','ak_a942db4c03916d7a','2023-12-21 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$5.6pFrL.70z8Mm7aOf949704Tz6v.E3pUcXPG3YQjukLBaJCQUQ5C','user','ak_07480834cb0a8386','2023-05-06 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$NmTv03m9AQSBdlqUqOVWrJnkrnRUU26PjJRmaPm7.1exfnZ.IZKRE','admin','ak_ba819fe10102bdce','2023-12-08 10:07:00',NULL);

