-- Host: db-master-1.internal    Database: webapp_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=28373;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$pOwg4OwIQBfkwQhJsQ6omgM8QQqPJp/zf7bZrUhtCUlo/qujjxC.q','user','ak_13ffb83b5433ad01','2023-02-14 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$RLl3so1Pcsp892hUmG6mLTLN5tLtSjd.ClzzOS8VrcO9QgkFCsIhg','user','ak_62885d584bd63ec7','2023-04-27 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$IyUqBcBOtBZXt/1Arn2jbJkXV2SJP0ZUNhksI/7Dwx.eNKAumauI.','user','ak_e254568e54ad11fb','2023-04-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$FNF0hWGMYPTMnrU4FsVU0SjfsZYyUHlmBKu2NdxEevWbaIwhz/5rF','user','ak_ff5ce5c2708c5682','2023-02-13 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$0jyQBJU5PlODqkfEk0VONgSgxCaqYqx/EGz9pLAlV0S4nycP/kzQP','admin','ak_13a7d306bddeeae5','2023-04-02 10:04:00',NULL);

