-- Host: db-master-1.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=10317;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$TNCyzcF8Nll2U5WhnYC0wLQ8tshHTwUkSD9oJFXOQFz5pe6iYaaOp','user','ak_a0196188772cb53e','2023-07-15 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$5wRYiBurlrs2JmZp0UK09RvEnr8MyieUTzS5lYRiZb716nOp5Udvb','admin','ak_404ec48a6db472c0','2023-08-13 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$D6xLuo5.4cgQvttn55cfNRxU4R1HWTZFKSEtMHYL1vIDOxQF7f6W6','user','ak_f001777cd9dc3d07','2023-01-15 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$saOzI360IJKuUHM0V8nOuH9qbwt0K/TrBj8g10fzoOjTjo2Ni6EXb','admin','ak_483b1b5c5471ddb8','2023-10-19 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$zGgX1/TGqKMD5AtoLFDSGrfx9DUQ8VxbtWNq82wz8ZEscwKxPAiet','user','ak_05b053d5caac1e47','2023-05-18 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$T1zjRP7Qo18xScPsEbdNAgQoPQsPbYv.xb1HGlLkYlVSJb/xsrvPN','admin','ak_7fb61cae580ae4ed','2023-05-16 10:02:00',NULL);

