18 lines
346 B
Python
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
|