\x on
SELECT id, to_char(created_at at time zone 'Asia/Shanghai','YYYY-MM-DD HH24:MI:SS') AS created_at_shanghai,
       user_id, api_key_id, account_id, source, method, path, model, has_stream, has_tools, has_thinking,
       left(request_body, 2000) AS request_body_preview
FROM public.request_audit_logs
WHERE created_at BETWEEN ('2026-05-16 07:09:35 Asia/Shanghai')::timestamptz AND ('2026-05-16 07:09:45 Asia/Shanghai')::timestamptz
  AND (user_id=619 OR api_key_id=950 OR account_id=119 OR path='/v1/responses')
ORDER BY created_at DESC
LIMIT 20;
\x off
