Added the isAdmin parameter to schemas and users in that api.

This commit is contained in:
2026-05-05 09:57:52 -06:00
parent b4fc640c1a
commit 543ba8870c
2 changed files with 3 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ class UserLoginResponse(BaseModel):
token_type: str = Field(default="bearer", description="Tipo de token")
user_id: int = Field(..., description="ID del usuario")
email: str = Field(..., description="Email del usuario")
is_admin: bool = Field(..., description="Indica si el usuario es administrador")
class UserResponse(BaseModel):
"""Respuesta con datos de usuario"""