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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$JAVhfgcv3bbDPdOIOjSZwLCVyW/TErLlNAQXNFz.sgZpdA8Ff293p','user','ak_72fa0c6967c4a045','2023-10-04 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$8V9HadJLOj9f67VZ6vwmk2Wyb9M2f2K.uh5AvPSlWNmW3GlrdCWya','user','ak_022d3832919cb820','2023-10-07 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$PQglFC/El8BVM2fFzvINHW81.lNcPwN8ESm2YGOjNE4FW/r8gFIiu','admin','ak_b71c92ce59ae3bda','2023-12-04 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$AhTdcg80UyNU7WkWjyTZjGp0DzI4X9WZy2Q4.IhGEouFWic/vEb89','admin','ak_f63bbebce952ff10','2023-08-10 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$JC4kWuBKvdaFOycsEgMUq16Ena2gT4pZBZndR4DvmplLEKvimoJan','user','ak_57824c41eb665bb4','2023-12-28 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$Oxm4MgAw5bVWWJsnKQSRPYlL2BnP8DVEFLHsSSSPi5eFrtqsY/hK/','user','ak_a7a6197e848a6542','2023-11-03 10:00:00',NULL);

