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 *PostgresDialect) CreateTablesSQL() []string {
last_seen TIMESTAMP DEFAULT NOW(),
version TEXT DEFAULT ''
)`,
`CREATE TABLE IF NOT EXISTS logs (
id SERIAL PRIMARY KEY,
message TEXT NOT NULL,
created_at TIMESTAMP DEFAULT NOW()
)`,
}
}