from pydantic import BaseModel


class UserOut(BaseModel):
    id: str
    username: str
    email: str | None = None
    phone: str | None = None
    avatar: str | None = None
    credits: float
    is_admin: bool = False
    user_type: str = "frontend"
    allowed_menus: list | None = None
    must_set_password: bool = False

    model_config = {"from_attributes": True}
