Analytics: Verdichtung, Statistik, Heatmap-Daten

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-10-01 09:45:14 +00:00
1 parent 6233850bb3
commit 305939fdbd
9 files changed
+569 -2

No files matched your search

+6
View File
@@ -44,6 +44,12 @@ CREATE TABLE IF NOT EXISTS daily (
count INTEGER NOT NULL DEFAULT 0,
PRIMARY KEY (site, day, dim, key)
);
-- Merker für die Nachtverdichtung: Tage, die schon in daily stehen (macht runNightly idempotent).
CREATE TABLE IF NOT EXISTS agg_state (
site TEXT NOT NULL,
day TEXT NOT NULL,
PRIMARY KEY (site, day)
);
`;
export function openDb(path) {