✅ How should I organize user roles (User, Manager, Admin) in a single User entity with ASP.NET Core?
Hello
I want to create a website where a user can search for coffee stores.
Now, I've created a controller where a User can register, but this gives him automatically "user role".
Now, I want also to create manager and admin roles, but I don't think for example admin needs so many attributes when registers, right?
Or maybe he needs even more?
How am I suppose to logically think about it?
This is the User entity:
cs
Every role suppose to have the same attributes?
I also have Role enum where you can choose the Role as you can see, it's in a different class made just for the enum.
I hope my explanation was well explained, thanks!
0 Replies