QUERY PLAN
Sort (cost=10.05..10.05 rows=2 width=145)
Sort Key: created_at DESC
-> Seq Scan on tbl_punch_leaves (cost=0.00..10.04 rows=2 width=145)
Filter: (created_by = 1001)