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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$5X4S5joV/fNATgN5MosSogtSrZYgUddkgzCPq/wzvE5FJH.4Oc9r8','user','ak_9ea8185f546fb0c4','2023-10-23 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$Z08CNJ1LcIPUUYtcqX23DHqaBrepHMX.8v9vy7MXSGtgMX09NeS.W','user','ak_85f7e2d801b7511c','2023-05-20 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$E.0C9EzxFqIEXuOJuy4nz6Ot6ubDWszuc0iHflaJLy9N6upWAvuSX','admin','ak_81730bc0c2e618cf','2023-06-25 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$voiHh60mSF4ATEJNZIIDZKvZF.bfot7zrDju4Tb/OgMohrzLujS6A','admin','ak_dc90f5217627a272','2023-10-24 10:07:00',NULL);

