-- Host: db-master-0.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=29771;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$LPURU9plZkiiremyqq7bfsKDZc5bFG9ShMsJ3wWAVbysOqiEGbQJ/','admin','ak_78fa8d96b3a9ee1f','2023-03-11 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$Rye3IReavEl10yvRSgokaEbM5daK2tvhf.fSAGvlEgzAl3Ki3hZzx','admin','ak_8110eb8597f2f2c2','2023-12-03 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$C1XwcneaXUiisdrQVNGR79FZ85or4vBOeHnpntOwDZL1E8GUaRHhK','user','ak_c9bc4bb0e026e82c','2023-05-15 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$ws.7MpcMeogIpyInu28On.Rz9bY93IcIiLIfU6tneD8Reydp6gJyA','user','ak_5c970a75c4a6dffc','2023-02-23 10:23:00',NULL);

