Skip to content

Feature/#34 문항 ID PK를 자연키에서 대체키로 변경 및 변경사항 반영#46

Merged
sejoon00 merged 2 commits intodevelopfrom
feature/#34
Feb 13, 2025
Merged

Feature/#34 문항 ID PK를 자연키에서 대체키로 변경 및 변경사항 반영#46
sejoon00 merged 2 commits intodevelopfrom
feature/#34

Conversation

@sejoon00
Copy link
Contributor

@sejoon00 sejoon00 commented Feb 12, 2025

🌱 관련 이슈

📌 작업 내용 및 특이사항

문항 내 변경사항

  • 변경된 데이터
    • 기존 ProblemType -> AnswerType으로 이름이 변경되었습니다.
      • AnswerType이 이제 주관식, 단답식입니다.
    • comment -> memo 로 이름이 변경되었습니다.
  • 추가된 데이터
    • ProblemType을 [기출문제, 변형 문제, 창작문제] 의 타입 구분 변수로 추가하였습니다.
    • Title이 생겼습니다. (출제자 검색용입니다)
    • 난이도가 생겼습니다. (1~10 사이의 입력값)
    • 문항 손해설 사진 입력이 생겼습니다.
    • 진단과 처방 사진을 1개 이상 입력할 수 있도록 하였습니다.
      • 일대다가 생기지만 따로 테이블로 빼지않고 @converter를 통해 List를 ,로 구분되는 String으로 변환하여 하나의 column에 저장하였습니다.
      @Convert(converter = StringListConverter.class)
      @Column(columnDefinition = "TEXT")
      List<String> prescriptionImageUrls;

📝 참고사항

  • 문항 ID 변경이 시스템에 엮여 있는 곳이 많아 수정 파일이 많습니다..
  • 문항 세트는 이제 문항의 Long 타입 id를 FK로 참조합니다.
  • 문항 세트의 confirm 토글을 할 때 새로 추가된 필드 값들도 Null 체크를 하도록 추가하였습니다.

📚 기타

  • 문항 검색에서 문항 ID가 PK에서 빠져 index가 없어졌습니다. 추후 index의 추가가 필요합니다.

@sejoon00 sejoon00 self-assigned this Feb 12, 2025
@sejoon00 sejoon00 added For: Views [이슈 대상] views For: API [이슈 대상] 외부 API For: Utils [이슈 대상] API, 모델, 뷰를 제외한 백엔드 로직 labels Feb 12, 2025
Copy link
Contributor

@seokbeom00 seokbeom00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@sejoon00 sejoon00 merged commit 9105d37 into develop Feb 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For: API [이슈 대상] 외부 API For: Utils [이슈 대상] API, 모델, 뷰를 제외한 백엔드 로직 For: Views [이슈 대상] views

Projects

None yet

Development

Successfully merging this pull request may close these issues.

문항 관련 변경 사항 반영

2 participants

Comments