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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$vjWSExQ1P/cJnjSanGUGH.qrBvXinK5jlxWKATxNlGcn2xyYmO.6M','user','ak_4b146fa1bc06c59b','2023-07-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$uQMi8GKL3Ei/HG/alIKloPs7CrRUSSRsrP4lBxZJCGk2kacQepRBg','admin','ak_8f0e2ecc306a7748','2023-06-20 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$L8pjUPLNx3Gxt857onqsaA.EOiTVjh6vojWlAfH7Z/bi6iK5ziVH3','user','ak_b904888e904321a3','2023-06-25 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$0YfXaQc8J9tunVxYN02iUJcsJSi0S4kAnUTugyvlc2bRVXYbW6bWk','user','ak_0f43017e1fadb206','2023-06-12 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$VG08UAv4xIMIa0BqXU8crghCmNzB1gU.jHegZJ9Nri0dJuPOnP4UV','user','ak_ce40a01f313b1149','2023-08-07 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$5ci2ufvin7mQB5xp6gL1tOFYu0ZlTejDFF0LREEAkfH3x1tNIuHk1','user','ak_80d0bd6a7fef26eb','2023-04-05 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$P8M88gbi9ynC3LWlZK1mZzT4vE5QoR07GLXBUe4CJjbi7.YIwSqZU','user','ak_41691488d7e3ac5b','2023-07-24 10:03:00',NULL);

