Add a Role collection to differentiate between different types of user like regular user and admins.
Potential risk for regular users to be mistakenly given admin privileges. (a security matter)
Makes it easier to scale application later on.
User Model could implement @DBRef to fetch Role Model.
Add a Role collection to differentiate between different types of user like regular user and admins. Potential risk for regular users to be mistakenly given admin privileges. (a security matter) Makes it easier to scale application later on. User Model could implement @DBRef to fetch Role Model.