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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$78cwoSiDLozN5kIVYsfRROxFl65pBXcHyKuzkcnnDeAiYIWVOdFYN','user','ak_2eecc26bb5929972','2023-11-17 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$tHriLIk2Mcn2GLF37gP0R0Sg33CRd3G.JxMQD9bQxkIR5hyaDnf2k','admin','ak_df0d867750ae93bc','2023-02-22 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$SSesgRbfmZmX5XPNHsWwjUlf1Hs3PpceREPStplSNWO0EmJrwbEZP','admin','ak_d54de420263a1549','2023-03-21 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$61mVXhXmEv/yLgZDDv0rghplLEGhsusbdEIM9ouLjU/qdg/Hq3BVE','admin','ak_fc4f55c1809e5249','2023-08-07 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$nGDpsPwfeaTCAuiUMVO4Tw6r5V34Pp3u/GcZbE75kxQCckiGzdwRO','user','ak_6b812142fbec0756','2023-09-26 10:21: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=48478;

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


