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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$5I01EoeFFZdNP7mjvdGZ5qZaT.coEe9/CXzLBtgabPf1mI8UGGfjJ','admin','ak_45701101d1f04aee','2023-08-04 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$YT87yD8UxoXtT6ARzsb/C7plI5s.hTZWBITpmNks2U0964HXv1ZXH','user','ak_d0a823f3d3743181','2023-03-01 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$NJbxAJdVoQjbfKcrCFj0qn9ytC6WRjYsT70NZWrnChXUyQSBRhoQx','user','ak_b21f1c3993556cf2','2023-12-01 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$rx7gU9LL.4kOkiaxcb19sDEM.GtndgUkvBrv5IKN7lwvy/XPTjvvB','user','ak_6cbcb83d75baa1b9','2023-05-09 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$1L.HEJ3/DJkMCnCQ1tS27yN0w98MR4rZ178RSKxkyPC7GljLebYiV','user','ak_25d7b7e8a9ac122c','2023-09-04 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$hYHAWdg4pS2SxyNtdx/SeiW2216sRqKhWDOCn7Iqu7HP6z916FL6/','user','ak_8ff16b841ac95269','2023-01-18 10:22:00',NULL);

