QUERY PLAN
Sort (cost=6.35..6.35 rows=1 width=140)
Sort Key: verify_at DESC
-> Seq Scan on tbl_punch_leaves (cost=0.00..6.34 rows=1 width=140)
Filter: ((leave_start <= '2023-12-12'::date) AND (leave_end >= '2023-12-12'::date) AND (status = ANY ('{2,5}'::integer[])) AND (created_by = 5064))