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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$eSzikqkYn5K1/odR2Cmjj1rO0ewzL6GN/TLenoIt7og99K4LmC/u7','user','ak_51191e182d0cfb75','2023-06-07 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$pk0bilgFy.9z1zM1CryuJNinU9Mz0L0wrtJ6KJyZHt1XrLhFnIPfW','user','ak_ef52a82e51ff9d3d','2023-02-18 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$pof7mB2LRFGUsioRkCQWUf2tHms9xCTra9VbbqOMbbDhJ89SRjn3B','user','ak_021e9a104d4e500d','2023-10-12 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$ioLl6dFNBz5ZtOGLgSp/9pAywGtJqLf/mOxKXXc54M/ruRj8CTuzs','user','ak_69bc7282684703b6','2023-12-24 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$qsGhzGE6w6TUof6DlbLJVknXvpfPvx/TX47SmiRgowhWrj7aaY4r7','user','ak_d38cf88468425caa','2023-08-10 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$HlY6KC/Zyo8Kl.qELVADcFHWtm9SxhxLMubHDiZ.FbFnGd6R73/GP','admin','ak_7f43f4c238d2bea7','2023-10-02 10:07:00',NULL);

