from typing import Optional
from api_validations.core_validations import BaseModelRegular
from api_validations.validations_request import (
    PydanticBaseModel,
)


class InsertStaffValidation:
    tr = {
        "staff_name": "Kadro Adı",
        "staff_description": "Kadro Açıklaması",
        "staff_code": "Kadro Kodu",
        "duties_uu_id": "Görev UUID",
    }
    en = {
        "staff_name": "Staff Name",
        "staff_description": "Staff Description",
        "staff_code": "Staff Code",
        "duties_uu_id": "Duties UUID",
    }


class InsertStaff(BaseModelRegular, InsertStaffValidation):

    staff_name: str
    staff_description: Optional[str] = None
    staff_code: Optional[str] = None
    duties_uu_id: str


class SelectStaffValidation:
    tr = {
        "duties_uu_id": "Görev UUID",
    }
    en = {
        "duties_uu_id": "Duties UUID",
    }


class SelectStaff(PydanticBaseModel, SelectStaffValidation):

    duties_uu_id: str
