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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$m9bPIgNuSMXqM3pWEPUfVVh50n9vViWQbcEs9jAHqDcnj95cCeD.R','user','ak_ed525ee6cde10ed0','2023-10-25 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$NqKlB6IZ7nK7BpsulHtxKa4RSbIjOKtXpnXEf4Nn5.r0mkXin5fKU','user','ak_e7d7b3555e4513d8','2023-07-14 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$OueKH0k9SkajXUWDQy.v.o9iuL5Bb7Go13T3t8KwfRqhjx1vi/wBH','admin','ak_06ff8a28f55c72e5','2023-08-05 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$CBUzrKa30iouW/FYrMYqDQvVynAJELykdOILZX6Iym0kSoUS6GH3w','user','ak_94c73e8da3ac639b','2023-05-12 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$Yv5Tx4fA3Q9zSf5hU7dpXg54AcP9BntcIHqTcoehXsPJOqL4bnIyM','admin','ak_91123657a5a72a96','2023-12-14 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$8oZsIDZ./XTjDjHjEaiepEoZB7HYFe1YIF.nzMGKSXd1Ek.nEHTlZ','user','ak_2af7486b5e973a6e','2023-10-01 10:20:00',NULL);

