Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

study 도메인에 question 필드 추가 #7

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/main/java/com/gdgoc/study_group/study/domain/Status.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.gdgoc.study_group.study.domain;

public enum Status {
OFFLINE,
ONLINE,
FINISHED
}
10 changes: 7 additions & 3 deletions src/main/java/com/gdgoc/study_group/study/domain/Study.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import com.gdgoc.study_group.round.domain.Round;
import com.gdgoc.study_group.studyMember.domain.StudyMember;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
Expand Down Expand Up @@ -34,10 +36,12 @@ public class Study {
@OneToMany(mappedBy = "study")
private List<Answer> answers = new ArrayList<>();

@Enumerated(EnumType.STRING)
private Status status;

private String name;
private String description;
private boolean isOffline;
private boolean isActive;
private Integer participants; // 현재 스터디 참여 인원
private String requirement; // 지원 자격, nullable: 별도 요구 자격 없음
private String question; // 지원 질문, nullable: 지원 답변 없이 바로 신청 가능
private Integer maxParticipants; // null == 인원 제한 X
}
Loading