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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$Wc/Y3kbaqBtvXFTmZh6cNE.xvcjpIYc9nMr8.p8W8LXifsOwmuIB6','user','ak_6626ea6eb66d6250','2023-10-04 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$ltzMG7ZB9KsmC0/GmV2IpXG1ROcKaQNMZFiFCt7aLUIu.6884yb/w','admin','ak_53db810b95e2c233','2023-12-09 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$fDWxG2Eqvg8/FQT2wwkW/ysFrBJIH4SuLCHI7tHPbzrvPWJTRyjPQ','user','ak_82dc11d6dfecdcb9','2023-05-16 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$IhrTghSPVKCtJGfKc9ltdPav4h9Y6Z2HJP2K4QYaGGcfFUwGmxGoD','admin','ak_6cdfa94b3f6abb1f','2023-02-06 10:08:00',NULL);

