feat(user): 添加用户 token 相关字段
- 在用户表中添加 token 和 token_enddata 字段 - 为 username 添加唯一约束 - 更新 User 实体类,添加 token 和 tokenEnddata 属性
This commit is contained in:
@@ -17,4 +17,6 @@ public class User {
|
||||
private String email;
|
||||
private LocalDateTime createdAt;
|
||||
private LocalDateTime updatedAt;
|
||||
private String token;
|
||||
private LocalDateTime tokenEnddata;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user