14 lines
237 B
Python
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
|