fooder-api/fooder/model/user.py
2023-07-30 20:18:42 +02:00

13 lines
198 B
Python

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