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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$2aYARwPZ9PmcaE/0T3e3WUuv0D0.xhwVkGOoru81eeNUmpqpjLpwh','user','ak_444a23d74be3aaa4','2023-08-05 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$lN4oGFaDNuQeXtSgCdrRboIu1AeuNl4sXRNN2xaQrvK7d13VJkypK','user','ak_76e60092088376cd','2023-04-11 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$87T2r5orEmA0xiPU8U7pTsCZuoRROl2TMPBeiI6T61SJ/tAQDw5LC','admin','ak_bde0db620438f4bb','2023-06-20 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$A7YoWmvErYzQ//lu4gsKp.DAX1VgxYmP/eQVcydL6SCLRF03XxJki','admin','ak_f595b95599a1ca77','2023-04-09 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$EVCBOuvdVkwnhjpnt/8l4K0Oti4fZB.k8EU6zwNLruDuw4wE0bar8','admin','ak_89baecd5a766ffb5','2023-12-25 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$zwWOcbUazwI/TnGVIGz1SjUKGdQTx9bOaYm5V5nvvBfSICypmx./c','admin','ak_af686600e6c9b402','2023-12-01 10:10:00',NULL);

