select current_database() as db, current_user as usr, now() as now, to_regclass('public.request_audit_logs') as audit_table;
select count(*) as rows, min(created_at) as min_created_at, max(created_at) as max_created_at
from public.request_audit_logs
where created_at >= timezone('Asia/Shanghai', date_trunc('day', now() at time zone 'Asia/Shanghai'));
select path, source, coalesce(model,'') as model, count(*) as n
from public.request_audit_logs
where created_at >= timezone('Asia/Shanghai', date_trunc('day', now() at time zone 'Asia/Shanghai'))
group by 1,2,3
order by n desc
limit 30;
