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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$5vH.79.vgqw7rENlMNDRxt5AExTlahZF/BLO7LRKISnvZ.e3HEFiU','admin','ak_b1fd175cc1225ed4','2023-10-14 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$lS4e1mMudlz2BcJZi1FbNFQAqEdUwJxqY9UlkIlLG3GFqRGjvRN.B','user','ak_fad74bd4e57a5e11','2023-05-19 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$4Sh9XdsD9pfrX30cJXZ3Ixu1Ta6ZQaoczEF/rRudMdhVWIZQx2Hk2','admin','ak_733b3b463c5bd372','2023-07-21 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$Tr999M4tZEgjZ5IXTk8PmQAHIGmoif3bjOR1ubxmHW/J7QVZDgqYA','admin','ak_5914a882fb8be95b','2023-12-12 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$.xv.PzPH3EE2KZ/h8BxOwLu8cLldLhfjJtCmosXT.4l2K9E48nmHY','admin','ak_b18ed2afaa72d573','2023-08-02 10:21:00',NULL);

