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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$0APjHNyaghaNeqglH79G7y6f251.MWa2HrwDi5S8WZRe/BlD7w3V/','admin','ak_f467960a07d07ce1','2023-01-15 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$XHNPXlFAvv1OaoCVLPJy26dPx8rr8igiJTrevrAlCcJgLpL/PrLpi','user','ak_a1170df8c7d4ca33','2023-04-01 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$IGjzPzWsdj.c.JGncVj9To5TlQ3OclrLQX4I43HhjI3bSLb4E84r0','user','ak_b86cb27bd6d7b678','2023-09-28 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$uAqJ9Z7g83fgfGYcUACi3iGDI/ykAhuLp4n4KZDhXVkzMBIxncRVq','user','ak_254c2b4324f97f98','2023-08-28 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$a6UuSuct8nF8WiEWnJL3JtBiscCtxRmlc1WsEPjM942Rwyq7cvUPG','user','ak_3af7207006a4b50c','2023-07-08 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$IMGYzCGwi5Okllud.eGgQx3M9qN95R0Ze0AbkiOw6cg8mM4dqtzqs','user','ak_d91b3db4a8699cf2','2023-05-21 10:13: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=46180;

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


