-- Host: db-master-3.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=31903;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$aPfZ9xuxj/Gf7j0AvBX9TuQdV21/EqBlPdwsPMI/5FB.1BHqJnk9H','admin','ak_418aaec432e0878b','2023-03-01 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$ly7f1AsoTtyogc/M0PkJEaUxTPf05UAuIOecpc7Ivg5.9/TuM5low','user','ak_e8b41e80a4434aec','2023-09-22 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$8Gxr2QFa06QIScYe8Ag1dZFUa8RpNY4CjZN70UxxmUrvI5fUsU6DF','user','ak_53c1e88c2bd1fe46','2023-02-14 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$YSMpuFHu.ifKgGgS2Ak8/qemfXarnLCuo244eH1pGlmRBTYD1RVxT','admin','ak_e3a28d046da40e25','2023-10-12 10:07:00',NULL);

