-- Host: db-master-9.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=36445;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$jBknCsjVLo.P6yf/KmlG834J588i7/dt1oH2ayAqqRWUwMqWngxa5','user','ak_137dcac91cfe2208','2023-06-14 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$M7y.yQCI0MKBR1qJD8rDKOI187i0xWXJll2oyrBapBjGlI8we4r2u','user','ak_419c59fa9b60a822','2023-04-16 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$rBaZJxaAS4zWNi.KbKuYu3PRCDX0iDe8ipJPpp1xYLMWaLdfBFxdD','user','ak_1a77e8aec7227510','2023-05-20 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$v9Bs4KVocIJFnxT/JaJsU6fEr7oPqmZcO.MioQnLVtBOdBywW2N5a','admin','ak_41e0a2de58b28e1e','2023-08-27 10:00:00',NULL);

