-- Host: db-master-6.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=17875;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$lFpZW9D28zAqeTaigmqJa0HdK0jJpaky.t6MbDRcB5Dq/RxJY4Jo9','user','ak_aa27156eae73e079','2023-03-01 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$0QMAfI9YUxi0BBICEwpixMVndT0F3skpIcdbHfS1OEzjEE0d9gQVP','user','ak_e17c20c310eff3fc','2023-08-23 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$qYJQxAqqc8GXkcI0f0AqM9k2BdaUlPWWt/HJS28Gb6B/x3sKd3CtN','user','ak_29977663b30ee8f8','2023-11-25 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$tLcI1Lj.IUqKI6uhufl6O.TAt9e8wQjaDz9zcqqAzjkr6PGD2ByKe','admin','ak_fb3a4b78b72d479d','2023-02-21 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$33JbQu.5rRYSydod4yWblbbZPcpdqV9BQtS4MYGYAYlqxo8vs2RRb','user','ak_b9e816fa56a64930','2023-02-14 10:16:00',NULL);

