| Aggregate (cost=52.83..52.84 rows=1 width=8) |
| -> Bitmap Heap Scan on tbl_work_logs (cost=4.39..52.83 rows=1 width=0) |
| Recheck Cond: (client_id = 3415) |
| Filter: ((NOT is_draft) AND (location_out_id IS NOT NULL) AND (location_in_id IS NOT NULL) AND (created_at >= '2026-01-01 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-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 = 3415) |