Hi
I'm new in database designing. What I intend to do is that I allow users of my website to form groups and groups have admins and admins can define permission levels(each permission level belongs to its own group and groups do not share permissions). then role table assigns permissions to users. now I'm not sure which way shows permission ownership and user-permission relation better.
I have two ideas, hope you can help me chose one or modify them.
I guess design 2 looks easier for query but I'm not sure if its complexity and efficiency is ok or not.
Thanks
I'm new in database designing. What I intend to do is that I allow users of my website to form groups and groups have admins and admins can define permission levels(each permission level belongs to its own group and groups do not share permissions). then role table assigns permissions to users. now I'm not sure which way shows permission ownership and user-permission relation better.
I have two ideas, hope you can help me chose one or modify them.
I guess design 2 looks easier for query but I'm not sure if its complexity and efficiency is ok or not.
Thanks