-- Host: db-master-0.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=17689;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$sPqHTn0PUVum3UEtwwnA95HCoMDHrZ1elGp9zOqCQyj3u/55ySZmx','admin','ak_d9f3ff0245476956','2023-02-19 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$vtm0nLuqpDPkxFdUl17/K0IwpIlKe9LeWqIkLMOgCMfG.0WiYrvB.','admin','ak_8391ce2ece001bf0','2023-07-18 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$XZrliy1Mpdnx/WLIUc8QIle34GOqiawQux.AEy/PBXrDiJGrfZb2c','admin','ak_e5fe0ce9f2328144','2023-01-20 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$I3qYh3OW/AEXoBeIZFEZ.6CctDbbexvzBbtXYDkpZDFdxIoHqYnOk','admin','ak_648d848df2bdbb05','2023-01-04 10:11:00',NULL);

