Skip to content

feat: 마이페이지 API 기반 구성 (STAGE 0, 1)#16

Open
chanwoo7 wants to merge 2 commits intodevelopfrom
feat/mypage-base
Open

feat: 마이페이지 API 기반 구성 (STAGE 0, 1)#16
chanwoo7 wants to merge 2 commits intodevelopfrom
feat/mypage-base

Conversation

@chanwoo7
Copy link
Copy Markdown
Member

@chanwoo7 chanwoo7 commented Apr 9, 2026

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 기준 정렬)
    • ReviewImageReviewMedia 확장: ReviewMediaType enum(IMAGE/VIDEO) 추가, thumbnail_url 컬럼 추가
    • Account, Product 모델에 역참조 추가
    • soft-delete 미들웨어에 ReviewMedia, RecentProductView 등록

Test plan

  • npx tsc --noEmit 타입 체크 통과
  • yarn test 전체 387 테스트 통과
  • prisma migrate dev 마이그레이션 정상 적용 확인
  • PR 리뷰 후 develop 머지

chanwoo7 added 2 commits April 9, 2026 22:19
마이페이지 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 등록
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 9, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a7b8227a-4167-49b3-a66c-88d55a6b9fe9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/mypage-base

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant