QUERY PLAN
Aggregate (cost=12.98..12.99 rows=1 width=32)
-> Seq Scan on tbl_erp_purchase_gifts t (cost=0.00..12.97 rows=1 width=32)
Filter: ((status = ANY ('{2,5}'::integer[])) AND (created_at >= '2025-08-01 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-08-31 23:59:59+08'::timestamp with time zone))