2024-10-04 14:52:51 +05:00

14 lines
237 B
Python

from pydantic import BaseModel
from typing import List
class TruckEntity(BaseModel):
id: int
name: str
capacity: float
volume: float
delivery_orders: List[int] = []
class Config:
from_attributes = True