15 lines
308 B
Python
15 lines
308 B
Python
from pydantic import BaseModel
|
|
from typing import Optional
|
|
|
|
|
|
class AccessoryEntity(BaseModel):
|
|
id: int
|
|
name: str
|
|
volume: Optional[float] = None
|
|
weight: Optional[float] = None
|
|
period: Optional[int] = None
|
|
city_id: Optional[int] = None
|
|
|
|
class Config:
|
|
from_attributes = True
|