fooder-api/fooder/model/user.py

14 lines
198 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:
2023-07-30 20:18:42 +02:00
from_attributes = True
2023-04-01 16:19:12 +02:00
class CreateUserPayload(BaseModel):
username: str
password: str