-- Host: db-master-3.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=7454;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$fnn7iBSPVi/kYUHKu/.OsClD7wR3oVod.7IyUo.Ag6uTb7H8vxrQH','admin','ak_aa97437b45c3162c','2023-01-28 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$jQaHBQztEquUIly4A7LiUFwZgQ/7EJ9JmAwg.nBxVlP9sf5xJ8AlZ','user','ak_0d4caf6a06e6760f','2023-10-27 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$u9emzwbmq/tihHvuGsJHBGIQqfu5wqjBXj26b3E6W.GopYHBKSYMf','admin','ak_4d17c48c3b139afd','2023-04-07 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$9UxxPION3uvN.t.5vmWP71kdiajnKgiDgoOTYDfrVHimbYOxZ6V2x','user','ak_2fd7630afa16e642','2023-11-12 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$M83YN8EPkgxjd.cYnAW8cXtw6ewRC8PIzlPhY/pFqfesWMP7CFqnK','admin','ak_7b57c719f46bd1b0','2023-06-03 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$ef08pgK8GyprYqTbsK5ZKHbBvIvBzav822yZtPHMELmX6mn5zZ3KY','user','ak_3f470be8882fb726','2023-01-10 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$NHJCFUwDKJcxiO93nIbLvYpSa8JYTGnMRQo.oRaoq01izI7mNbS2W','user','ak_dfcfe272923de551','2023-06-06 10:23:00',NULL);

