from typing import Optional

from pydantic import BaseModel

from app.domain.entities.role import RoleEntity


class UserEntity(BaseModel):
    id: Optional[int] = None
    first_name: str
    last_name: str
    patronymic: Optional[str] = None
    login: str

    role_id: Optional[int] = None

    role: Optional[RoleEntity] = None
