-- Host: db-master-7.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$qxkZ9sGrMnQo9rHQWsaaAj4u07NE4dBZyW5Xmzln3na/fJGVF3xFY','user','ak_46de34ef1e25452a','2023-05-04 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$UTGFNmPrHbO4/1g7f3pb767UxWuB34TyaQTfyzIuKnV4ijGNpM.pV','admin','ak_525192417fc08b0c','2023-10-09 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$hIy4AD9PR92OuhJU4J7N6RAbNnTVUnO05gq1KwYUT./u1DJrBSHzH','user','ak_61eb9c7c166db805','2023-01-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$VtP02mnM3FoO2AZ7pjh1DdBlw3Ot.u8oUKMCMitapKuBKIJvXE/j1','user','ak_1a9111324c3cdc6b','2023-08-22 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$X53pJOj.4doAhkPmL1zmQWROdPE5gkpoKGufJBIsASTB0KeKTrzps','user','ak_cf11698648659a94','2023-07-19 10:08:00',NULL);

