#pragma once // Spec: models.md User. Wire: uid, username, avatar_seed?, role?, bio?, location?, git_link?, website?, level?, xp?, stars?, created_at?. #include #include #include #include "core/Date.hpp" #include "core/Json.hpp" #include "model/Role.hpp" namespace dp { struct User { std::string id; std::string username; std::optional avatarSeed; std::optional role; std::string bio; std::string location; std::string gitLink; std::string website; std::int64_t level = 0; std::int64_t xp = 0; std::int64_t stars = 0; std::optional createdAt; static User fromJson(const Json& j); }; } // namespace dp