From d243a67d81565ae94f06121600600c8378652923 Mon Sep 17 00:00:00 2001 From: yooonwodyd Date: Mon, 14 Oct 2024 16:18:34 +0900 Subject: [PATCH] refactor:[#43]- refact ArtistInfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ArtistInfo 엔티티 필드 수정 --- .../java/com/helpmeCookies/user/entity/ArtistInfo.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/helpmeCookies/user/entity/ArtistInfo.java b/src/main/java/com/helpmeCookies/user/entity/ArtistInfo.java index 427ddab..ed1e838 100644 --- a/src/main/java/com/helpmeCookies/user/entity/ArtistInfo.java +++ b/src/main/java/com/helpmeCookies/user/entity/ArtistInfo.java @@ -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; @@ -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;