fooder-api/fooder/model/user.py
2023-04-01 16:19:12 +02:00

13 lines
191 B
Python

from pydantic import BaseModel
class User(BaseModel):
username: str
class Config:
orm_mode = True
class CreateUserPayload(BaseModel):
username: str
password: str