QUERY PLAN
Sort (cost=82.28..82.31 rows=9 width=16)
Sort Key: created_at DESC, id DESC
-> Seq Scan on tbl_purchase_contracts (cost=0.00..82.14 rows=9 width=16)
Filter: ((created_by = 1001) AND (cost_type = 1))