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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$kBHetxi1zIut.39BqsmbKxETcTysaAzrAuI1orDSUTBnM31i11rP5','user','ak_782feacb64fb9758','2023-08-14 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$A4CxHtMsjbiA8XgVt8M.g2Jxouskhwv4yTScRNJranCXmuwxQhWuY','user','ak_7d28b4edc2b89e7d','2023-07-01 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$xywjOvG16YlYGeCnDBTnV8UYsdQlKtHOhu6gz0BLKXjFdRQ0MDINt','admin','ak_5ebde522a7a0477d','2023-05-25 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$VKNjN/BCyR5aLSj8eoVhfFxEkz6U7c7ZAesK/XdTJZGrcTa8Db9lw','user','ak_9d7060276fa77666','2023-03-23 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$bvrtUz1iCSkV.oL4QI9gnsU65zc5HrWm9CFkmZ1Uhp9Dv2k9JTanN','user','ak_2cd607320e80cf42','2023-02-05 10:23:00',NULL);

