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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$aQkVA/QW.B0sxHpXxPILJJRAs8HOGskSd2/HFnyBdQxTA0Pm9/3F0','admin','ak_a0484cc76264e1ef','2023-10-08 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$8mofDqBJjCBPvuLzuT8vW.3DCqo08wVExWe4PMfwvXPZj5lm4oylY','user','ak_9f8b5df1c024be4c','2023-04-18 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$MvJmVg.VK/52yrDedxOo5HdbS2j9dETKb.mjCQIgZE14dLZ9jnKz0','admin','ak_c4a2e93c60971f43','2023-01-28 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$Vnl1vj5mbLefgSHPMleBdH4c2KoessFR6r8HPM25grcqk0GUFHjm5','user','ak_f405c26739f55716','2023-12-19 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$Ag0HwxTLklNIqUdSxKPfDJhIk1mOx9ileXEmxWhpCTARh3XBti0e3','user','ak_f409863cfc4b4869','2023-12-25 10:00: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=2163;

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


