-- Host: db-master-9.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$tZMs0WfX9C6tU5MChTB.0NZHk1.4o.Cw2BS2KbipBd/ry01B0PXAB','user','ak_aa5d58412689c91e','2023-10-05 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$JvMoS8C9Iz9wX0tHTFq8gl6Xk4jTMpikvV2YgpmrmCDrxGiscQo0E','user','ak_1cfc2a966e00ee63','2023-06-05 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Y5sTkcniQdejVtii4Jhs5NcgJnkwFZQdSgavmP8gzUmpi2b.NwWo4','user','ak_b6a6bbc08d7c70ff','2023-09-17 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$kAgXJqnZuOipAvPdezkoLqDe5OefBKSHAtMvMHYbB3vLiSy8J88YF','admin','ak_c45e804e8e98a6f4','2023-07-08 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$sWbT2oSqPonG3ac2XdGhQfvAWjVhVJ6mqhyKdseAjpPQEnzG4I3pP','user','ak_221c77b2684537e6','2023-01-11 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$eoQktl0kd88IPBjX49fangOLKKFbFoBHqRSkUerj8GcP7NyRoW77D','admin','ak_6b4f933f6d280b29','2023-09-06 10:04:00',NULL);

