diff --git a/README.md b/README.md index 2f640d95..fb386a65 100644 --- a/README.md +++ b/README.md @@ -196,4 +196,4 @@ > > `Star API Docs` > ![](src/main/resources/image/star-docs.png) -> \ No newline at end of file +> diff --git a/src/main/java/com/fc/shimpyo_be/domain/member/entity/Member.java b/src/main/java/com/fc/shimpyo_be/domain/member/entity/Member.java index 6a621584..bf843d32 100644 --- a/src/main/java/com/fc/shimpyo_be/domain/member/entity/Member.java +++ b/src/main/java/com/fc/shimpyo_be/domain/member/entity/Member.java @@ -13,6 +13,7 @@ import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; +import org.hibernate.annotations.Comment; @Getter @NoArgsConstructor(access = AccessLevel.PROTECTED) @@ -21,16 +22,22 @@ public class Member extends BaseTimeEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) + @Comment("회원 식별자") private Long id; @Column(unique = true, nullable = false, length = 30) + @Comment("회원 이메일") private String email; @Column(nullable = false, length = 30) + @Comment("회원 이름") private String name; @Column(nullable = false) + @Comment("암호화된 비밀번호") private String password; @Column(nullable = false, columnDefinition = "TEXT") + @Comment("프로필 사진 URL") private String photoUrl; @Enumerated(EnumType.STRING) + @Comment("권한") private Authority authority; @Builder @@ -50,7 +57,7 @@ public void update(UpdateMemberRequestDto updateMemberRequestDto) { } } - public void changePassword(String password){ + public void changePassword(String password) { this.password = password; } } diff --git a/src/main/java/com/fc/shimpyo_be/domain/member/entity/RefreshToken.java b/src/main/java/com/fc/shimpyo_be/domain/member/entity/RefreshToken.java index fd6d16fb..2d194fec 100644 --- a/src/main/java/com/fc/shimpyo_be/domain/member/entity/RefreshToken.java +++ b/src/main/java/com/fc/shimpyo_be/domain/member/entity/RefreshToken.java @@ -14,8 +14,9 @@ public class RefreshToken { @Id - @Comment("member_id") + @Comment("Refresh 토큰 식별자(회원 식별자)") private Long id; + @Comment("Refresh 토큰") private String token; @Builder