From 253a4804ad38959ba3f7a77ba79c41fee00faea5 Mon Sep 17 00:00:00 2001 From: yooonwodyd Date: Mon, 7 Oct 2024 22:22:42 +0900 Subject: [PATCH 1/4] refactor:[#38]- refact ArtistInfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 수정된 ERD에 맞게 ArtistInfo 수정 --- src/main/java/com/helpmeCookies/user/entity/ArtistInfo.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/helpmeCookies/user/entity/ArtistInfo.java b/src/main/java/com/helpmeCookies/user/entity/ArtistInfo.java index 3f5ba93..427ddab 100644 --- a/src/main/java/com/helpmeCookies/user/entity/ArtistInfo.java +++ b/src/main/java/com/helpmeCookies/user/entity/ArtistInfo.java @@ -22,6 +22,10 @@ public class ArtistInfo { @GeneratedValue(strategy = GenerationType.AUTO) private Long id; + private Long userId; + + private String artistType; + @Column(nullable = false) private Long totalFollowers; From 8f828b8a2c127810e1cc11c7db4b3a5c67e0d7c8 Mon Sep 17 00:00:00 2001 From: yooonwodyd Date: Mon, 7 Oct 2024 22:23:12 +0900 Subject: [PATCH 2/4] refactor:[#38]- refact BusinessArtist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 수정된 ERD에 맞게 BusinesArtist --- .../java/com/helpmeCookies/user/entity/BusinessArtist.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/com/helpmeCookies/user/entity/BusinessArtist.java b/src/main/java/com/helpmeCookies/user/entity/BusinessArtist.java index 67334ad..a923d82 100644 --- a/src/main/java/com/helpmeCookies/user/entity/BusinessArtist.java +++ b/src/main/java/com/helpmeCookies/user/entity/BusinessArtist.java @@ -23,9 +23,6 @@ public class BusinessArtist { @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; - @Column(nullable = false) - private Long userId; - @Column(nullable = false) private String businessNumber; From 1d4d9e52fa4470d077cb11e0ed4cea33f277c33e Mon Sep 17 00:00:00 2001 From: yooonwodyd Date: Mon, 7 Oct 2024 22:23:28 +0900 Subject: [PATCH 3/4] refactor:[#38]- refact StudentArtist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 수정된 ERD에 맞게 StudentArtist 변경 --- src/main/java/com/helpmeCookies/user/entity/StudentArtist.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/com/helpmeCookies/user/entity/StudentArtist.java b/src/main/java/com/helpmeCookies/user/entity/StudentArtist.java index db44f6d..9d1aab6 100644 --- a/src/main/java/com/helpmeCookies/user/entity/StudentArtist.java +++ b/src/main/java/com/helpmeCookies/user/entity/StudentArtist.java @@ -26,9 +26,6 @@ public class StudentArtist { @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; - @Column(nullable = false) - private Long userId; - @Column(nullable = false) private String schoolEmail; @Column(nullable = false) From e97cc1004a6fca76c9d81bc56a608201662a7542 Mon Sep 17 00:00:00 2001 From: yooonwodyd Date: Mon, 7 Oct 2024 22:23:39 +0900 Subject: [PATCH 4/4] refactor:[#38]- refact User MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 수정된 ERD에 맞게 User 변경 --- src/main/java/com/helpmeCookies/user/entity/User.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/helpmeCookies/user/entity/User.java b/src/main/java/com/helpmeCookies/user/entity/User.java index c62de27..6423939 100644 --- a/src/main/java/com/helpmeCookies/user/entity/User.java +++ b/src/main/java/com/helpmeCookies/user/entity/User.java @@ -39,6 +39,9 @@ public class User { @Column(nullable = false) private Long id; + @Column(nullable = false) + private String name; + @Column(nullable = false) private String nickname;