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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$J17WeziQqiZq1GMJFXn1ooOPHLJDy9KJts3.fbX/.byb6hHv5NBgl','user','ak_2ca6dcba51e0eee4','2023-04-04 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$0GIOoMpOoXxYFeWE/vsbNT8OiqIF/u.S2D3DbQ4742cXmyxrpib29','user','ak_7bf2d425c25e38df','2023-05-17 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$tj5HLo9BohgA5MKVyvvf4CQO4I8ba7k8T5da9lJHoYEZVfr1Ovazu','user','ak_b19bf2d012a696e7','2023-02-27 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$j3dIGy54Y8yeKM7hxbbfKWMyq2XHt6R2Zr9/DynP5lCdbblgcApBK','user','ak_601d0ad50b2b1f87','2023-08-08 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$ee1ahRVd6KnixM8z8z4AOSkSE4MEA6pZ6FU.9hM4ZnbAhyVWgExdc','user','ak_f0fa9c6100e8c926','2023-02-12 10:15:00',NULL);

