After logging on to a user with different permissions, you can see the database table list of different menu designs.

Source: Internet
Author: User

After logon, users with different permissions can see different menus (two levels of menus ).

 

I. menu table

ID (Primary Key ),
Menu_name (menu name ),
Parent_menu_id (parent menu ID ),
Level (menu level: 0, level 1 menu, 1, level 2 menu ...... Can be infinitely)
Ii. Role role table
ID (Primary Key ),
Role_name (role name)
Iii. role_menu role Association menu table
ID (Primary Key ),
Role_id (role ID ),
Menu_id (menu ID)
Iv. User table
ID,
User_name
V. user_role User Role table
ID,
User_id (User ID ),
Role_id (role ID)

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.