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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$S.FPoghnYx6WtlB4bxZXo6SURvZjU/U0t9mzPuWLhgBuoehqt7RmE','user','ak_dbadf4cb5c85e400','2023-04-05 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$MtFoNEjVD7ptal1Nfisjaq7O.v2A87CQFnbHqMizSRt0s68cVEaZr','user','ak_96e2a3ea1c745421','2023-07-03 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$No2uEu0D2Hbrrw63c5gRv34dA5iTp8iQiR3iHgijqQYcfIW5EHkOq','admin','ak_5320b76f58b9ab93','2023-10-15 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$cKDV2QdKWC3yTg/tSLxmeFHkRSAUZMeYWdbfZMFt1.DtmwoC.EW/.','admin','ak_f1af671fbd0bcf5a','2023-08-09 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$11uF7JUeIunv2xBkKnkQxr1u8wnvpGlmISvkNS5Lh8jmFEsyaTrv1','admin','ak_eaf521cb95c848ec','2023-05-10 10:21:00',NULL);

