QUERY PLAN
Aggregate (cost=52.71..52.72 rows=1 width=8)
-> Bitmap Heap Scan on tbl_work_logs (cost=4.39..52.71 rows=1 width=0)
Recheck Cond: (client_id = 2815)
Filter: ((NOT is_draft) AND (location_out_id IS NOT NULL) AND (location_in_id IS NOT NULL) AND (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 (scenario_id = 1))
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..4.39 rows=13 width=0)
Index Cond: (client_id = 2815)