QUERY PLAN
Aggregate (cost=110.28..110.30 rows=1 width=32)
-> Seq Scan on tbl_purchase_contracts t (cost=0.00..105.26 rows=2008 width=6)
Filter: ((NOT is_draft) AND (NOT is_refuse) AND (NOT is_chargeback) AND (created_at < '2025-08-20 17:41:03+08'::timestamp with time zone))