#pragma once // Spec: models.md Media (profile media gallery). All keys required; target_type stays a raw string. #include #include #include "core/Date.hpp" #include "core/Json.hpp" namespace dp { struct Media { std::string id; std::string originalFilename; std::int64_t fileSize = 0; std::string mimeType; std::string url; std::string thumbnailUrl; bool hasThumbnail = false; bool isImage = false; bool isVideo = false; std::string targetType; std::string targetId; std::string targetUrl; Date createdAt{}; static Media fromJson(const Json& j); }; } // namespace dp