-- Host: db-master-2.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=22304;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$UPU8Ey4IjJ/t8oRia3uHN04CFgkVgbG9aobn62DsRkWHG0fVzgu5k','user','ak_71e2b3c728612794','2023-03-22 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$C9YhRKakEJDAN0tZjDDjmNG5U4PCLCtDNaBYPvQcZXEjtoHY1sU3W','user','ak_b14d664ec0997871','2023-04-03 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$kLxvJUdYnNAhc8s4fLIjq27Cee7SKBVafsD02dQyZBs0pQJ0s7oCR','user','ak_1f69a0df0058b8f7','2023-06-17 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$p9xw8cNxuyKfYZoP4IqaqPQsus3OeQVb5Qv/IHGOfsEqa1KiWTs8g','admin','ak_f78240a41a16ed2e','2023-03-20 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$0h5JEXOZ4bZEKIPN7Wp9YLKvGQWbPnp0gaGz2.UB.yFk8PMadL9RM','admin','ak_29c3f9af9b95e9d9','2023-07-17 10:13:00',NULL);

