-- easyai:migration:no-transaction
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_gateway_task_events_platform_created
  ON gateway_task_events(platform_id, created_at DESC)
  WHERE platform_id IS NOT NULL;
