QUERY PLAN
Nested Loop Left Join (cost=0.00..9.31 rows=1 width=263)
Join Filter: (u.enterprise_id = e.id)
Filter: ((COALESCE(e.schema_id, 'global'::character varying))::text <> 'global'::text)
-> Seq Scan on tbl_logins u (cost=0.00..8.25 rows=2 width=226)
Filter: (((email)::text = 'zhaohanyan@toast.com.cn'::text) OR ((mobile)::text = 'zhaohanyan@toast.com.cn'::text))
-> Materialize (cost=0.00..1.01 rows=1 width=29)
-> Seq Scan on tbl_enterprises e (cost=0.00..1.01 rows=1 width=29)