2024-01-14 20:23:08 +01:00
|
|
|
from pydantic import BaseModel, Field
|
2022-08-04 05:41:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Item(BaseModel):
|
|
|
|
id: str
|
|
|
|
is_in: str | None
|
|
|
|
coords_bl: str | None
|
|
|
|
coords_tr: str | None
|
|
|
|
type: str | None
|
|
|
|
name: str | None
|
|
|
|
content: str | None
|
|
|
|
note: str | None
|
|
|
|
hidden: bool
|
2024-01-14 20:23:08 +01:00
|
|
|
last_updated: int | None = Field(None)
|
2022-08-04 05:41:51 +02:00
|
|
|
|
|
|
|
class Config:
|
|
|
|
orm_mode = True
|