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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$A8DJijkXQtruP7xV/E841IH0bPiS1EvPmE.HNqvdIji28K7sANDab','user','ak_2c695eff2e7dd5fd','2023-05-26 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$ln0YDe0iBNNwPMiciU./5EFl72DD1rpN9bBpxl6LdpeYc05UHFVVk','user','ak_eb517f35a51e0a87','2023-02-15 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$RSKTnceTKE6N6/K6p501BIKdUH3Bp.K5koKp65bprAVSZIQW4mOKw','user','ak_2f4025962a06e1e1','2023-06-13 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$c20pJdjRReCCCxgPe5e1ixYdya1fJAbBTT4Dq/wU8DnK.aUz.IpUW','user','ak_a5abcd50f44ae753','2023-06-07 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$Qd92dgtS7NPKEevd0UgVWiXfKHxmWQwBjlusfdbV6BQiXYIx8FnVf','admin','ak_20c9f729a79b8d76','2023-04-10 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$yQX6JuV4fReJRlYAjxVVnhcMYfmiII2pQ9Dx0esEcbqeBlFtvqU3q','user','ak_898c14ec48951a7b','2023-09-14 10:15:00',NULL);

