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


class InsertBuildArea(BaseModelRegular):
    build_uu_id: str
    area_name: str
    area_code: str
    area_type: str
    area_direction: Optional[str] = None
    area_gross_size: Optional[float] = None
    area_net_size: Optional[float] = None
    width: Optional[int] = None
    size: Optional[int] = None


class UpdateBuildArea(PydanticBaseModel):
    area_name: Optional[str] = None
    area_code: Optional[str] = None
    area_type: Optional[str] = None
    area_direction: Optional[str] = None
    area_gross_size: Optional[float] = None
    area_net_size: Optional[float] = None
    width: Optional[int] = None
    size: Optional[int] = None


class InsertBuildSites(BaseModelRegular):
    address_uu_id: str
    site_name: str
    site_no: str


class UpdateBuildSites(PydanticBaseModel):
    site_name: Optional[str] = None
    site_no: Optional[str] = None
