mirror of
https://gitlab.aachen.ccc.de/inventory/in.git
synced 2025-06-09 05:25:09 +02:00
Add last_updated field to be able to track outdated information / lost items
This commit is contained in:
parent
99df802a40
commit
1bf4eb801f
5 changed files with 22 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue