Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 회원, Refresh 토큰 테이블 속성에 코멘트 추가 #89

Merged
merged 7 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,4 @@
>
> `Star API Docs`
> ![](src/main/resources/image/star-docs.png)
>
>
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Comment;

@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
Expand All @@ -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
Expand All @@ -50,7 +57,7 @@ public void update(UpdateMemberRequestDto updateMemberRequestDto) {
}
}

public void changePassword(String password){
public void changePassword(String password) {
this.password = password;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
public class RefreshToken {

@Id
@Comment("member_id")
@Comment("Refresh 토큰 식별자(회원 식별자)")
private Long id;
@Comment("Refresh 토큰")
private String token;

@Builder
Expand Down