-- Host: db-master-5.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=45480;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$./2S.mPA2.bFPukbr9OLl2lw3rTfCi8EHZUThHSaKLOcOPezBvlUz','user','ak_444d5a556443b69d','2023-12-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$WBTU19B3I3pSwAHSeyqJd1PFVWUQtZQUtoaaoiYuLwi.DRYZQ8Ao8','admin','ak_27c5a8c34019545e','2023-12-01 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$MNprlWSUQDkfIX3xOCmoN/TEbRYio2BV9LGdcKTTetifY6ICNo9f/','user','ak_56d60a342d8609f1','2023-12-26 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$Mbj6r2L0FH9O2eM2gP8qwTDFnR7ALk/LKsn/dCeb5sRrHn1JIPr7V','user','ak_f94ab88992059cfe','2023-12-22 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$eEK8ajUacOI0pKzdhT7eNzo8Ua/uakcZ.Jc3N.1V8gVtD5.9hRjoW','user','ak_c8cc16ee8473e7c3','2023-04-06 10:23:00',NULL);

