Skip to content

seoyoung/week5과제 제출#78

Open
seozerochoi wants to merge 14 commits intomainfrom
seoyoung/week5
Open

seoyoung/week5과제 제출#78
seozerochoi wants to merge 14 commits intomainfrom
seoyoung/week5

Conversation

@seozerochoi
Copy link
Contributor

User.java

  • 역할 : 사용자 정보 저장
  • 주요 필드
    1. id : 사용자 고유 아이디(pk)
    2. name, nickname, phoneNum,gender :사용자 정보
    3. loginId : 로그인 정보

Book.java

  • 역할 : 개별 도서 정보 저장
  • 주요 필드
    1. id : 책 고유 아이디(pk)
    2. category_id : 소속 카테고리(fk)
    3. title, description : 도서 제목 및 설명

BookCategory.java

  • 역할 : 도서 카테고리 분류
  • 주요 필드
    1. id : 카테고리 고유 아이디(pk)
    2. name : 카테고리 이름

HasTag.java

  • 역할 : 해시태그 정의
  • 주요 필드
    1. id : 해시태그 고유 식별자(pk)
    2. name : 태그 이름

NoticeAlarm.java

  • 역할 : 공지사항 알림 정보 저장
  • 주요 필드
    1. id : 공지 고유 아이디(pk)
    2. user_id : 사용자 아이디(fk)
    3. title, message : 알림 제목 및 내용

MarketingAlarm.java

  • 역할 : 마케팅 알림 정보 저장
  • 주요 필드
    1. id : 마케팅 알림 고유 아이디(pk)
    2. user_id : 사용자 아이디(fk)
    3. title, message : 알림 제목 및 내용

BaseEntity.java

  • 역할 : 공통 필드 common.BaseEntity에 저장, 모든 클래스에 사용
  • 주요 필드
    1. createdAt : 생성시간
    2. updatedAt : 업데이트 된 시간

Gender.java

  • 역할 : 사용자 성별 표현
  • 값 : MALE, FEMALE, UNKOWN

BookHasTag.java

  • 역할 : Book클래스와 HasTag클래스를 연결해주는 매핑 테이블
  • 주요 필드
    1. id : 고유 아이디(pk)
    2. book_id, HasTag_id (pk)

Likes.java

  • 역할 : 사용자가 좋아요 누른 도서 정보 저장, User 클래스와 Book클래스를 연결해주는 매핑 테이블
  • 주요 필드
    1. id : 고유 아이디(pk)
    2. user_id, book_id (fk)

Rental.java

  • 역할 : 도서 대여 이력 관리, User 클래스와 Book클래스를 연결해주는 매핑 테이블
  • 주요 필드
    1. id : 고유 아이디(pk)
    2. user_id, book_id(fk)
    3. rentedAt : 대여일
    4. returnedAt : 반납일
    5. dueDate : 반납 예정

@seozerochoi seozerochoi linked an issue May 19, 2025 that may be closed by this pull request
@seozerochoi seozerochoi changed the title 도서 대출 DB seoyoung/week5과제 제출 May 19, 2025
Copy link
Member

@hyungin0505 hyungin0505 left a comment

Choose a reason for hiding this comment

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

hastag, nikname 같은 사소한 오타 제외하고는 모두 좋아 보입니다

Copy link
Member

Choose a reason for hiding this comment

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

반납 기한 칼럼과 함께 반납일 칼럼도 만드신 것이 좋은 것 같습니다.

Copy link
Member

Choose a reason for hiding this comment

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

비밀번호 같은 민감 정보는 평문이 아니라 암호화해서 저장하는 것이 좋을 것 같습니다
length=20은 해시를 저장하기에는 조금 짧아 보입니다

Copy link

Choose a reason for hiding this comment

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

비밀번호 암호화는 저도 잘 알아 갑니다!

Copy link

@macqueen0987 macqueen0987 left a comment

Choose a reason for hiding this comment

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

깔끔했습니다! 비밀번호 관련 부분은 저도 지적하려 했는데 이미 지적 해주셨네요.

Copy link

@dp44rk dp44rk left a comment

Choose a reason for hiding this comment

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

깔끔하게 잘 작성 하신것 같습니다!

Copy link

Choose a reason for hiding this comment

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

비밀번호 암호화는 저도 잘 알아 갑니다!

Copy link

@glucosei glucosei left a comment

Choose a reason for hiding this comment

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

섬세하게 잘 짜여진 코드인 것 같습니다!

Choose a reason for hiding this comment

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

대여는 실제로 존재하는 책 한권 한권에 대해, 해쉬태그나 좋아요는 같은 책끼리 묶은 특정한 책이라는 것에 대해 연관이 있어서 다른 엔티티를 하나 더 만드는 것이 좋다고 생각합니다. 같은 책이 여러 권 있는 경우가 대다수이기 때문에!

Choose a reason for hiding this comment

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

Alarm 클래스를 만들어서 MarketingAlarm extends Alarm 하면 좋을듯합니다

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.

[5주차] : JPA 과제 제출

5 participants