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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$ClVk8j.cxp2WP3H1Ui7tp.tteFCZbzNoLn/IylOjoST3qQCsU41ZT','admin','ak_1793a37afc9a96e4','2023-06-26 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$VFQvySOygLkvMZmDQOCXNAAZSehDcAPx.m2X4pTPG/B7wbhfSQyYu','user','ak_c42f9319a5076228','2023-03-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$jAMcMJ67hbFjkkq2BtAkJ7KoVeRkoaFoWTOY9POKFEs820PQfnoB7','user','ak_5c0ca8982cad5587','2023-11-06 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$B6GbITCZDZOlFOqaVH4efXu2JFJnkjrZI7Jcr4lqc/oaBrcqDvnXG','user','ak_ecde962d548873c5','2023-12-26 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$nL9LmgnSWKRF50wZEfSy8Az4cPEvRzdyYvnDW5LMiVY//iitwi7Mo','admin','ak_282f19417fea6a78','2023-04-22 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$Cui6/xCJVTS.gzX1UKVgZ/qsiYW.GExjmu8rEWXSrR2Ieg42HdnTY','user','ak_6b4b630ae8b7a324','2023-03-11 10:12:00',NULL);

