diff --git a/src/main/java/com/server/capple/domain/question/entity/Question.java b/src/main/java/com/server/capple/domain/question/entity/Question.java index 2f9ef8fd..73c1a42e 100644 --- a/src/main/java/com/server/capple/domain/question/entity/Question.java +++ b/src/main/java/com/server/capple/domain/question/entity/Question.java @@ -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; diff --git a/src/main/java/com/server/capple/domain/question/entity/QuestionStatus.java b/src/main/java/com/server/capple/domain/question/entity/QuestionStatus.java new file mode 100644 index 00000000..49ba8439 --- /dev/null +++ b/src/main/java/com/server/capple/domain/question/entity/QuestionStatus.java @@ -0,0 +1,11 @@ +package com.server.capple.domain.question.entity; + +import lombok.RequiredArgsConstructor; + +@RequiredArgsConstructor +public enum QuestionStatus { + + LAST("지난 질문"), + ONGOING("진행중인 질문"); + private final String toKorean; +}