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:
-
Creating a mongoose string enum field to hold each of these levels (1 model for all users)
-
Creating two different models, one for users one for admin + Supers (2 different models)
via PrimeHero
No comments:
Post a Comment