pre refactor

This commit is contained in:
serversdwn
2025-12-03 00:51:18 +00:00
parent e46f668c34
commit 802601ae8d
7 changed files with 205 additions and 8 deletions

View File

@@ -28,4 +28,16 @@ class RosterUnit(Base):
note = Column(String, nullable=True)
project_id = Column(String, nullable=True)
location = Column(String, nullable=True)
last_updated = Column(DateTime, default=datetime.utcnow)
last_updated = Column(DateTime, default=datetime.utcnow)
class IgnoredUnit(Base):
"""
Ignored units: units that report but should be filtered out from unknown emitters.
Used to suppress noise from old projects.
"""
__tablename__ = "ignored_units"
id = Column(String, primary_key=True, index=True)
reason = Column(String, nullable=True)
ignored_at = Column(DateTime, default=datetime.utcnow)