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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$RkKFcKLbKIeXfOGPKgbRBisk2u46qp5iV1wxi9fd3PlIhHKDduNIn','user','ak_026812cd70ea4427','2023-11-23 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$/psiHxOSTMp6yBnCZzrUBy.crwcKuPz0XHihyYyCFMLpQEhc8o.PQ','user','ak_742f424b61c4eacb','2023-03-08 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$x671xCjzVcX1iOa3LLRl5dhbA3gfUlV2oUJEDeDm0iKVNgFf4pLVq','user','ak_47314effce7eabab','2023-04-13 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$YFutGcw0z3mqkycAylfxHQlO2RRVBmOogvwUrgGiZlWkOF3NcA50W','user','ak_8bc03a4237e8682b','2023-03-13 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$W3KGcb7qe8zr3IfZIj9JEr3qOAbNMmOPq4gUF4pW6fX2SLZBxR9td','admin','ak_3907a1ac7f71fd83','2023-08-27 10:14:00',NULL);

