Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Role Permission tables for group

$
0
0
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

Attached Images
File Type: png jcJEO.png (24.8 KB)
File Type: png A6hny.png (31.0 KB)

Viewing all articles
Browse latest Browse all 13329

Trending Articles