My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How do i create a model using one schema using mongoose?

Lem's photo
Lem
·Feb 26, 2018

Im still new to programming so please go easy on me lol. Im planning on creating 2 types of users in my project a normal user and an Admin user. I was able to implement a local strategy for normal users and its already working but I cant seem to visualize or grasp how i will include another type of user. do i have to create a different collection in mongo just for admin users? please enlighten me on this subject.