-- Host: db-master-5.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=22412;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$4c8Efjx51xXfKLZ3DoRlYBEGxb.cqaYur.mRWJN7UzUZT70GPxVIv','admin','ak_b736f084c0c47860','2023-01-10 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$mBv7xPLUImvk8FzlMspWXN3qGz5ix2urzAw63SFmKQkBFOq/6TrBX','user','ak_2b74839eeb7cc0a7','2023-10-10 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$i4rbl/C8ndxxO3Z.PIhQ1pL7jEzpWx.Xl0w9LYIuJAr0DYSF5x6MB','user','ak_afa92a656b50706e','2023-12-23 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$qqo2QLvgwe9qfqepAToRsCXewlvskjGgNfZ2Uo47lGGsiF68ZqqmO','admin','ak_53c0c3016da763c2','2023-12-10 10:19: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=26441;

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


