Question
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?