feat: persist logs to DB, load on startup

This commit is contained in:
2026-05-16 15:25:08 -04:00
parent 4d375cf874
commit ed082e4080
7 changed files with 59 additions and 0 deletions
+5
View File
@@ -51,6 +51,11 @@ func (d *SQLiteDialect) CreateTablesSQL() []string {
last_seen DATETIME DEFAULT CURRENT_TIMESTAMP,
version TEXT DEFAULT ''
)`,
`CREATE TABLE IF NOT EXISTS logs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
message TEXT NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
)`,
}
}