Monday, 12 June 2017

Numbers of user models I should use using passport local?

I am working on my first real life application. It has several types of users: 1. Normal, 2. Admin and a Single Super.

I am in dilemma choosing between:

  1. Creating a mongoose string enum field to hold each of these levels (1 model for all users)

  2. Creating two different models, one for users one for admin + Supers (2 different models)



via PrimeHero

No comments:

Post a Comment