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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$eYkP1MVgVNtyrdoDUXlsuR7KvX9K3v3z8Qs/IjqVrN2pW5JEWZVkI','admin','ak_ae8649fbed522267','2023-07-19 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$dOmV52LfZFiPXicwlzNSCuY3M8utC1CwM9fjouUtzPov5xpobLw20','admin','ak_a983c9bb55bd56cc','2023-01-12 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$e8/rftlhkWT5azfaHmPGhbOirkr2X/OGfNtcftPIUpQPGWht0Wkon','user','ak_9755dca0e8ea968b','2023-07-24 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$CcpsWOM6g2BI1.7XPYYuQ3oRZwfgIvbhPdiw2JpjKuZrPhTfL7bOc','user','ak_4c87ce4760347e21','2023-04-04 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$lgVP3Qyxaj2IhU5UcrUvmee079jggIrgH6.6aN2HJx.NgOHVYZOp3','admin','ak_811ed7ff51ce594d','2023-09-11 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$p0SWzZQFfJACNrhpys.K6r8Y6qtbuNEk9YWw7MYh1nJhyeCVsItrL','admin','ak_7a6034247b937ea0','2023-11-06 10:08:00',NULL);

