QUERY PLAN
Limit (cost=4.01..4.01 rows=1 width=207)
-> Sort (cost=4.01..4.01 rows=1 width=207)
Sort Key: r.created_at DESC
-> Group (cost=3.99..4.00 rows=1 width=207)
Group Key: r.id
-> Sort (cost=3.99..3.99 rows=1 width=207)
Sort Key: r.id
-> Nested Loop Left Join (cost=1.55..3.98 rows=1 width=207)
Join Filter: (crvr.punch_travel_id = r.id)
-> Hash Right Join (cost=1.55..2.96 rows=1 width=207)
Hash Cond: (rvr.punch_travel_id = r.id)
-> Seq Scan on tbl_punch_travel_verify_rels rvr (cost=0.00..1.31 rows=31 width=4)
-> Hash (cost=1.54..1.54 rows=1 width=207)
-> Seq Scan on tbl_punch_travels r (cost=0.00..1.54 rows=1 width=207)
Filter: ((travel_start <= '2026-06-01'::date) AND (travel_end >= '2026-06-01'::date) AND (created_by = 1001))
-> Seq Scan on tbl_punch_travel_cancel_verify_rels crvr (cost=0.00..1.01 rows=1 width=4)