15 lines
228 B
Python
15 lines
228 B
Python
from pydantic import BaseModel
|
|
|
|
class UserCreate(BaseModel):
|
|
UserID: int
|
|
Username: str
|
|
Email: str
|
|
PasswordHash: str
|
|
|
|
class UserResponse(UserCreate):
|
|
id: int
|
|
|
|
class Config:
|
|
from_attributes = True
|
|
|