diff --git a/src/main/java/com/gdgoc/study_group/study/domain/Status.java b/src/main/java/com/gdgoc/study_group/study/domain/Status.java new file mode 100644 index 0000000..37dc8a6 --- /dev/null +++ b/src/main/java/com/gdgoc/study_group/study/domain/Status.java @@ -0,0 +1,7 @@ +package com.gdgoc.study_group.study.domain; + +public enum Status { + OFFLINE, + ONLINE, + FINISHED +} diff --git a/src/main/java/com/gdgoc/study_group/study/domain/Study.java b/src/main/java/com/gdgoc/study_group/study/domain/Study.java index f2d908b..5ad7f86 100644 --- a/src/main/java/com/gdgoc/study_group/study/domain/Study.java +++ b/src/main/java/com/gdgoc/study_group/study/domain/Study.java @@ -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; @@ -34,10 +36,12 @@ public class Study { @OneToMany(mappedBy = "study") private List 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 }