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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$YAGoQEQWDMi0vPshPfmU.uaNYO8gCqemChwYNK/ujDH/drTzCvJvE','admin','ak_de4ddd56f0025d9b','2023-04-08 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$qg5BVPlQMoVXiOPnlKfOG.UNzWz6616kdsrxv59wkpPcuOfmbExRd','user','ak_77e726cb1c059006','2023-08-09 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$COycsnh1DQKsJDKhjukDHQSKJwlKKEfuZEQLA6LabgrSATK7CbCMI','user','ak_eb672072d505cd25','2023-02-13 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$LzMKwTRYHWAeg2JxgkFlLjjYmnsTFGmYDI1jtFpKp7O1ixwk51Sjx','admin','ak_2b5358230365e698','2023-12-24 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$I64N9zU2JufTeRQh1fL5.ZJSYq9gDLeRRvWRDdo4m/JYIVhiwK0V5','user','ak_2afc17a47e789abf','2023-04-22 10:01:00',NULL);

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

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


