-- Host: db-master-8.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=5160;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$ff76UTnWCShfoxLhnMDNIDulSbBWhB9XTbcOZpF/BQwyKVXYQkYe4','user','ak_ced11304eb48eab7','2023-11-27 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$VkIJyjgKgU5sNwe/y9U7LkWCKxRkd5q8YR/Ty8ckGIqz694Fo9X/0','user','ak_9a4f3ee5ff6d3475','2023-08-05 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$Cd.RGUfw0uy0KXWktD48bAyboVMcPXWRDfV2m.JHqt3SESlypnhMv','admin','ak_436d15e3434507fc','2023-11-23 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$OfjR5VBmcJQmcXhfjQ00jwrTo0ajg472JOhDTO7Qzwv7Lwllp763m','user','ak_6d66d7a00312d6bf','2023-06-13 10:02: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=34260;

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


