-- Host: db-master-5.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=3547;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$EWQ9hNwujYuXbFHEzt6da.DMn3RMngS.RY6SLRgf1FhAcQQDUbzRn','admin','ak_d84728419143e865','2023-02-26 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$8p3MycUwMkhnJ408ZItbuZDIaMYMoAnaNEy1ji5xiJ0Muoj8VOiPc','admin','ak_5e21885c4709e3eb','2023-09-12 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$Atdb0DW7yTPkmo64Dnt9WWs.ystinrcfSaau0UeYMLALDQZBNd8Qk','admin','ak_187f8fe4f904648e','2023-06-08 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$ZyaPLmTVj6HVbIA5dTAIw/HnuStT73qsw9V9DlCS4n42WEPYH9nBO','user','ak_8f6bc5956ae2bfa3','2023-11-26 10:14:00',NULL);

