-- Host: db-master-8.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=38856;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$58bCvzJxWDbKnQKfTWAqePzkrq7s8z06PpPaRPzvvSMPBBdmGOp2d','user','ak_d61cb7efea7f50df','2023-07-21 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$uQGkTBVSpPX8OpLq4MaOWJY53vUX/3CLddlbWT6sgC8MFyxReduqa','user','ak_393c369ff32aaf1a','2023-07-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$1sHseWMy7/QaOHhFRRnEcwVeOfBe1wg7GI9a7A.ZiOOc5OGBDN4mm','user','ak_8a398729a2e0b9bf','2023-11-05 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$XI9ZwPgyRXPZ8HKx1pPFumAdkBlSY9sam4yz8Hwq9AbKrrvCqGQzL','user','ak_9858cb8d89ab4ed2','2023-04-27 10:16:00',NULL);

