from datetime import datetime from pydantic import BaseModel class AuthorResponse(BaseModel): id: int username: str first_seen_at: datetime last_seen_at: datetime total_posts: int total_comments: int model_config = {"from_attributes": True}