Skip to content

Commit

Permalink
Feat: 실습 기록 저장 구현중
Browse files Browse the repository at this point in the history
  • Loading branch information
orieasy1 committed Nov 23, 2024
1 parent f8cac94 commit b45d0e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Entity
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
Expand All @@ -25,9 +27,6 @@ public class SolveResult {
@JoinColumn(name = "problem_id", nullable = false) // 문제와의 관계
private Problem problem;

@Column(name = "total_result", nullable = false)
private Boolean totalResult;

@Column(name = "menu_result", nullable = false)
private Boolean menuResult;

Expand All @@ -38,13 +37,12 @@ public class SolveResult {
private Boolean amountResult;

@Column(name = "solved_date", nullable = false)
private String solvedDate;
private LocalDateTime solvedDate;

@Builder
public SolveResult(User user, Problem problem, Boolean totalResult, Boolean menuResult, Boolean optionResult, Boolean amountResult, String solvedDate) {
public SolveResult(User user, Problem problem, Boolean totalResult, Boolean menuResult, Boolean optionResult, Boolean amountResult, LocalDateTime solvedDate) {
this.user = user;
this.problem = problem;
this.totalResult = totalResult;
this.menuResult = menuResult;
this.optionResult = optionResult;
this.amountResult = amountResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@RequiredArgsConstructor
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring:
profiles:
active: prod
active: dev
springdoc:
packages-to-scan: com.jojoidu.book.easy
default-consumes-media-type: application/json;charset=UTF-8
Expand Down

0 comments on commit b45d0e4

Please sign in to comment.