database design - Taking Suggestions For User Management Scheme -


i'm beginning work on web application have several distinct user types, example being registered user, site admin, user admin..etc. users may have more 1 role.

in previous projects, i've been able manage different user schemas 3 tables: user, userrole, user_userrole. approach, relatively easy manage m-m relationship between user , userrole (in user_userrole table).

however, don't think approach work nicely in project following reason. need able track (site admin or user admin) approves each user.

i haven't been able come elegant solution this, , looking suggestions. simpler better.

just include granted_by column in user_userrole table points user table.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -