Rights Management (giving roles)

Source: Internet
Author: User

Reference: http://www.open-open.com/lib/view/open1397989124218.html

5 Tables at start

1.user

2.role

3.task

4.user_mm_role (n-n for user & role)

5.role_mm_task (N-n for Role & Task)

This allows each user to play multiple roles, while different roles can execute multiple different tasks

If the user is a lot, you can open a

6.userGroup

7.usergroup_mm_user

8.usergroup_mm_role

is to get the user group up and give the character's match to group

Again, role can be grouped.

9.roleGroup

10.rolegroup_mm_task

The principle is the same as usergroup.

The summary is: User can perform tasks that match all of his or his group's roles or role groups.

Rights Management (giving roles)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.