优化
This commit is contained in:
parent
1382a258f6
commit
f14455c72e
@ -26,18 +26,15 @@ public class User {
|
||||
private Long id;
|
||||
|
||||
@Comment("昵称")
|
||||
@ColumnDefault("")
|
||||
@Column(name = "nickname", nullable = false, length = 32)
|
||||
@Column(name = "nickname", length = 32)
|
||||
private String nickname;
|
||||
|
||||
@Comment("用户名")
|
||||
@ColumnDefault("")
|
||||
@Column(name = "username", nullable = false, length = 32)
|
||||
private String username;
|
||||
|
||||
@Comment("手机号")
|
||||
// @ColumnDefault("")
|
||||
@Column(name = "phone", nullable = true, length = 16)
|
||||
@Column(name = "phone", length = 16)
|
||||
private String phone;
|
||||
|
||||
@Comment("密码")
|
||||
@ -50,7 +47,6 @@ public class User {
|
||||
private Byte status = 1;
|
||||
|
||||
@Comment("用户头像")
|
||||
@ColumnDefault("")
|
||||
@Column(name = "avatar", nullable = false)
|
||||
private String avatar;
|
||||
|
||||
@ -70,7 +66,7 @@ public class User {
|
||||
|
||||
@Comment("删除时间")
|
||||
@ColumnDefault("0")
|
||||
@Column(name = "deleted_on", nullable = true)
|
||||
@Column(name = "deleted_on")
|
||||
private Long deletedOn = 0L;
|
||||
|
||||
@Comment("是否删除 0 为未删除、1 为已删除")
|
||||
|
Loading…
Reference in New Issue
Block a user