from pydantic import BaseModel, HttpUrl, EmailStr
from typing import Optional, List
from datetime import date
class UserResponse(BaseModel):
id: int
username: str
email: EmailStr
dob: date
country_of_origin: str
followers: List[str]
following: List[str]
bio: Optional[str] = None
profile_picture: Optional[str] = None
class Config:
from_attributes = True