QUERY PLAN
Aggregate (cost=1336.08..1336.09 rows=1 width=32)
-> Bitmap Heap Scan on tbl_work_logs (cost=19.85..1334.97 rows=63 width=2)
Recheck Cond: (created_by = 5087)
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))
-> Bitmap Index Scan on tbl_work_logs_created_by_idx (cost=0.00..19.84 rows=1006 width=0)
Index Cond: (created_by = 5087)