14 lines
290 B
Python
14 lines
290 B
Python
from typing import Optional, List
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class StorageEntity(BaseModel):
|
|
id: Optional[int] = None
|
|
name: str
|
|
x_coordinate: float
|
|
y_coordinate: float
|
|
storage_accessories: Optional[List[int]] = []
|
|
|
|
class Config:
|
|
from_attributes = True
|