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 User_Roles. First time when user registers, the User_Roles table should contain value as admin for that user and for rest of them it should be different. with support of node.js?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer