-- Host: db-master-1.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=26684;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$D2JeUOI4NDrnuwMkfujRMxr6dEbHIbLoRe1GY01Dpj.1DPZ2055YB','admin','ak_a07b88bc568cd666','2023-03-18 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$OnM2xmwxyWp3t.mMgJeQtoeMxQnqkwVEZ0Bxz.4t79ofTiwMqQyJp','admin','ak_950f6c59c8e8c841','2023-12-24 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$CT2jRmtNEDvjJLE/rGxHkTXTGZYckuYNhRcURnJMO10dhij.jFz7.','user','ak_24e76365c258722f','2023-02-19 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$LtlYCZF66xPwnes4UoxIZwIaTBpbjA11lZmTPK1cZmX.TiZR5k6cz','admin','ak_74f63575666e1ca5','2023-08-03 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$l1h1AzGOwA0QMm3wZ7Bmnl7imwZiwQEW0Fk/8G5n6SjervS32UzRt','user','ak_05cd708bf92e9ebd','2023-05-08 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$jmxAPFsxDh2oUxQPZn11ttsQwUMtOnXPvRDnRmusJtXhWpc29B3tg','admin','ak_3c81a0d049e8441f','2023-08-24 10:10:00',NULL);

