From 908613cab006c3f77d590709523d0e78de74a9b0 Mon Sep 17 00:00:00 2001 From: yummygyudon Date: Wed, 22 May 2024 20:58:25 +0900 Subject: [PATCH 1/7] =?UTF-8?q?FEAT(`operation-domain`-`user`)=20:=20User?= =?UTF-8?q?=20=EB=8F=84=EB=A9=94=EC=9D=B8=20=EA=B4=80=EB=A0=A8=20Enum=20Co?= =?UTF-8?q?lumn=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - `Gender` : 성별 - `Part` : 파트 - `Position` : 활동 직위 - `SocialType` : 가입 소셜 플랫폼 - `Team` : 활동 소속 팀 --- .../org/sopt/makers/operation/user/domain/Gender.java | 6 ++++++ .../org/sopt/makers/operation/user/domain/Part.java | 4 ++++ .../sopt/makers/operation/user/domain/Position.java | 10 ++++++++++ .../sopt/makers/operation/user/domain/SocialType.java | 6 ++++++ .../org/sopt/makers/operation/user/domain/Team.java | 7 +++++++ 5 files changed, 33 insertions(+) create mode 100644 operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Gender.java create mode 100644 operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Part.java create mode 100644 operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Position.java create mode 100644 operation-domain/src/main/java/org/sopt/makers/operation/user/domain/SocialType.java create mode 100644 operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Team.java diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Gender.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Gender.java new file mode 100644 index 00000000..dcff9387 --- /dev/null +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Gender.java @@ -0,0 +1,6 @@ +package org.sopt.makers.operation.user.domain; + +public enum Gender { + MALE, + FEMALE, +} diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Part.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Part.java new file mode 100644 index 00000000..408d9132 --- /dev/null +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Part.java @@ -0,0 +1,4 @@ +package org.sopt.makers.operation.user.domain; + +public enum Part { +} diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Position.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Position.java new file mode 100644 index 00000000..da0d79c9 --- /dev/null +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Position.java @@ -0,0 +1,10 @@ +package org.sopt.makers.operation.user.domain; + +public enum Position { + PRESIDENT, // 회장 + VICE_PRESIDENT, // 부회장 + GENERAL_AFFAIRS, // 총무 + TEAM_LEADER, // 팀장 + PART_LEADER, // 파트장 + MEMBER // 회원 +} diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/SocialType.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/SocialType.java new file mode 100644 index 00000000..b3274ddf --- /dev/null +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/SocialType.java @@ -0,0 +1,6 @@ +package org.sopt.makers.operation.user.domain; + +public enum SocialType { + GOOGLE, + APPLE, +} diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Team.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Team.java new file mode 100644 index 00000000..02105639 --- /dev/null +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Team.java @@ -0,0 +1,7 @@ +package org.sopt.makers.operation.user.domain; + +public enum Team { + OPERATION, + MEDIA, + MAKERS +} From ad7229afa2645d09513675320055709b278ca987 Mon Sep 17 00:00:00 2001 From: yummygyudon Date: Wed, 22 May 2024 21:06:34 +0900 Subject: [PATCH 2/7] =?UTF-8?q?FEAT(`operation-domain`-`user`)=20:=20User?= =?UTF-8?q?=20=EB=8F=84=EB=A9=94=EC=9D=B8=20`User`=20Entity=20=EC=A0=95?= =?UTF-8?q?=EC=9D=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 유저 기본 정보에 대한 Entity입니다. - Table : `users` - 특이사항 - `birthday` 값에 대해 Database 타입인 `java.sql.Date`와 Application 내 사용 타입인 `java.time.LocalDate` 간 타입 변화 Converter 객체를 생성했습니다. - 시간 데이터까지는 불필요한 속성이기에 `java.time.LocalDateTime`이 아닌`java.time.LocalDate`을 채택했습니다. --- .../makers/operation/user/domain/User.java | 59 +++++++++++++++++++ .../user/util/LocalDateConverter.java | 25 ++++++++ 2 files changed, 84 insertions(+) create mode 100644 operation-domain/src/main/java/org/sopt/makers/operation/user/domain/User.java create mode 100644 operation-domain/src/main/java/org/sopt/makers/operation/user/util/LocalDateConverter.java diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/User.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/User.java new file mode 100644 index 00000000..da12ac3a --- /dev/null +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/User.java @@ -0,0 +1,59 @@ +package org.sopt.makers.operation.user.domain; + +import jakarta.persistence.Id; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Enumerated; +import jakarta.persistence.EnumType; +import jakarta.persistence.Convert; + +import java.time.LocalDate; + +import lombok.Getter; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.AllArgsConstructor; +import lombok.AccessLevel; + +import org.sopt.makers.operation.common.domain.BaseEntity; +import org.sopt.makers.operation.user.util.LocalDateConverter; + +@Entity @Getter +@Table(name = "users") +@NoArgsConstructor(access = AccessLevel.PROTECTED) +@AllArgsConstructor(access = AccessLevel.PRIVATE) +public class User extends BaseEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @Column(name = "email", nullable = false) + private String email; + + @Column(name = "phone", nullable = false) + private String phone; + + @Column(name = "gender", nullable = false) + @Enumerated(EnumType.STRING) + private Gender gender; + + @Column(name = "name", nullable = false) + private String name; + + @Column(name = "birthday") + @Convert(converter = LocalDateConverter.class) + private LocalDate birthday; + + @Builder + public User(String email, String phone, Gender gender, String name, LocalDate birthday) { + this.email = email; + this.phone = phone; + this.gender = gender; + this.name = name; + this.birthday = birthday; + } +} diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/util/LocalDateConverter.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/util/LocalDateConverter.java new file mode 100644 index 00000000..68077038 --- /dev/null +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/util/LocalDateConverter.java @@ -0,0 +1,25 @@ +package org.sopt.makers.operation.user.util; + +import jakarta.persistence.Converter; +import jakarta.persistence.AttributeConverter; + +import java.sql.Date; +import java.time.LocalDate; +import java.util.Optional; + +@Converter +public class LocalDateConverter implements AttributeConverter { + @Override + public Date convertToDatabaseColumn(LocalDate localDate) { + return Optional.ofNullable(localDate) + .map(Date::valueOf) + .orElse(null); + } + + @Override + public LocalDate convertToEntityAttribute(Date date) { + return Optional.ofNullable(date) + .map(Date::toLocalDate) + .orElse(null); + } +} From 16ed64e50a83e24a4b94809f9736bb41fbc7b556 Mon Sep 17 00:00:00 2001 From: yummygyudon Date: Wed, 22 May 2024 21:10:17 +0900 Subject: [PATCH 3/7] =?UTF-8?q?FEAT(`operation-domain`-`user`)=20:=20User?= =?UTF-8?q?=20=EB=8F=84=EB=A9=94=EC=9D=B8=20`UserRegisterInfo`=20Entity=20?= =?UTF-8?q?=EC=A0=95=EC=9D=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 신규 가입 예정 회원 정보에 대한 Entity 입니다. - Table : `user_register_info` - 특이사항 - 해당 Table의 값들은 Application을 통해서 저장되는 데이터들이 아닌 외부에서 CSV로 직접 수작업으로 저장하는 데이터입니다. --- .../user/domain/UserRegisterInfo.java | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserRegisterInfo.java diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserRegisterInfo.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserRegisterInfo.java new file mode 100644 index 00000000..a97d5952 --- /dev/null +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserRegisterInfo.java @@ -0,0 +1,49 @@ +package org.sopt.makers.operation.user.domain; + +import jakarta.persistence.Id; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; +import jakarta.persistence.Column; + +import lombok.Getter; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.AllArgsConstructor; +import lombok.AccessLevel; + +@Entity @Getter +@Table(name = "user_register_info") +@NoArgsConstructor(access = AccessLevel.PROTECTED) +@AllArgsConstructor(access = AccessLevel.PRIVATE) +public class UserRegisterInfo { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @Column(name = "name") + private String name; + + @Column(name = "email") + private String email; + + @Column(name = "generation") + private Integer generation; + + @Column(name = "phone") + private String phone; + + @Column(name = "part") + private Part part; + + @Builder + public UserRegisterInfo(String name, String email, String phone, Part part, Integer generation) { + this.name = name; + this.email = email; + this.phone = phone; + this.part = part; + this.generation = generation; + } +} From 8e1f90e1fcc2a205db52c9c04d398f44bc2d8e3a Mon Sep 17 00:00:00 2001 From: yummygyudon Date: Wed, 22 May 2024 21:13:03 +0900 Subject: [PATCH 4/7] =?UTF-8?q?FEAT(`operation-domain`-`user`)=20:=20User?= =?UTF-8?q?=20=EB=8F=84=EB=A9=94=EC=9D=B8=20`UserIdentityInfo`=20Entity=20?= =?UTF-8?q?=EC=A0=95=EC=9D=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 회원 가입 정보에 대한 Entity 입니다. - Table : `user_identity_info` - 특이사항 - 추후 회원당 여러 다중 소셜 플랫폼을 가질 수 있게끔 확장하기 위해 정규화를 선택했습니다. --- .../user/domain/UserIdentityInfo.java | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserIdentityInfo.java diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserIdentityInfo.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserIdentityInfo.java new file mode 100644 index 00000000..bf96d34b --- /dev/null +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserIdentityInfo.java @@ -0,0 +1,44 @@ +package org.sopt.makers.operation.user.domain; + +import jakarta.persistence.Id; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Enumerated; +import jakarta.persistence.EnumType; + +import lombok.Getter; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.AllArgsConstructor; +import lombok.AccessLevel; + +@Entity @Getter +@Table(name = "user_identity_info") +@NoArgsConstructor(access = AccessLevel.PROTECTED) +@AllArgsConstructor(access = AccessLevel.PRIVATE) +public class UserIdentityInfo { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @Column(name = "user_id", nullable = false) + private Long userId; + + @Column(name = "idp_type", nullable = false) + @Enumerated(value = EnumType.STRING) + private SocialType socialType; + + @Column(name = "auth_user_id", nullable = false) + private String socialId; + + @Builder + public UserIdentityInfo(Long userId, SocialType socialType, String socialId) { + this.userId = userId; + this.socialType = socialType; + this.socialId = socialId; + } +} From dcc144d0be39236c0da05eff88d9c17399bc6f7d Mon Sep 17 00:00:00 2001 From: yummygyudon Date: Wed, 22 May 2024 21:28:44 +0900 Subject: [PATCH 5/7] =?UTF-8?q?FEAT(`operation-domain`-`user`)=20:=20User?= =?UTF-8?q?=20=EB=8F=84=EB=A9=94=EC=9D=B8=20`UserGenerationHistory`=20Enti?= =?UTF-8?q?ty=20=EC=A0=95=EC=9D=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 회원 기수 당 활동 정보에 대한 Entity 입니다. - Table : `user_generation_history` - 특이사항 - `Team`은 Null일 수 있습니다. - `Position`이 임원진값에 해당할 경우, `Team`과 `Part`가 Null일 수 있습니다. --- .../user/domain/UserGenerationHistory.java | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserGenerationHistory.java diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserGenerationHistory.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserGenerationHistory.java new file mode 100644 index 00000000..c595654c --- /dev/null +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserGenerationHistory.java @@ -0,0 +1,54 @@ +package org.sopt.makers.operation.user.domain; + +import jakarta.persistence.Id; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Enumerated; +import jakarta.persistence.EnumType; + +import lombok.Getter; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.AllArgsConstructor; +import lombok.AccessLevel; + +@Entity @Getter +@Table(name = "user_generation_history") +@NoArgsConstructor(access = AccessLevel.PROTECTED) +@AllArgsConstructor(access = AccessLevel.PRIVATE) +public class UserGenerationHistory { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @Column(name = "user_id", nullable = false) + private Long userId; + + @Column(name = "generation", nullable = false) + private Integer integer; + + @Column(name = "part") + @Enumerated(value = EnumType.STRING) + private Part part; + + @Column(name = "team") + @Enumerated(value = EnumType.STRING) + private Team team; + + @Column(name = "position", nullable = false) + @Enumerated(value = EnumType.STRING) + private Position position; + + @Builder + public UserGenerationHistory(Long userId, Integer integer, Part part, Team team, Position position) { + this.userId = userId; + this.integer = integer; + this.part = part; + this.team = team; + this.position = position; + } +} From 8f484d98d9d70e59d550bc970ed0415cb7799f37 Mon Sep 17 00:00:00 2001 From: yummygyudon Date: Fri, 24 May 2024 01:22:35 +0900 Subject: [PATCH 6/7] =?UTF-8?q?MODIFY=20:=20=EB=A6=AC=EB=B7=B0=20=EB=82=B4?= =?UTF-8?q?=EC=9A=A9=20=EC=88=98=EC=A0=95=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 놓친 `@Enumerated` & Enum 값 작성 추가 - 도메인 속성에 따른 수정 - `java.time.LocalDate` <-> `java.sql.Date` Converter 제거 --- .../makers/operation/user/domain/Part.java | 8 ++++++ .../makers/operation/user/domain/Team.java | 3 +-- .../makers/operation/user/domain/User.java | 3 --- .../user/domain/UserGenerationHistory.java | 6 ++--- .../user/domain/UserRegisterInfo.java | 7 ++++-- .../user/util/LocalDateConverter.java | 25 ------------------- 6 files changed, 17 insertions(+), 35 deletions(-) delete mode 100644 operation-domain/src/main/java/org/sopt/makers/operation/user/util/LocalDateConverter.java diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Part.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Part.java index 408d9132..8bfda204 100644 --- a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Part.java +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Part.java @@ -1,4 +1,12 @@ package org.sopt.makers.operation.user.domain; public enum Part { + + PLAN, + DESIGN, + WEB, + ANDROID, + IOS, + SERVER + } diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Team.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Team.java index 02105639..0a0f4584 100644 --- a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Team.java +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/Team.java @@ -2,6 +2,5 @@ public enum Team { OPERATION, - MEDIA, - MAKERS + MEDIA } diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/User.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/User.java index da12ac3a..b9483271 100644 --- a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/User.java +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/User.java @@ -8,7 +8,6 @@ import jakarta.persistence.Column; import jakarta.persistence.Enumerated; import jakarta.persistence.EnumType; -import jakarta.persistence.Convert; import java.time.LocalDate; @@ -19,7 +18,6 @@ import lombok.AccessLevel; import org.sopt.makers.operation.common.domain.BaseEntity; -import org.sopt.makers.operation.user.util.LocalDateConverter; @Entity @Getter @Table(name = "users") @@ -45,7 +43,6 @@ public class User extends BaseEntity { private String name; @Column(name = "birthday") - @Convert(converter = LocalDateConverter.class) private LocalDate birthday; @Builder diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserGenerationHistory.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserGenerationHistory.java index c595654c..51ecb93e 100644 --- a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserGenerationHistory.java +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserGenerationHistory.java @@ -29,7 +29,7 @@ public class UserGenerationHistory { private Long userId; @Column(name = "generation", nullable = false) - private Integer integer; + private int generation; @Column(name = "part") @Enumerated(value = EnumType.STRING) @@ -44,9 +44,9 @@ public class UserGenerationHistory { private Position position; @Builder - public UserGenerationHistory(Long userId, Integer integer, Part part, Team team, Position position) { + public UserGenerationHistory(Long userId, int generation, Part part, Team team, Position position) { this.userId = userId; - this.integer = integer; + this.generation = generation; this.part = part; this.team = team; this.position = position; diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserRegisterInfo.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserRegisterInfo.java index a97d5952..82de5273 100644 --- a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserRegisterInfo.java +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/UserRegisterInfo.java @@ -6,6 +6,8 @@ import jakarta.persistence.Entity; import jakarta.persistence.Table; import jakarta.persistence.Column; +import jakarta.persistence.Enumerated; +import jakarta.persistence.EnumType; import lombok.Getter; import lombok.Builder; @@ -29,13 +31,14 @@ public class UserRegisterInfo { @Column(name = "email") private String email; - @Column(name = "generation") - private Integer generation; + @Column(name = "generation", nullable = false) + private int generation; @Column(name = "phone") private String phone; @Column(name = "part") + @Enumerated(value = EnumType.STRING) private Part part; @Builder diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/util/LocalDateConverter.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/util/LocalDateConverter.java deleted file mode 100644 index 68077038..00000000 --- a/operation-domain/src/main/java/org/sopt/makers/operation/user/util/LocalDateConverter.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.sopt.makers.operation.user.util; - -import jakarta.persistence.Converter; -import jakarta.persistence.AttributeConverter; - -import java.sql.Date; -import java.time.LocalDate; -import java.util.Optional; - -@Converter -public class LocalDateConverter implements AttributeConverter { - @Override - public Date convertToDatabaseColumn(LocalDate localDate) { - return Optional.ofNullable(localDate) - .map(Date::valueOf) - .orElse(null); - } - - @Override - public LocalDate convertToEntityAttribute(Date date) { - return Optional.ofNullable(date) - .map(Date::toLocalDate) - .orElse(null); - } -} From 3f0d2296d2ff4c39d95386bfa8247e2784a3115a Mon Sep 17 00:00:00 2001 From: yummygyudon Date: Mon, 27 May 2024 15:16:01 +0900 Subject: [PATCH 7/7] =?UTF-8?q?FEAT=20:=20User=20=EB=8F=84=EB=A9=94?= =?UTF-8?q?=EC=9D=B8=20User=20Entity=20=EB=82=B4=20Profile=20Image=20?= =?UTF-8?q?=EC=BB=AC=EB=9F=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Table : `users` 테이블 - Profile Image 는 없을 수 있기 때문에 Nullable 설정 --- .../java/org/sopt/makers/operation/user/domain/User.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/User.java b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/User.java index b9483271..ceb6eb88 100644 --- a/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/User.java +++ b/operation-domain/src/main/java/org/sopt/makers/operation/user/domain/User.java @@ -42,15 +42,20 @@ public class User extends BaseEntity { @Column(name = "name", nullable = false) private String name; + @Column(name = "profile_image") + private String profileImage; + @Column(name = "birthday") private LocalDate birthday; + @Builder - public User(String email, String phone, Gender gender, String name, LocalDate birthday) { + public User(String email, String phone, Gender gender, String name, String profileImage, LocalDate birthday) { this.email = email; this.phone = phone; this.gender = gender; this.name = name; + this.profileImage = profileImage; this.birthday = birthday; } }