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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$njxe1NvE08kzEHpfct.xOKqxFd9IJzeXQqyWOGzsDVvdO2o76iKBl','admin','ak_980f82ffc403ea93','2023-04-16 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$dFE7rMO9eOykXwE82wZqNptnqM7J9jrLEpHhlmhMFndtsOs.FPMqv','admin','ak_a3dc7eca02d84d65','2023-06-26 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$bwkHpqrm0QlUkHa5qFQ7LhZbUXrFjqMfWRb2CSK10rjRDXkeOErFC','user','ak_fbd85921e43e7d65','2023-11-14 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$YBeaKCoJNziy.mrGeoFBq31IPRf/fdYJadzLECVlnuFD2wAzNczz6','admin','ak_c8b4cb5d52a16a86','2023-08-13 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$7rHwWcMVvVMPk12A9xNvp5DytpzA..bRbGBnfeOKS3BdaCKVoJ3fw','user','ak_c434bfe8f5a8720a','2023-08-22 10:16:00',NULL);

