Can I implement login from other tables like a customer?

I don’t think it’s actually possible.
Why not having all your users in the same table and then differentiate them with roles ?
You can then prevent vendors from login as customers by overwriting the login mutation.