QUERY PLAN
Aggregate (cost=240.39..240.40 rows=1 width=8)
-> Seq Scan on tbl_contacts c (cost=0.00..240.38 rows=1 width=4)
Filter: ((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) AND (contact_type = '1'::type_enterprise_contact_type) AND (created_by = ANY ('{1017,5085,5248,1015,1022,1023}'::integer[])) AND (created_by = ANY ('{1017,5085,5248,1015,1022,1023}'::integer[])))