Skip to content

Commit 7b2f606

Browse files
authored
Merge pull request #204 from PROJECT-NEXUS-JS/fix/#203
Domain Enum 값 DB 컬럼 크기 50으로 변경
2 parents f8abd97 + 5314ee9 commit 7b2f606

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

src/main/java/com/example/nexus/app/participation/domain/Participation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class Participation {
7272
private ParticipantReward participantReward;
7373

7474
@Enumerated(EnumType.STRING)
75-
@Column(nullable = false, length = 20)
75+
@Column(nullable = false, length = 50)
7676
private ParticipationStatus status;
7777

7878
@Column(name = "applicant_name", nullable = false, length = 10)

src/main/java/com/example/nexus/app/post/domain/Post.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,26 @@ public class Post {
5555
@ElementCollection
5656
@Enumerated(EnumType.STRING)
5757
@CollectionTable(name = "post_main_category", joinColumns = @JoinColumn(name = "post_id"))
58-
@Column(name = "main_category", nullable = false)
58+
@Column(name = "main_category", nullable = false, length = 50)
5959
@BatchSize(size = 100)
6060
private Set<MainCategory> mainCategory;
6161

6262
@ElementCollection
6363
@Enumerated(EnumType.STRING)
6464
@CollectionTable(name = "post_platform_category", joinColumns = @JoinColumn(name = "post_id"))
65-
@Column(name = "platform_category")
65+
@Column(name = "platform_category", length = 50)
6666
@BatchSize(size = 100)
6767
private Set<PlatformCategory> platformCategory;
6868

6969
@ElementCollection
7070
@Enumerated(EnumType.STRING)
7171
@CollectionTable(name = "post_genres", joinColumns = @JoinColumn(name = "post_id"))
72-
@Column(name = "genre")
72+
@Column(name = "genre", length = 50)
7373
@BatchSize(size = 100)
7474
private Set<GenreCategory> genreCategories = new HashSet<>();
7575

7676
@Enumerated(EnumType.STRING)
77+
@Column(name = "status", length = 50)
7778
private PostStatus status;
7879

7980
@Column(name = "qna_Method")

src/main/java/com/example/nexus/app/reward/domain/ParticipantReward.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ public class ParticipantReward {
3939
private PostReward postReward;
4040

4141
@Enumerated(EnumType.STRING)
42-
@Column(name = "completion_status")
42+
@Column(name = "completion_status", length = 50)
4343
private ParticipationStatus completionStatus = ParticipationStatus.APPROVED;
4444

4545
@Column(name = "completed_at")
4646
private LocalDateTime completedAt;
4747

4848
@Enumerated(EnumType.STRING)
49-
@Column(name = "reward_status")
49+
@Column(name = "reward_status", length = 50)
5050
private RewardStatus rewardStatus = RewardStatus.PENDING;
5151

5252
@Column(name = "paid_at")

src/main/java/com/example/nexus/app/reward/domain/PostReward.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class PostReward {
2323
private Post post;
2424

2525
@Enumerated(EnumType.STRING)
26-
@Column(name = "reward_type")
26+
@Column(name = "reward_type", length = 50)
2727
private RewardType rewardType;
2828

2929
@Column(name = "reward_description", columnDefinition = "TEXT")

0 commit comments

Comments
 (0)