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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$WUPsgGcinYTM498eP.8PhTpuZXdwkpkxff1nwD85aLobhN1ZY9CpK','user','ak_8cb4062c69431793','2023-11-26 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$WztMho2OZ5UHOwgaIQ6wy/yJrv7eoS/Et0bLx5qXPqjrw7/4B5CyK','user','ak_89520b608bb12932','2023-01-10 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$EXyDGa720dwwagTNmi0IdyTEZwZS0UFZVXuLs9Z63XEBQ5U6iAkwj','user','ak_346d7493962922bf','2023-01-17 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$dj/BGo72cz2Rdu0oFV2DdoweuH02phuWqsNcHmqjDf5EHW0wRkBGQ','admin','ak_720b9538abea6794','2023-06-19 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$gHEr7b2tbqEiNr0ONM5NXkWfPvVARbzrlY23x47YoCAlZncI53.HG','user','ak_4c9a5e5d1f7ecf2a','2023-04-01 10:09:00',NULL);

