QUERY PLAN
Aggregate (cost=216.09..216.10 rows=1 width=32)
-> Seq Scan on tbl_purchase_contracts t (cost=0.00..211.09 rows=1999 width=6)
Filter: ((NOT is_draft) AND (NOT is_refuse) AND (NOT is_chargeback) AND (created_at < '2025-08-05 17:19:26+08'::timestamp with time zone))