from pydantic import BaseModel class User(BaseModel): id: int username: str password: str roles: str class UserInDB(User): password: str