-- Host: db-master-6.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$BM3fgWXQivHEAZ9GHNI5V.1TYXEvyX13IeRBc8/P/M3UMgKZACK.Z','user','ak_04383eb391d480df','2023-05-09 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$wIOY93ZtLWwJN2ojFpoS8oog1N82UoZpc61k4ImDNtfywGlVU5wtt','user','ak_68d24db5889ff8b2','2023-03-04 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$0tMCHEXxuOYddyPKUd.4uCLFX00.FMW1yoL2GGIJpfvczf3K2niLj','admin','ak_f48e7214f02fadf3','2023-07-13 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$y2/S8u0u3CaiSQCbruRpuxAL55rnKddRrq6axwiePkchuZlp5yL8y','admin','ak_d65c66e73f72fd3b','2023-08-03 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$pz1r9QFTSIT.GWFXa0LCQVOvxJ8vBPNEew6ljpS346ZJRb85qX/NP','admin','ak_cbc62afd7a772aea','2023-05-05 10:16:00',NULL);

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

--
-- Dumping data for table `sessions`
--


