Skip to content

Commit

Permalink
[#13] refactor: Refactor codebase according to ERD updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlight258 committed Feb 7, 2024
1 parent ec1f4d5 commit 73734fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/dnd/timeet/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public class SecurityConfig {
"/api/v1/users/**",
//h2-console
"/h2-console/**",
"/api/meetings/**",

};

Expand Down
10 changes: 7 additions & 3 deletions src/main/java/org/dnd/timeet/meeting/domain/Meeting.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public class MeetingCreateRequest {
@Schema(description = "회의 제목", example = "2차 업무 회의")
private String title;

@NotNull(message = "회의 장소는 반드시 입력되어야 합니다")
@Schema(description = "회의 장소", example = "스타벅스 강남역점")
private String location;

Expand Down

0 comments on commit 73734fd

Please sign in to comment.