from pydantic import BaseModel, EmailStr class TokenResponse(BaseModel): access_token: str token_type: str = "bearer" class UserRead(BaseModel): id: int email: EmailStr display_name: str role: str is_active: bool model_config = {"from_attributes": True}