Skip to content

Commit 669fb9e

Browse files
committed
feat: club 엔티티 significant 필드 추가
1 parent 64804c1 commit 669fb9e

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/main/java/com/moyeoit/domain/club/dto/ClubDto.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public record ClubDto(
1515
Integer operation,
1616
String offline,
1717
String online,
18+
String significant,
1819
String location,
1920
String address,
2021
Boolean recruiting,
@@ -31,6 +32,7 @@ public static ClubDto from(Club entity) {
3132
.operation(entity.getOperation())
3233
.offline(entity.getOffline())
3334
.online(entity.getOnline())
35+
.significant(entity.getSignificant())
3436
.location(entity.getLocation())
3537
.address(entity.getAddress())
3638
.recruiting(entity.getRecruiting())

src/main/java/com/moyeoit/domain/club/entity/Club.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ public class Club {
5454
@Column(name = "online")
5555
private String online;
5656

57+
private String significant;
58+
5759
@Column(name = "location")
5860
private String location;
5961

@@ -68,6 +70,7 @@ public class Club {
6870

6971
private Integer subscribeCount;
7072

73+
7174
@OneToOne(mappedBy = "club", cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.LAZY)
7275
private ClubRecruitment recruitment;
7376

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE club
2+
ADD COLUMN significant VARCHAR(255) NULL

0 commit comments

Comments
 (0)