feat: 헤어 컬러 카탈로그와 팔레트 조회 API - #147
Merged
Merged
Conversation
추천·저장한 후보·AR 이 모두 color_id 를 들고 있는데 가리킬 표가 없어 아무도 값을 채우지 못했다. hairstyle_assets 와 짝을 이루는 공용 카탈로그를 만들고, 값이 전부 비어 있는 지금 recommendation_items 의 참조 무결성도 함께 연결한다.
This was referenced Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 이슈
변경 내용
hair_colors카탈로그 테이블과 초기 색상 10건 시드 (식별자 고정)recommendation_items.color_id에 참조 무결성 연결GET /hair-colors— 활성 색상을 노출 순서로 조회작업 목적
추천 결과와 저장한 후보가 모두
color_id를 들고 있는데 가리킬 표가 없어 아무도 값을 채우지 못했다(운영 데이터 0건).hairstyle_assets와 짝을 이루는 공용 색상 카탈로그를 만들어 추천·저장·AR 이 같은 표를 참조하게 한다.테스트 방법
체크리스트
기타 사항
code를 표시명과 분리해 두어 이름이 바뀌어도 클라이언트 분기와 AR 매핑은 흔들리지 않는다active = false로 내린다. 이미 저장된 후보가 그 색을 가리키고 있어, 단건 조회는 내려간 색도 돌려준다saved_styles.color_id의 FK 는 [Refactor] 저장한 후보 스타일 스키마·도메인을 카탈로그 참조로 확장 #145 에서 도메인 확장과 함께 연결한다