| Aggregate (cost=2605.67..2605.68 rows=1 width=8) |
| -> HashAggregate (cost=2558.78..2579.62 rows=2084 width=4) |
| Group Key: tbl_work_logs.client_id |
| -> Append (cost=0.00..2553.57 rows=2084 width=4) |
| -> Seq Scan on tbl_work_logs (cost=0.00..1891.97 rows=2079 width=4) |
| Filter: ((NOT is_draft) AND (client_id IS NOT NULL) AND (start_at >= '2025-01-01 00:00:00+08'::timestamp with time zone) AND (start_at <= '2025-12-31 00:00:00+08'::timestamp with time zone)) |
| -> Seq Scan on tbl_schedules (cost=0.00..640.76 rows=5 width=4) |
| Filter: ((NOT is_closed) AND (client_id IS NOT NULL) AND (start_at >= '2025-01-01 00:00:00+08'::timestamp with time zone) AND (start_at <= '2025-12-31 00:00:00+08'::timestamp with time zone)) |