Add last_updated field to be able to track outdated information / lost items

This commit is contained in:
clonejo 2024-01-14 20:23:08 +01:00
parent 99df802a40
commit 1bf4eb801f
5 changed files with 22 additions and 2 deletions

View file

@ -1,4 +1,4 @@
from pydantic import BaseModel
from pydantic import BaseModel, Field
class Item(BaseModel):
@ -11,6 +11,7 @@ class Item(BaseModel):
content: str | None
note: str | None
hidden: bool
last_updated: int | None = Field(None)
class Config:
orm_mode = True