From 9e8cab609d32a5f2143a726a26437cc4d7b8c8da Mon Sep 17 00:00:00 2001 From: 648540858 <18010473990@163.com> Date: 星期二, 10 八月 2021 15:42:15 +0800 Subject: [PATCH] 添加角色相关的接口,用户信息添加角色信息 --- sql/mysql.sql | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sql/mysql.sql b/sql/mysql.sql index 9a41b82..5524e32 100644 --- a/sql/mysql.sql +++ b/sql/mysql.sql @@ -227,12 +227,22 @@ username varchar(255) not null, password varchar(255) not null, roleId int not null, - create_time varchar(50) not null, - update_time varchar(50) not null + createTime varchar(50) not null, + updateTime varchar(50) not null ); create unique index user_username_uindex on user (username); -insert into user (username, password, roleId, create_time, update_time) values ('admin', '21232f297a57a5a743894a0e4a801fc3', '0', '2021-04-13 14:14:57', '2021-04-13 14:14:57'); +insert into user (username, password, roleId, createTime, updateTime) values ('admin', '21232f297a57a5a743894a0e4a801fc3', '1', '2021-04-13 14:14:57', '2021-04-13 14:14:57'); + +create table role ( + id int auto_increment + primary key, + name TEXT NOT NULL, + authority TEXT NOT NULL, + createTime varchar(50) not null, + updateTime varchar(50) not null +); +insert into role (id, name, authority, createTime, updateTime) values ('1', 'admin', '0', '2021-04-13 14:14:57', '2021-04-13 14:14:57'); -- Gitblit v1.8.0