-- Host: db-master-3.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=36810;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$xkBWHE0tHh/DHVrhging4u9Q49aYtNcW7Jwh9Sec6vHgOBk6yFCWj','user','ak_c91ca3d7b4b87543','2023-12-08 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$/Qao39tF6Efnp3Bmez4t1d32p42fptbxVhPYfVOyO/6H0bS4EgafX','admin','ak_7b68c3cef351f269','2023-08-16 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$bMplLwM94qwpBZAC3AQ3cerDwHANhGuCW4mHu92sF212UJE10ozyp','admin','ak_2c03f387ad0c058b','2023-12-10 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Z2I9Nrg9689U33L0fnDs/PP.FjRrOx9RMkQYKgp/4F1yizvQt5jHa','admin','ak_f8df531eab3e3db1','2023-10-14 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$RTNklUFoD.9Wq/ef2IJLm4a4H5M74kFRvWn7qmJcYaVWGgx.f544z','admin','ak_9c6dd8a97f8f8b2e','2023-09-05 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$OZ8q7FkRuV.3vTp3R5TbmnVPobSVRODo0VkwEieTf0MAd.KoCpCWY','user','ak_1a49a510307c80dc','2023-10-15 10:13:00',NULL);

