QUERY PLAN
Nested Loop Left Join (cost=0.00..8.89 rows=1 width=263)
Join Filter: (u.enterprise_id = e.id)
-> Seq Scan on tbl_logins u (cost=0.00..7.86 rows=1 width=226)
Filter: (id = 1001)
-> Seq Scan on tbl_enterprises e (cost=0.00..1.01 rows=1 width=29)