Table structure related to php background administrator permissions and php background administrator permissions

Source: Internet
Author: User

Table structure related to php background administrator permissions and php background administrator permissions

Admin administrator table

Id int (11) User id

Username varchar (128) User Name

Password varchar (128) Administrator password

Name varchar (50) Real Administrator name

Email varchar (128) Administrator email

Login_time int (11) Logon Time

Login_ip varchar (20) logon ip

Create_time int (11) Creation Time

Salt varchar (10) random encrypted string

Role_id int (11) role id

Status tinyint (4) status (0, delete 1, disable 2, normal)

Update_time int (11) Update Time

Ip_access tinyint (4) allow Internet access (1. Not allowed 2. Allowed)

 

Role table

Id int (11) primary key id

Name varchar (50) role name

Sort int (11) sorting

Status tinyint (4) status (0, delete 1, disable 2, normal)

 

Role_privilege role Permissions

Id int (11) primary key id

Role_id int (11) role id

Menu_id int (11) menu id

Status tinyint (1) status (0: unauthorized 1: authorized)

 

Menu table

Id int (11) menu primary key

Name varchar (50) menu name

Module_id int (11) module id

Modules varchar (20) Module name (Code-related)

Controller archar (20) controller name

Action varchar (20) action name

Status tinyint (1) no show 0 not show 1 show default 1

Sort int (11) sorting field (99 by default)

 

Module background module grouping table

Id int (11) primary key id

Name varchar (50) Module name

Status tinyint (1) Whether to display (0 is not displayed, 1 is displayed, default is 1)

Sort int (11) sorting field (99 by default)


Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.