Skip to content

Commit

Permalink
feat: QuestionStatus enum class 생성 및 Question 엔티티 필드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kyxxgsoo committed Feb 26, 2024
1 parent 8f9a2af commit 651de69
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class Question extends BaseEntity {
@Column(nullable = false)
private String content;

@Column(nullable = false)
private QuestionStatus questionStatus;

@ColumnDefault("0")
private int heartCount;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.server.capple.domain.question.entity;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public enum QuestionStatus {

LAST("지난 질문"),
ONGOING("진행중인 질문");
private final String toKorean;
}

0 comments on commit 651de69

Please sign in to comment.