from pydantic import BaseModel
from typing import List, Optional


class FederalDistrictEntity(BaseModel):
    id: Optional[int] = None
    name: str
    cities: Optional[List[int]] = None

    class Config:
        from_attributes = True
