QUERY PLAN
Nested Loop Left Join (cost=0.27..9.48 rows=1 width=253)
Join Filter: (u.enterprise_id = e.id)
-> Index Scan using tbl_logins_pkey on tbl_logins u (cost=0.27..8.29 rows=1 width=216)
Index Cond: (id = 1001)
-> Seq Scan on tbl_enterprises e (cost=0.00..1.08 rows=8 width=64)