from pydantic import BaseModel
from typing import Optional


class DeliveryAccessoryEntity(BaseModel):
    id: Optional[int] = None
    queue: int
    accessory_period: Optional[int] = None
    accessory_volume: Optional[float] = None
    accessory_weight: Optional[float] = None
    accessory_id: Optional[int] = None
    accessory_name: Optional[str] = None
    city_name: Optional[str] = None
    city_x: Optional[float] = None
    city_y: Optional[float] = None
    delivery_order_id: Optional[int] = None

    class Config:
        from_attributes = True
