[김민희] sprint7#21
Merged
rjc1704 merged 4 commits intocodeit-sprint-fullstack:express-김민희from Feb 4, 2025
Hidden character warning
The head ref may contain hidden characters: "express-\uae40\ubbfc\ud76c-sprint7"
Merged
Conversation
rjc1704
reviewed
Feb 4, 2025
| images String[] | ||
| favorite Int @default(0) | ||
| createdAt DateTime @default(now()) | ||
| updatedAt DateTime @updatedAt |
There was a problem hiding this comment.
comments Comment[] 추가하셔서 하나의 Article 에는 복수개의 Comment가 있을 수 있다는 관계필드 설정을 하셔야 합니다.
rjc1704
reviewed
Feb 4, 2025
| targetType TargetType | ||
| content String | ||
| createdAt DateTime @default(now()) | ||
| updatedAt DateTime @updatedAt |
There was a problem hiding this comment.
article Article @relation(fields: [targetId], references: [id], onDelete: Cascade)
위 관계 필드를 추가하셔야 articleId 로 추정되는 targetId 가 Article 테이블의 id 를 참조하게 만듦으로써 1:N 관계를 명시할 수 있습니다. 추가로 onDelete 설정을 Cascade로 명시함으로써 게시글이 삭제되면 그 게시글에 속해있는 댓글들도 함께 삭제될 수 있도록 설정할 수 있습니다.
|
민희님 대부분의 요구사항들을 모두 만족시켜주셨군요! 고생많으셨습니다. seeding 은 코드 준비는 되었는데 아직 테스트까지 못하신 것 같네요 꼭 한번 해보시면 좋을 것 같아요. 추가 코멘트는 아래에 드리도록 하겠습니다.
|
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.
배포 링크
https://panda-market-mhkim-react.netlify.app/
요구사항
기본
중고마켓
공통
자유게시판
댓글
멘토에게