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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$PK4bfgagf8E43/9Q4WOFZfBXLEdmfXxewAmpX6VkwqXqmDa/9QFPI','user','ak_5c9e6255308e86cf','2023-09-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$q1uYR8lN8bC/ocfyOyG0HP/5bt.EBlHQfsbLZnVTfohOzpHYryJiq','admin','ak_4ad34655f1af139d','2023-10-27 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$L9dnxPQEAA7ITCKUDGRbyLR8by7KOlsb..MJDFtJVNzaY6W30nTW.','user','ak_ad9d18ac0ed20dd2','2023-03-22 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$Sdf9PSaRV3j58AiDtchPlSP8SGQRPzQeXdkR2qE85jewbrVu8NxhJ','admin','ak_922cc5b61c45a2cb','2023-08-05 10:05:00',NULL);

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

--
-- Dumping data for table `sessions`
--


