Skip to content

Commit

Permalink
Merge pull request #35 from ri-naa/feat/message-3
Browse files Browse the repository at this point in the history
[fix] 재난 퀴즈 엔티티 수정 #32
  • Loading branch information
ri-naa authored Jan 12, 2024
2 parents eab23f1 + 81101db commit c31a79c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/ALGo/ALGo_server/entity/Quiz.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ public class Quiz {
@Column(nullable = false)
private boolean answer;

@Column(nullable = false)
private String description;

}
10 changes: 10 additions & 0 deletions src/main/java/com/ALGo/ALGo_server/repository/QuizRepository.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.ALGo.ALGo_server.repository;

import com.ALGo.ALGo_server.entity.Quiz;
import org.springframework.data.jpa.repository.JpaRepository;

public interface QuizRepository extends JpaRepository<Quiz, Long> {

Quiz findByQuiz_id(Long quiz_id);

}

0 comments on commit c31a79c

Please sign in to comment.