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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=5821;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$eD1KsiYG.gHPPlCgxHWqg87W8rJIGa5LHLETxoSQTVQrOEu5NbpuF','user','ak_4534d4da48dfe03d','2023-06-25 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$iUSJQYurpGfPMUa9ol9nMZonPGnEupv09CO/EjBb7XgODDk45oOqF','admin','ak_9b83ecfe3587ad3f','2023-04-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$9wkJuXjYiy0spKyxltowPLBxBhJWO0BhbdIOp1zfk3QIvziOhdhWv','user','ak_03d33e4e82638574','2023-09-09 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$oMYV.iqolaPRQnxk0caxPrPbHcDKREeuPej.8QNTCEiGtseS6fd8w','admin','ak_f0d093d9e8c0d605','2023-08-05 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$x8.liXEk6jm0LpDLRC1bwrmAJR3.gCJWHkwR/DB8lVzG3UH0HGRoU','admin','ak_649ec38718f45169','2023-10-21 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$zBlvd5H9a6hvyihmaDrIjeLyXcjsfNpElz6xKvLyPUmIna.6Okeuf','user','ak_a979370dd04d0291','2023-03-12 10:13:00',NULL);

