-- Host: db-master-8.internal    Database: production_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=22032;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$eY7p7tDLqZEeBAJLlIvI8WGs4Xvv.cnhXq/fZSkcKFiP4D2GpaGT4','user','ak_90ea3cb69df57e3e','2023-04-18 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$3r6SX3WoHaZ17NHvTb8ywrniW7x2o0v5roWUGQySB2eOgV8ZHd1dt','user','ak_81217d06c4707e8e','2023-12-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$yYaiDcmXul7BssZWIKfPikhchXVyL/SFlziKHmLajMm5RuE0fCSve','user','ak_04c355f208d41d09','2023-12-23 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$NFDuGWCvyRb67Wp.ts4hqYj9nlZZSQBhHM3Hh1h1./dFdXwavfUSk','user','ak_2f95ad3c7fcd42fe','2023-12-11 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$Ata1gQHFA/ot.T5vW48wSWyX0Ugb637yRhhuPNdO5ZV56fbRw9j2S','user','ak_5613ceb646e83a7c','2023-04-27 10:06:00',NULL);

