mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
update:优化用户表sql语句
This commit is contained in:
parent
b5bbd7f068
commit
13979ad016
3 changed files with 5 additions and 7 deletions
|
|
@ -36,7 +36,7 @@ public class SysUserEntity extends BaseEntity {
|
|||
* 更新者
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Long create_date;
|
||||
private Date createDate;
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@ CREATE TABLE sys_user (
|
|||
creator bigint COMMENT '创建者',
|
||||
update_date datetime COMMENT '更新时间',
|
||||
primary key (id),
|
||||
unique key uk_username (username),
|
||||
key idx_create_date (create_date)
|
||||
unique key uk_username (username)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统用户';
|
||||
|
||||
-- 系统用户Token
|
||||
|
|
@ -46,8 +45,7 @@ create table sys_params
|
|||
updater bigint COMMENT '更新者',
|
||||
update_date datetime COMMENT '更新时间',
|
||||
primary key (id),
|
||||
unique key uk_param_code (param_code),
|
||||
key idx_create_date (create_date)
|
||||
unique key uk_param_code (param_code)
|
||||
)ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COMMENT='参数管理';
|
||||
|
||||
-- 字典类型
|
||||
|
|
@ -3,12 +3,12 @@
|
|||
# 每次对数据表进行改动时,只允许新建新对changeSet,不允许对上一个changeSet配置及文件进行修改
|
||||
databaseChangeLog:
|
||||
- changeSet:
|
||||
id: 202503141345
|
||||
id: 202503141335
|
||||
author: John
|
||||
changes:
|
||||
- sqlFile:
|
||||
encoding: utf8
|
||||
path: classpath:db/changelog/202503141345.sql
|
||||
path: classpath:db/changelog/202503141335.sql
|
||||
- changeSet:
|
||||
id: 202503141346
|
||||
author: czc
|
||||
|
|
|
|||
Loading…
Reference in a new issue