QUERY PLAN
Hash Right Join (cost=19.41..20.57 rows=2 width=261)
Hash Cond: (e.id = u.enterprise_id)
Filter: ((COALESCE(e.schema_id, 'global'::character varying))::text <> 'global'::text)
-> Seq Scan on tbl_enterprises e (cost=0.00..1.08 rows=8 width=64)
-> Hash (cost=19.38..19.38 rows=2 width=224)
-> Seq Scan on tbl_logins u (cost=0.00..19.38 rows=2 width=224)
Filter: (((email)::text = '9'::text) OR ((mobile)::text = '9'::text))