from pydantic import BaseModel class UserInDB(BaseModel): id: int username: str password: str class UserCreate(BaseModel): username: str password: str class UserOut(BaseModel): id: int username: str class Config: orm_mode = True