QUERY PLAN
Index Scan using tbl_work_logs_created_by_idx on tbl_work_logs w (cost=0.29..25.52 rows=1 width=20)
Index Cond: ((created_by = ANY ('{1015,1015,1022,1023,5248}'::integer[])) AND (created_by = 1015))
Filter: ((NOT is_draft) AND ((start_at IS NOT NULL) OR (end_at IS NOT NULL)) AND (((start_at >= '2026-07-01 00:00:00+08'::timestamp with time zone) AND (end_at < '2026-07-31 23:59:59+08'::timestamp with time zone)) OR ((start_at <= '2026-07-01 00:00:00+08'::timestamp with time zone) AND (end_at > '2026-07-01 00:00:00+08'::timestamp with time zone)) OR ((start_at <= '2026-07-31 23:59:59+08'::timestamp with time zone) AND (end_at > '2026-07-31 23:59:59+08'::timestamp with time zone))))