max / makenotwork
| 1 | -- Health monitoring history table for the background monitor loop. |
| 2 | -- Each row is a periodic health check snapshot (default every 60s). |
| 3 | |
| 4 | ( |
| 5 | id BIGSERIAL PRIMARY KEY, |
| 6 | checked_at TIMESTAMPTZ NOT NULL DEFAULT NOW, |
| 7 | status VARCHAR(20) NOT NULL, |
| 8 | db_ok BOOLEAN NOT NULL, |
| 9 | s3_ok BOOLEAN NOT NULL, |
| 10 | sessions_ok BOOLEAN NOT NULL, |
| 11 | check_duration_ms INTEGER NOT NULL, |
| 12 | details JSONB |
| 13 | ); |
| 14 | |
| 15 | ON health_history(checked_at); |
| 16 |