How to design schema for different types of users

hey @Satyam
hope you find my question soon
I am working on a platform which has two kind of users (students and teachers) with different fields.
the only fields which they share are (username, email, password and role).
what would be the best approach for designing the schemas and making them connected?