MedAI / app /schemas /user.py
moriire's picture
auth added
014870a
raw
history blame
273 Bytes
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