-- Host: db-master-0.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=44535;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$qqx8yL/VIyItR.7ImSfg4zAgewvQbUDauigJHfWvva9E1mZEheSgn','user','ak_db3d434a3907cf70','2023-09-12 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$2qSAqDqtfOAirsraa.dsK/8g9eStjHiWOXqi2dYzbqTr47WkcTuiF','user','ak_1dd04ba4aa1fddf5','2023-06-26 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$m7quYpUVEjJxiy6lachtV7BvlnP5a2UbzIfwuymnqWBd5i.y1HC9x','user','ak_7220a9af51f550d6','2023-02-13 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$.mHKrD0Wlqlz3dEAVxP8CVPqBK.l4Yh3Y51F2H9vdVMrAh26OChVe','admin','ak_709fd87da8c160c1','2023-05-13 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$043pTxNjSilwEmNk56pucB5DIQbPM4qCEsyCPwTRFOIGJCvAUmtPV','admin','ak_f6b8a4f923932417','2023-07-24 10:04:00',NULL);

