-- Host: db-master-4.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=45376;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$NOe4LgRz5ChlH9gQnql4CxXu.FELX2MwG7/Lgy0.x/qSIFM7JCH2s','admin','ak_e829e4fd75e8eef4','2023-04-02 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$APsMfHypU09rAy9mN7id.z90bb6tNzcawVoJEihAmDXpiUFPsFZJl','admin','ak_6e540fd037a19fc2','2023-03-04 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$eLh5ES.L9PGoCa0PR5hlv9krI/o1uC4W4FWF/f233SgwhZhJTbwnB','admin','ak_1869c83d2f7bc767','2023-04-14 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$C4gbwkp4d5OWIIqVUvuu7fNqgNJaXuqOQYvNdoVGdIw8txqFfXMXO','user','ak_3a23a641483b5943','2023-04-19 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$wR/.UiK4AoD3cOlebOq330eOAxh7rwbWXLL5Dh2tsumHdGA49sE0F','user','ak_2a9d3e8364ec0377','2023-12-11 10:21:00',NULL);

