-- 1.0.11: alert (Telegram) when an API key that should be in constant use goes quiet, e.g. the AI ticket assistant
ALTER TABLE api_keys
  ADD idle_alert_minutes SMALLINT UNSIGNED NOT NULL DEFAULT 0 COMMENT '0 = no alert' AFTER ip_allow,
  ADD idle_alert_at DATETIME NULL COMMENT 'last idle alert sent; NULL = key is fine' AFTER idle_alert_minutes;
