Skip to content

Commit

Permalink
refactor:[kakao-tech-campus-2nd-step3#43]- refact ArtistInfo
Browse files Browse the repository at this point in the history
ArtistInfo 엔티티 필드 수정
  • Loading branch information
yooonwodyd committed Oct 14, 2024
1 parent d25ba35 commit d243a67
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/java/com/helpmeCookies/user/entity/ArtistInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
Expand All @@ -19,12 +21,14 @@
public class ArtistInfo {

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

private Long userId;
private String nickname;

private String artistType;
@Column(nullable = false)
@Enumerated(EnumType.STRING)
private ArtistType artistType;

@Column(nullable = false)
private Long totalFollowers;
Expand Down

0 comments on commit d243a67

Please sign in to comment.