In node.js, how to assign admin role for user who registers first and rest of them should be different?

Posted September 24, 2020 530 views

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?

Submit an answer

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