diff --git a/pom.xml b/pom.xml
index d5ff0bf..2e50f93 100644
--- a/pom.xml
+++ b/pom.xml
@@ -51,6 +51,12 @@
org.springframework.boot
spring-boot-starter-test
+
+
+ mysql
+ mysql-connector-java
+
+
@@ -65,6 +71,20 @@
+
+
+ demo
+
+ jdbc:mysql://127.0.0.1:3306/anyin-demo?characterEncoding=UTF-8useSSL=falseautoReconnect=trueallowMultiQueries=true
+ root
+ rootroot
+
+
+ true
+
+
+
+
shiro-to-token
@@ -82,6 +102,26 @@
UTF-8
+
+
+
+ org.flywaydb
+ flyway-maven-plugin
+ 4.1.0
+
+ ${db.user}
+ ${db.password}
+ com.mysql.jdbc.Driver
+ ${jdbc.url}
+
+ db/migration
+
+
+ true
+ true
+ true
+
+
\ No newline at end of file
diff --git a/src/main/resources/db/migration/V1_0_0/V1_0_0_202201041302__create_sys_user.sql b/src/main/resources/db/migration/V1_0_0/V1_0_0_202201041302__create_sys_user.sql
new file mode 100644
index 0000000..9a5912b
--- /dev/null
+++ b/src/main/resources/db/migration/V1_0_0/V1_0_0_202201041302__create_sys_user.sql
@@ -0,0 +1,16 @@
+drop table if exists `sys_user`;
+create table `sys_user`
+(
+ `id` int(11) auto_increment,
+ `username` varchar(32) not null comment '用户名',
+ `nickname` varchar(64) not null default '' comment '昵称',
+ `password` varchar(64) not null default '' comment '密码',
+ `del_flg` int(11) not null default '1' comment '0删除;1正常;默认1',
+ `remark` varchar(256) default null comment '备注',
+ `create_by` int(11) default '0' comment '创建者',
+ `create_time` datetime default current_timestamp comment '创建时间',
+ `update_by` int(11) not null default '0' comment '更新者',
+ `update_time` datetime default current_timestamp on update current_timestamp comment '更新时间',
+ primary key (`id`)
+) engine = innodb
+ default charset = utf8mb4 comment ='用户表';
\ No newline at end of file