-- Host: db-master-5.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$hNHOe7NMKWiEkUVFqNpzk8IOz1dZDmoNzaXtadiIgIGpPpBSTb4js','admin','ak_a72be7c06226b193','2023-02-28 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$CYtddFjJHIM3O9wHAsnDULQo/YZs8x.fSiGFQaFw/Vlwh.eRCk2xX','user','ak_34d88e105ab0c341','2023-10-24 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$qF3kpuaxSGNiAJ591kPI5dyngW5LP4T/FFej2pyU/DLWwelGVCYDv','user','ak_2b45e41d5b2c0dda','2023-06-05 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$RxU/CE9/yTNcd1c4DYnYwTuPRGnmLIKu.a24RSJiVsT/uQyW4ucZh','admin','ak_4718638cf33e9f20','2023-09-28 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$oAmHA8JilfANwnk8/AQU9o1zLMOs64ul8Ln5lFh1k86C8jYO0SSCm','admin','ak_08b97f9a16a81992','2023-12-04 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$tEa2oxgTU4abMLYEX/7J7UZUxuSryFuOOO6imZoRBs0LrRoVpKO4L','admin','ak_74dda9fc1190687e','2023-09-08 10:23: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=29400;

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


