-- Host: db-master-1.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=19118;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$cKnD9DJc7VfDsV26bCXNk2vmnBJDz1jLBLGb84G2F0BYNA1NFAntJ','user','ak_2960419a37b56f13','2023-08-17 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$qWfcEgWxRQLVZAI6Zk8mPk6u7rIq5geOXhF2SeW9vM8jUpTbAwR9E','admin','ak_c9e3db629317dc3f','2023-05-08 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$ztPAJiQupKwDzxGQJ4LpErGmabG5MWotyIB.0DIjSKARjSruK/xsX','user','ak_d9e3af74f5d33ec7','2023-07-28 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$tjUN3on48d.UfXAXfINCX1z1q3k8mCvgqqGYI9FGxgUikw4mHWLb5','user','ak_9c755caa2dae3325','2023-02-17 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$G8O77F1HBtThM3DBOO.3eZkIn6C5GD4RaLT7vMt7cMyCzPGiC.HKf','admin','ak_e4b8cf4e391a2a8a','2023-11-06 10:20:00',NULL);

