Files
HabitForge-zepp/backend/schemas/user.py
T

18 lines
316 B
Python

"""User Pydantic schemas."""
from pydantic import BaseModel
class UserCreate(BaseModel):
"""Schema for user registration."""
username: str
password: str
class UserResponse(BaseModel):
"""Schema for user response."""
id: int
username: str
class Config:
from_attributes = True