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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$UqAHT.WS3pQWOPB84e1Hx9aRx.KZPpeGN44kN70LoaWzZDutzHNvJ','user','ak_8b803caf2bcf5f84','2023-12-20 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$q8Q68gLWaT3sMXiM5EpquqwRSUCGtO85Q4LtV.CTkUgO9XEl2t5yr','user','ak_2a192a034196b834','2023-01-02 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$JvLwncV4wlWAoQP9Liy6QI84T2w.rKiDj/VyEZuCMYBN4ntwuvmd6','user','ak_471c77e1d644e69b','2023-12-15 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$kFeERk9J/gtOz6FpUiUG5uvVbVSpD4x/lUWrWbZhZHQthOKyhIaZZ','admin','ak_9bc17e3ddf8566bb','2023-02-15 10:22:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=49913;

--
-- Dumping data for table `sessions`
--


