First, the design department table:
Second, the user table design:
Third, the permission module table
Fourth, the authority table
Fifth, the role of table
Sixth, the role of the user table
Seven, the role permissions table
Eight, the relevant authority to update records in the table