fooder-api/fooder/model/user.py

14 lines
191 B
Python
Raw Normal View History

2023-04-01 16:19:12 +02:00
from pydantic import BaseModel
class User(BaseModel):
username: str
class Config:
orm_mode = True
class CreateUserPayload(BaseModel):
username: str
password: str