Sage100-vps/schemas/user.py

18 lines
339 B
Python

from pydantic import BaseModel
from typing import Optional
class Users(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