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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$CFVk5xudmcbzUHUA8sJUEprpm4MPnh5PkapY89C1cznDI3BLHOjLM','admin','ak_2f27a3e529b5667c','2023-02-17 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$z0o6BX6vsmQ7yWIfsuTZMA/8/MEJn5FRLfbRryW8ikZk5t1EUXrbD','user','ak_9da271c38bd3201c','2023-12-09 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$ecaK/54V6ikMiDEMVER1PTgBkMf7W6ii17kEArMD.poyOHXmT.H02','admin','ak_dd53211b41918e9e','2023-04-04 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$hZ3Cw9T0TFQ5P.ZzaAyZHQG.p.kWqRSDLz3bXtD5TDOJLsmd3nXpE','admin','ak_649e935776a6992e','2023-11-22 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$G62FoHad4vBR0E07wGR.5JRq85fvwFy5NGEkZqmC6SiiyvXLBwJYg','admin','ak_7aec317cc2b686a1','2023-10-23 10:21:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


