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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$Yt8ImD7fs/WqiBXEioerHuBVCdtc22vI/N7QGcaalMyOlw2b0yM0A','user','ak_be70572e6dead234','2023-11-15 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$rzkGKHnmcMoRI1PH7znue4FRgWRY340GA39ZGBF4ZmOO7m7fs4ZjK','user','ak_2ab24218661064f8','2023-06-08 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$qvUOR6ruqUOET.Q/LHD8qXkXMp/Rny4xqqSl3Jt7owksUNOT1Cjig','admin','ak_f7c8278cbe0f9d1f','2023-01-06 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$Cgc0nZc7kOxP0Cvtgvc6lntnw2Q8HnTWogFQNvp23nmo/OfBcwHTZ','user','ak_de7f3263361f707e','2023-08-06 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$KNtHmU7r0lASmj3pn3CUK9IdRqddwZI6iyEoSakbhIEfrn7HullpP','user','ak_4ddcd5c9ed74d38a','2023-09-02 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$RM3mXaX3aXWDMVLg7ZGESAu536cAcvZVl8qt55RyGhF2YHJ2jGFKd','user','ak_ab57ea11a68c9675','2023-06-12 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@internal.io','$2b$12$SXJoiEgDni77OXP2kilBq/vX61hjcqmYfMduzFQ/o0lwSWatw3Dl6','user','ak_cb13ac537415e66a','2023-10-20 10:00: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=33667;

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


