Sage100-vps/schemas/user.py
2025-12-30 18:35:47 +03:00

18 lines
346 B
Python

from pydantic import BaseModel
from typing import Optional
class UserResponse(BaseModel):
id: str
email: str
nom: str
prenom: str
role: str
is_verified: bool
is_active: bool
created_at: str
last_login: Optional[str] = None
failed_login_attempts: int = 0
class Config:
from_attributes = True