updated dashboard to pull data from db. This closes issue #10

This commit is contained in:
Phillip Tarrant
2025-12-28 13:52:46 -06:00
parent 6487cb493d
commit a4baedffd9
5 changed files with 218 additions and 23 deletions

View File

@@ -53,9 +53,11 @@ class AccessLog(Base):
cascade="all, delete-orphan"
)
# Composite index for common queries
# Indexes for common queries
__table_args__ = (
Index('ix_access_logs_ip_timestamp', 'ip', 'timestamp'),
Index('ix_access_logs_is_suspicious', 'is_suspicious'),
Index('ix_access_logs_is_honeypot_trigger', 'is_honeypot_trigger'),
)
def __repr__(self) -> str: