diff --git a/src/main/java/org/dnd/timeet/config/SecurityConfig.java b/src/main/java/org/dnd/timeet/config/SecurityConfig.java index 2321d39..5fddfe3 100644 --- a/src/main/java/org/dnd/timeet/config/SecurityConfig.java +++ b/src/main/java/org/dnd/timeet/config/SecurityConfig.java @@ -51,7 +51,6 @@ public class SecurityConfig { "/api/v1/users/**", //h2-console "/h2-console/**", - "/api/meetings/**", }; diff --git a/src/main/java/org/dnd/timeet/meeting/domain/Meeting.java b/src/main/java/org/dnd/timeet/meeting/domain/Meeting.java index 39317bd..c494332 100644 --- a/src/main/java/org/dnd/timeet/meeting/domain/Meeting.java +++ b/src/main/java/org/dnd/timeet/meeting/domain/Meeting.java @@ -43,7 +43,7 @@ public class Meeting extends AuditableEntity { // 실제 소요 시간, 초기값 null private LocalTime totalActualDuration; - @Column(nullable = false, length = 255) + @Column(nullable = true, length = 255) private String location; @Column(nullable = true, length = 1000) @@ -53,14 +53,18 @@ public class Meeting extends AuditableEntity { @Column(nullable = false, length = 50) private MeetingStatus status = MeetingStatus.SCHEDULED; + @Column(nullable = false) + private Integer imgNum; + @Builder public Meeting(String title, LocalDateTime startTime, LocalTime totalEstimatedDuration, String location, - String description) { + String description, Integer imgNum) { this.title = title; this.startTime = startTime; this.totalEstimatedDuration = totalEstimatedDuration; this.location = location; - this.description = description; // 입력한 값이 없을 경우 null + this.description = description; + this.imgNum = imgNum; } diff --git a/src/main/java/org/dnd/timeet/meeting/dto/MeetingCreateRequest.java b/src/main/java/org/dnd/timeet/meeting/dto/MeetingCreateRequest.java index ea88276..a391b5d 100644 --- a/src/main/java/org/dnd/timeet/meeting/dto/MeetingCreateRequest.java +++ b/src/main/java/org/dnd/timeet/meeting/dto/MeetingCreateRequest.java @@ -22,7 +22,6 @@ public class MeetingCreateRequest { @Schema(description = "회의 제목", example = "2차 업무 회의") private String title; - @NotNull(message = "회의 장소는 반드시 입력되어야 합니다") @Schema(description = "회의 장소", example = "스타벅스 강남역점") private String location;