30-day sending statistics per domain and application, plus optional auto level-2 rate limits derived from average send rate. Added: - Domain page **Sending statistics** card: total messages, peak and average - Level-2 rate limit **Manual** / **Auto** mode on domain and application - Domain export JSON now includes rate limits (`mode`, `auto_multiplier`, Changed: - Auto mode uses the level-1 window (`RATE_LIMIT_WINDOW_SECONDS`); manual Full detail: CHANGELOG.md (1.6.0).
8 lines
371 B
SQL
8 lines
371 B
SQL
-- Level-2 rate limit auto mode: operator sets a multiplier; max_messages is
|
|
-- derived from 30-day send stats (plan domain-stats-auto-ratelimit).
|
|
|
|
ALTER TABLE rate_limits ADD COLUMN mode TEXT NOT NULL DEFAULT 'manual'
|
|
CHECK (mode IN ('manual', 'auto'));
|
|
ALTER TABLE rate_limits ADD COLUMN auto_multiplier REAL;
|
|
ALTER TABLE rate_limits ADD COLUMN auto_updated_at TEXT;
|