1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| # # Structure for table "role_permission" #
DROP TABLE IF EXISTS role_permission; CREATE TABLE role_permission ( role_permission_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT '角色权限ID', role_id INT NOT NULL COMMENT '角色ID', permission_id INT NOT NULL COMMENT '权限ID', create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间' )ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='角色权限表';
# # Data for table "role_permission" #
INSERT INTO role_permission (role_id, permission_id) VALUES (1, 1); INSERT INTO role_permission (role_id, permission_id) VALUES (1, 2); INSERT INTO role_permission (role_id, permission_id) VALUES (1, 3); INSERT INTO role_permission (role_id, permission_id) VALUES (1, 4); INSERT INTO role_permission (role_id, permission_id) VALUES (1, 5); INSERT INTO role_permission (role_id, permission_id) VALUES (1, 6); INSERT INTO role_permission (role_id, permission_id) VALUES (2, 1); INSERT INTO role_permission (role_id, permission_id) VALUES (2, 2); INSERT INTO role_permission (role_id, permission_id) VALUES (2, 3);
|