DEV Community

Discussion on: Create A Serverless School Management System with React, Auth0 and FaunaDB

Collapse
 
crimsonmed profile image
Médéric Burlet

Nice detailed post!

However I had a question why create:

  • Teachers
  • Managers
  • Students

Which all have the same fields more or less: firstname, lastname, email

And not have a User entity instead with just the user type in there.
Furthermore this approach would let you leverage the Auth0 scopes and have a more granular approach to your access control.

auth0.com/docs/scopes