Database construction of Rights management system

Source: Internet
Author: User
A: Rights management system

  1. System Design
    Idea: When the user clicks the hyperlink is to use the filter to intercept this request, check if there is no access permission, if there is the release, the contrary does not release
    Difficulties: the management of permission data objects, the design of database tables and the relationship between tables
  2. Database design:
    Permission table (privilege): a permission corresponding to multiple resources, is a one-to-many relationship, in order to not lose the relationship, it is generally necessary to define a foreign key column in a multi-party
    Resource table (Resource): Add categories, delete categories, modify categories, find categories
    Role list: Can be understood as real-life identities, administrators, managers, etc.
    User table: Can be understood as a person in real life

    *用户角色表(user_role):用户和角色是多对多的关系,所以需要加一张用户角色表*角色权限表(role_privilege):权限和角色是多对多的关系,所以需要加一张角色权限表
  3. Table structure

Database construction of Rights management system

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.