-- Host: db-master-5.internal    Database: analytics


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$6Wsi.lnPzLdbmLejTPICx.eT157RqR3m7TOhbfjf.KS6W.Xan9lv7','user','ak_5da3b542afee76d1','2023-03-01 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$EOb0jKDSP9zxF0uBFQTv1nzTUMoVth6kl5f0Br8w0idClrZwQW518','user','ak_1af8ce4a4cee5d19','2023-10-15 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$66wl5MLiek7cyKiHtcviY/sHATy7AlMGc63Tu0HrjeFv/zUSLjm9l','user','ak_77d1bc0daaf66c0c','2023-07-11 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$E8yeeA4/wMx8rishwZmHthDhE5/9fE0DBZGnqecbitTKumxANEI2e','user','ak_f5a5d82407dfbe69','2023-04-17 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$R1wH1NJ7HwEi0LpQmhdhlQGWnYT28EY0Uax55XOoErUSAz80E21a4','user','ak_e2c0f050cbdc974e','2023-10-13 10:09:00',NULL);

