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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$ta0PWgy6UL2z1XMOwgvd1S269oqHXt3tIX7ijHzFGLLAotSj1xqMV','user','ak_c014aa2e6c168c2d','2023-07-25 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$NMNme2BbpGGrqkedkK0zf.HgLZMMfblmlzYuJOxfI/4kNQJ1kKr4R','user','ak_9bd2a6732318b5a2','2023-01-20 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$m5LNXpHaun2xGWfwlFPNN3cXzPVbfyBecjX2DMqWZAk2YmDEZ74.V','user','ak_e7142a6977d471f8','2023-10-07 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$Fj0CuOCktmxb6i6noUptS7D6pg6x./N3At9lze7OPc9Yw0re2DcQ6','user','ak_b6c0a72a97da3b78','2023-11-10 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$aR2PqhYr0duLz9Gu/0J4bAIxEXDO1xe1ozVD1dA9g1EPRCuImXYE4','user','ak_44aa13014b932ebc','2023-03-20 10:13:00',NULL);

