Expand dashboard analytics and document production implementation

This commit is contained in:
maxwes08
2026-11-03 14:49:01 +01:00
parent 70b94f8672
commit aa0028e7e0
36 changed files with 2212 additions and 76 deletions

View File

@@ -0,0 +1,10 @@
SET search_path TO analytics, public;
CREATE TABLE daily_health_reports (
game_id bigint NOT NULL REFERENCES games(id),
report_date date NOT NULL,
period_days integer NOT NULL CHECK(period_days IN (1,7)),
generated_at timestamptz NOT NULL DEFAULT now(),
payload jsonb NOT NULL,
PRIMARY KEY(game_id,report_date,period_days)
);
INSERT INTO schema_migrations(version) VALUES('006_daily_health_reports');