-- Host: db-master-9.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$JWntnSAASkmt9AzsFkBLwALePwyIPM.vBeMk9g.LF1ZButneQdpGO','admin','ak_aeed1bfb9b657b8a','2023-11-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$4JV9BZ/hcwzt4fknFUQKD2BFhkKnuiLg/X15Ll6ctVR4LDenmpi26','user','ak_0ccb36b208b02f53','2023-12-14 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$WJPtlUMZ0HZmnAAFqdzxYfWlvCnUItYAqQYay189OBDSuYwm4PPNj','user','ak_86973c6955c78ad0','2023-02-22 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$joFubiN6VdH6rEPtbe9BDIbkiNIMbIFrs7xabLPSDaEk7iUKVM2ty','admin','ak_3d24ad0591bbb840','2023-03-12 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$Rk/HIhBu.MXqDTMtqGTicmYDgtSb8AhA.FJArg5sMcSmEJCby29gs','user','ak_a02c1a58ff0fa2c1','2023-03-25 10:08:00',NULL);

