-- Host: db-master-9.internal    Database: production_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=47233;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$ZoBqbmQvJ8pVXTOYE2dAKjPWLslT5BwBY0ipBozGocOfh7zQDlQeI','admin','ak_37734632c7bab558','2023-03-04 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$SJdHkpORdDVGIXwfue5s57i2aujD4fLXcUzIkQwU5.0YASNKyorAZ','user','ak_742f680fc3fc38ba','2023-03-06 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$eSkajn.DDYZy0esUdtnC8JsCqIhWcnQcDFtYiSK1qKQufhDHvacv0','user','ak_faf0ca4367f8a48f','2023-05-04 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$D./sCrsBVuJlpY2bseYYMOnEhrTA.bJpPUw2Q8EFPJqc9/XnQJ77v','user','ak_386a71c97875dad5','2023-07-21 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$MHe9MUHluL7jrb7rW32a5y6nWTFNB26qTt9GLflNj2GqvGIJj6lYQ','admin','ak_0d7ff7de5bcb34f9','2023-05-02 10:21:00',NULL);

