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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$.v.fSjO1QTQozY.yOFHFqJ/F8cNxpSIRjNdi27M50dI163JEEhsKr','user','ak_7a25a9bce5066e40','2023-08-22 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$0wIKuU4HIe6RO5LBlWC7/OvE8bN47kaUsEQKYQCqlFNz4Zm9JsXxd','admin','ak_94467a89e7336a63','2023-06-19 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$76WsSVyj/Nhe.aUeghnFo6nCGM2sj2zI5eC2aeAwIO6OY.8vbdY9T','user','ak_58b33434421e0530','2023-04-20 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$/IQ2rtVc/vGUs623Ldt2UBY1HbmxQmrIbNndj5UAedbUtTu6wHpR1','user','ak_beab37ac6a94ee80','2023-11-05 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$2/VuAmqBx1ICD7iWnfZWfwwUZzglxYUKt6Q3SmZaKAueS/2HFr7yC','user','ak_094b97576380240c','2023-07-26 10:23:00',NULL);

