This commit is contained in:
whz 2024-05-11 11:00:57 +08:00
parent 1382a258f6
commit f14455c72e

View File

@ -26,18 +26,15 @@ public class User {
private Long id; private Long id;
@Comment("昵称") @Comment("昵称")
@ColumnDefault("") @Column(name = "nickname", length = 32)
@Column(name = "nickname", nullable = false, length = 32)
private String nickname; private String nickname;
@Comment("用户名") @Comment("用户名")
@ColumnDefault("")
@Column(name = "username", nullable = false, length = 32) @Column(name = "username", nullable = false, length = 32)
private String username; private String username;
@Comment("手机号") @Comment("手机号")
// @ColumnDefault("") @Column(name = "phone", length = 16)
@Column(name = "phone", nullable = true, length = 16)
private String phone; private String phone;
@Comment("密码") @Comment("密码")
@ -50,7 +47,6 @@ public class User {
private Byte status = 1; private Byte status = 1;
@Comment("用户头像") @Comment("用户头像")
@ColumnDefault("")
@Column(name = "avatar", nullable = false) @Column(name = "avatar", nullable = false)
private String avatar; private String avatar;
@ -70,7 +66,7 @@ public class User {
@Comment("删除时间") @Comment("删除时间")
@ColumnDefault("0") @ColumnDefault("0")
@Column(name = "deleted_on", nullable = true) @Column(name = "deleted_on")
private Long deletedOn = 0L; private Long deletedOn = 0L;
@Comment("是否删除 0 为未删除、1 为已删除") @Comment("是否删除 0 为未删除、1 为已删除")