-- Host: db-master-8.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=39593;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$mFIT75WgzB64AOk91HUdqSCeHnTeKCKnKcZgs8HUeAe2AHguKopD6','user','ak_471fa7dbc35690b1','2023-10-15 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$HjN0MEHxXwR2ath3s2ZDJwQpJtq.HKxF2eXyL/mP5dVZZpEWtHivY','admin','ak_94cca9e295a41311','2023-02-05 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$l.fjRhepeejSD8DoaE5JQMs7tiZGdgLLOchaNMbv1mTnGmN7EK8iR','admin','ak_4b380364ca35a9ca','2023-01-07 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$1pntKTlaLG1Gw9INXMEoXDA9ID4LxJKtj7j87DwrTom/uxA7ovB79','user','ak_498b9c3c3e5e68cb','2023-11-28 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$c5p/dTUCyq6.Q9fpQHVrF9.4Qccjy9CP4Ctm0shoFFMoOjqOKEpHj','user','ak_4055dcf2d45846e6','2023-01-18 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$DQx3m.2u5QV/5XlfjGBRlKbI4r.xeomlntC1VnN6.jSwSvBlsgcMt','user','ak_582bda603e9fc78f','2023-05-08 10:14:00',NULL);

