Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
In node.js, how to assign admin role for user who registers first and rest of them should be different?
There should be two models Users and UserRoles. First time when user registers, the UserRoles table should contain value as admin for that user and for rest of them it should be different. with support of node.js?