QUERY PLAN
Aggregate (cost=67.77..67.78 rows=1 width=32)
-> Seq Scan on tbl_erp_payment_tickets t (cost=0.00..67.64 rows=51 width=6)
Filter: (is_payment_settle AND (created_at >= '2025-08-08 00:00:00+08'::timestamp with time zone) AND (status = 2))