ilkja erd
테이블 (7)
독후감 (book_review)
- PK (book_review_id) — Long — 기본 키 — NOT NULL
- 제목 (title) — String
- 내용 (content) — String
- 이미지 (images) — List
- 좋아요 수 (likes_count) — Int
- 댓글 수 (replies_count) — Int
- 삭제일 (deleted_at) — Instant
- 생성일 (created_at) — Instant
- 수정일 (updated_at) — Instant
- FK(책) (book_id) — Long — 외래 키 → 책.PK — NOT NULL
- FK(유저) (user_id) — Long — 외래 키 → 유저.PK — NOT NULL
독후감 댓글 (book_review_reply)
- PK (book_review_reply_id) — Long — 기본 키 — NOT NULL
- FK(유저) (user_id) — Long — 외래 키 → 유저.PK — NOT NULL
- FK(독후감) (book_review_id) — Long — 외래 키 → 독후감.PK — NOT NULL
- 내용 (content) — String
- 삭제일 (deleted_at) — Instant
- 생성일 (created_at) — Instant
- 수정일 (updated_at) — Instant
독후감 좋아요 (book_review_like)
- PK (book_review_like_id) — Long — 기본 키 — NOT NULL
- FK(유저) (user_id) — Long — 외래 키 → 유저.PK — NOT NULL
- FK(독후감) (book_review_id) — Long — 외래 키 → 독후감.PK — NOT NULL
- 종아요 기록 (extra_data)
- 취소일 (cancelled_at) — Instant
- 생성일 (created_at) — Instant
- 수정일 (updated_at) — Instant
배너 (banner)
- PK (banner_id) — Long — 기본 키 — NOT NULL
- 제목 (title) — String
- 이미지 (image) — Image
- 주소 (url) — String
- 배너 시작일 (start_at) — Instant
- 배너 종료일 (end_at) — Instant
- 순서 (orders) — Int
- 생성일 (created_at) — Instant
- 수정일 (updated_at) — Instant
유저 (user)
- PK (user_id) — Long — 기본 키 — NOT NULL
- 이메일 (email) — String
- 비밀번호 (hashed_password) — String
- 휴대폰 번호 (phone_number) — String
- 닉네임 (nickname) — String
- 유저 상태 (status) — enum
- 프로필 이미지 (profile_image) — Image
- 설명 (description) — String
- 푸시 토큰 (fcm_registration) — String
- 탈퇴일자 (withdrawn_at) — Instant
- 생성일 (created_at) — Instant
- 수정일 (updated_at) — Instant
유저 차단 (user_block)
- PK (user_block_id) — Long — 기본 키 — NOT NULL
- 유저id (user_id) — Long
- 차단중인 유저 id (blocking_user_id) — Long
- 삭제일 (deleted_at) — Instant
- 생성일 (created_at) — Instant
- 수정일 (updated_at) — Instant
책 (book)
- PK (book_id) — Long — 기본 키 — NOT NULL
- ISBN (isbn) — String
- 제목 (title) — String
- 작가 (author) — String
- 출판사 (publisher) — String
- 이미지 (image) — Image
- 생성일 (created_at) — InStant
- 수정일 (updated_at) — Instant