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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$LGCjpd8he6xFWixyC75hUNh7miYQWdFRO5/EKCFrmVnzN.cAHL8gy','user','ak_be33f070ebf7e235','2023-04-18 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$7hKXFnCcDt1.y3mnozTw2EHkasMjXq8exwN41ODQH5OyIFQopgXcb','admin','ak_93ec77b5e8c749f0','2023-08-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$PqbADsRhnqwEiu/naeXbU9Xf4eb1EiRFfY/lokIqFJ.tHXDR8Pjpx','user','ak_c4fd873f30066ff1','2023-07-07 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$qoYUCx1TQcbxKm1atExWgafSIGrs9c5IHv/aknCmaxwPxqiuU2Fd8','user','ak_949f8438874c11fa','2023-05-07 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$XvOxCV3UhvIh8FH2RQIVmoH.qnTY.FcCls4EwHIVyM7fHOSYhPIbz','admin','ak_e095bd6ab1eb2b3a','2023-05-16 10:12:00',NULL);

