Skip to content

Commit 2890b40

Browse files
committed
update shiro schema.sql
1 parent 30e057e commit 2890b40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

springboot-shiro/src/main/resources/sql/schema.sql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,13 @@ CREATE TABLE `t_role_permission` (
7171
INSERT INTO `t_role_permission` VALUES (1, 1, 1, '2017-12-12 09:46:12', '2017-12-12 09:46:12');
7272
INSERT INTO `t_role_permission` VALUES (2, 1, 3, '2017-12-12 09:46:12', '2017-12-12 09:46:12');
7373
INSERT INTO `t_role_permission` VALUES (3, 2, 2, '2017-12-12 09:46:12', '2017-12-12 09:46:12');
74+
75+
-- 项目用户关联表
76+
DROP TABLE IF EXISTS `t_project_user`;
77+
CREATE TABLE `t_project_user` (
78+
`id` INT(11) PRIMARY KEY AUTO_INCREMENT COMMENT '主键ID',
79+
`user_id` INT(11) NOT NULL COMMENT '用户ID',
80+
`project_id` INT(11) NOT NULL COMMENT '项目ID',
81+
`created_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
82+
`updated_time` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间'
83+
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='项目用户关联表';

0 commit comments

Comments
 (0)