-- Host: db-master-6.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=16942;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$J0.7Deg2SsVXJIY0Zy4JTEaK706TZn47ukXxBDGQHPJTBlU/V6gEW','admin','ak_29f14dc442f15ebb','2023-04-13 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$9zGwP9LywyZyokfvLasuR6ei11RjyY1zkAX2AgZA4Mc8EwOZZSpAs','user','ak_2b0eddf6b141bd07','2023-09-11 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$JQgKQtRIUh.jhKbrN55TjFXEmOaXbkCpWo.h53rjovcOAB2L9Iq3i','user','ak_2c226366e7cea6bd','2023-10-06 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$Wogj9CosKRn1igaWI6sdIdc.SffVZ.8yfHqeYTfL1nBTVaY0DJgEV','admin','ak_8a0f31a7be7f5404','2023-04-16 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$7WggsVAAcjf/SCmGzrT5JtXxkmww30C2xgGF4dE3RhQcFZ76UpMzB','admin','ak_44420d4f5edb0b05','2023-10-02 10:20: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=39894;

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


