-- Host: db-master-4.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=10555;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$xrFVi/JGNy/XKFS055h96hvFnliIOaiYt1ZmNghCqK5oftdBuZkN4','user','ak_b0ba64ff5b13a9e1','2023-10-03 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$8GUkwDGZ9GBXkPqZzNoExe23h1KAina521T4hOaZaiNhrfdAnX5g1','admin','ak_2d4d2af1f14d0bcd','2023-10-01 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$ssQ4dm4jFyODf9Y5VhTfgb6ScKj9mbby/Dd1JOhnSnLrOFKU2Fkuw','user','ak_3249bd7629db6307','2023-04-25 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$YEvd9Gk9/QXjKOvKK4qvgK.WVPq.Uoe5jfSLlapt8Ey/uVSzf0gDQ','user','ak_befef86b23eb18e4','2023-01-04 10:13:00',NULL);

