Skip to content

Commit 00aea44

Browse files
authored
Merge pull request #77 from prgrms-web-devcourse-final-project/feat/mission
fix : 제미나이 연결
2 parents 53fe32a + 484ab76 commit 00aea44

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

backend/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ out/
4040
db_dev.mv.db
4141
db_dev.trace.db
4242

43-
.env
43+
.env
44+
45+
key/*.json

backend/src/main/java/com/back/domain/mission/entity/Task.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import jakarta.persistence.*;
55
import lombok.*;
66

7+
import java.time.LocalDate;
78
import java.util.ArrayList;
89
import java.util.List;
910

@@ -27,8 +28,17 @@ public class Task extends BaseEntity {
2728
@Column(nullable = false)
2829
private int dayNum; // 주차 내 며칠에 해당하는 지 ( 1 = 월, ... )
2930

31+
// 수정 관리 필드
32+
@Column(nullable = false)
33+
@Builder.Default
34+
private Boolean hasBeenEdited = false; // 수정 이력
35+
36+
@Column
37+
private LocalDate editDeadline; // 수정 마감일
38+
3039
@OneToMany(mappedBy = "task", cascade = CascadeType.ALL, orphanRemoval = true)
3140
@Builder.Default
3241
private List<TaskLog> taskLogs = new ArrayList<>();
3342

43+
3444
}

backend/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spring:
3737
vertex:
3838
ai:
3939
gemini:
40-
project-id: "gen-lang-client-0512103591"
40+
project-id: ${VERTEX_PROJECT_ID}
4141
location: "us-central1"
4242
chat:
4343
options:

0 commit comments

Comments
 (0)