| Aggregate (cost=2542.80..2542.81 rows=1 width=8) |
| -> HashAggregate (cost=2534.63..2538.26 rows=363 width=4) |
| Group Key: tbl_work_logs.client_id |
| -> Append (cost=0.00..2533.72 rows=363 width=4) |
| -> Seq Scan on tbl_work_logs (cost=0.00..1890.99 rows=361 width=4) |
| Filter: ((NOT is_draft) AND (client_id IS NOT NULL) AND (start_at >= '2026-01-01 00:00:00+08'::timestamp with time zone) AND (start_at <= '2026-12-31 00:00:00+08'::timestamp with time zone)) |
| -> Seq Scan on tbl_schedules (cost=0.00..639.10 rows=2 width=4) |
| Filter: ((NOT is_closed) AND (client_id IS NOT NULL) AND (start_at >= '2026-01-01 00:00:00+08'::timestamp with time zone) AND (start_at <= '2026-12-31 00:00:00+08'::timestamp with time zone)) |