From f14455c72eb75ab9f2f6370a372062fa701ff918 Mon Sep 17 00:00:00 2001 From: whz <303054730@qq.com> Date: Sat, 11 May 2024 11:00:57 +0800 Subject: [PATCH] =?UTF-8?q?=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lk/paopao/entity/User.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/lk/paopao/entity/User.java b/src/main/java/com/lk/paopao/entity/User.java index c29fb41..953165d 100644 --- a/src/main/java/com/lk/paopao/entity/User.java +++ b/src/main/java/com/lk/paopao/entity/User.java @@ -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 为已删除")