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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$/97ptqb7YNzZkT2L.wJPLM.wjJ9iN9oLNegJkmTG0j0WmJcVqIgTt','user','ak_951ceb8cbcb27eb9','2023-12-10 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$kIPx.udlftTUsGBGW7rKRa5Yo2l14TmXYS4Zmie3THEoYqOwbYuKh','user','ak_3a55666a0b1619a1','2023-11-10 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$xNx4Zv.CiF0AtqogPCFy9g.G7/nhbVFQe9vVJcH8P.RAK9WOqG8tB','user','ak_2f741a8197b23eb0','2023-02-06 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$GN9bM27i5Il7NFNU6tgh.4hbLV7cSd7sEFKXqjIJOGF2TEjJdPj1O','user','ak_d2481277e6e7556f','2023-11-18 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$UiaV50x3QrfG9KxT8lSqdRU8CZsrsTdeHDjXN6O2rhlTugmXik0HK','user','ak_033ec9398ed80c07','2023-01-24 10:05: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=32109;

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


