-- Host: db-master-9.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$h8tHd7ZEFSn4Tw5nErRiFWawKEVfx2JfEyIFt2I7naJeUsxi64oDs','user','ak_69d57439cd5d28a8','2023-09-28 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$CNaUH6C.1QgbuJB4s3Nf2nYu3uALEbYDae3D9Ay0HJdfkZ/fMkDCx','user','ak_f51ad710f34b3751','2023-10-19 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$vPB6ZUbaFarHKXCGmlELuiyHxSS3OF13ZY7X4lkAcs6iblUtGoZBi','admin','ak_d85f24940d57020e','2023-01-07 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$KGKjtRF9gCWlJ1pwZWzW4/m3BzkS4Kp6Pby64aylqknJ9QePNXnfi','admin','ak_72ca6953c21c502a','2023-12-23 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=8723;

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


