QUERY PLAN
Aggregate (cost=228.74..228.75 rows=1 width=8)
-> Seq Scan on tbl_contacts c (cost=0.00..228.74 rows=1 width=4)
Filter: ((created_at >= '2025-01-01 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) AND (created_by = 1001) AND (contact_type = '1'::type_enterprise_contact_type) AND (created_by = ANY ('{1017,5085,1001,5248,1015,1022,5296,1023}'::integer[])))