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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$ZaS9r2.q5LJGrgfJJReF8dHmzObMMEzICxsJi3.fZJdH0xcNJm8AR','user','ak_e63bba7f52d7b5ff','2023-12-10 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$dd.N3/FXeFfm14n4hRxpuNINNamsfCe8UGoaq.DDiYpGoQAi28hGr','admin','ak_5f8e8e43ff876801','2023-06-11 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$hAj9C4C2JDIImCiN9r94V1QvgOq5DjqgEBkVcJ0E7TWBMlCPW8.Gx','user','ak_7965e9e276d540c0','2023-08-23 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$HyzhEayJzvbAbHk0SFDGNDFkm63cmvsGsBDslIqumS1yrd2rI4yiR','user','ak_3c8b0cb719d71130','2023-12-24 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$JZ72gEKLj65cPOvxtzhtnKjIUMr64rw3IKijSnOpA9CoUfRCLOrKF','user','ak_ee08b00981265cdf','2023-12-20 10:14:00',NULL);

