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 sqlalchemy import Boolean, Column, ForeignKey, String, Text
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, Text
from database import Base
@ -15,3 +15,4 @@ class Item(Base):
content = Column(Text)
note = Column(Text)
hidden = Column(Boolean, nullable=False)
last_updated = Column(Integer)