13 lines
198 B
Python
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
|