Open
Conversation
마이페이지 API 구현 준비 단계로 S3 관련 설정을 추가한다. - @aws-sdk/client-s3, @aws-sdk/s3-request-presigner 의존성 추가 - s3.config.ts: S3 환경변수 로딩 (운영 시 bucket 필수, fail-fast) - app.module.ts: s3Config 로드 등록
마이페이지 기능에 필요한 Prisma 스키마 변경을 수행한다. - RecentProductView 신규 모델: 최근 본 상품 기록 (account+product unique, viewed_at) - ReviewImage → ReviewMedia 리네임: media_type(IMAGE/VIDEO) enum 추가, thumbnail_url 컬럼 추가 - Account, Product 모델에 역참조 추가 - soft-delete 미들웨어에 ReviewMedia, RecentProductView 등록
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Summary
STAGE 0: S3 업로드 기반 환경 구성
@aws-sdk/client-s3,@aws-sdk/s3-request-presigner의존성 추가s3.config.ts: S3 환경변수 로딩 (운영 시AWS_S3_BUCKET필수, fail-fast)app.module.ts: s3Config 로드 등록STAGE 1: Prisma 스키마 변경
RecentProductView신규 테이블: 최근 본 상품 기록 (account+product unique, viewed_at 기준 정렬)ReviewImage→ReviewMedia확장:ReviewMediaTypeenum(IMAGE/VIDEO) 추가,thumbnail_url컬럼 추가ReviewMedia,RecentProductView등록Test plan
npx tsc --noEmit타입 체크 통과yarn test전체 387 테스트 통과prisma migrate dev마이그레이션 정상 적용 확인