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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$OGGR945SmleP9yvEb2zgZ.0j3CzBq6PZhoT0gRW6SrSM/b.fbOLIQ','user','ak_6681c403b1a7e39c','2023-06-18 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$VZjEiI/SESQFQF16zRiIAtvohxAd2GZ96MrSzsXsgfaC1GHn7YvGi','user','ak_6ea69e5691b7771e','2023-12-01 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$OY5lHHU7B/k6JBhl1wAr2MOLh7uRJk9q2Uxa1VcWtFW4mBjkpFLJP','admin','ak_a38b31451bc0fe0c','2023-02-28 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$hVfkvWE5u3v1whVnWGOuYZusxw8zrpFLNIK2Et.d3qOHpHb9ux5aE','admin','ak_9eab8f572cc60d14','2023-12-17 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$naAeXxiWDFpNGLwBsGyGLymBXlibASAgOOQ9YTowIM7Jmy9UF2HF6','user','ak_84199ef351b121f9','2023-03-01 10:22:00',NULL);

