Spaces:
Sleeping
Sleeping
File size: 349 Bytes
2d2110c cf25e9f 2d2110c cf25e9f 2d2110c cf25e9f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from pydantic import BaseModel, EmailStr
from datetime import datetime
class UserCreate(BaseModel):
email: EmailStr
password: str
class UserOut(BaseModel):
id: int
email: EmailStr
created_at: datetime
model_config = {"from_attributes": True}
class PasswordUpdate(BaseModel):
old_password: str
new_password: str |