deokhugam

테이블 (9)

댓글 (comments)

  • 댓글아이디 (id) — uuid — 기본 키 — NOT NULL
  • 사용자 아이디 (user_id2) — uuid — 외래 키 → 사용자.사용자 아이디 — NOT NULL
  • 리뷰 아이디 (id2) — uuid — 외래 키 → 리뷰.리뷰 아이디 — NOT NULL
  • 내용 (content) — text
  • 생성일 (created_at) — timestamp with time zone
  • 수정일 (updated_at) — timestamp with time zone
  • 삭제 여부 (is_deleted) — boolean

도서 (books)

  • 도서 아이디 (id) — uuid — 기본 키 — NOT NULL
  • 제목 (title) — varchar
  • 저자 (author) — varchar
  • 책 설명 (description) — varchar
  • 출판사 (publisher) — varchar
  • 출간일 (published_date) — timesteamp with time zone
  • isbn — varchar
  • 관련URL (thumbnail_url) — varchar
  • 리뷰수 (review_count) — integer
  • 등급 (rating) — numeric(2,1)
  • 생성일 (created_at) — timestamp with time zone
  • 수정일 (updated_at) — timestamp with time zone
  • 삭제여부 (is_deleted) — boolean

리뷰 (reviews)

  • 리뷰 아이디 (id) — uuid — 기본 키 — NOT NULL
  • 사용자 아이디 (user_id) — uuid — 외래 키 → 사용자.사용자 아이디 — NOT NULL
  • 도서 아이디 (book_id) — uuid — 외래 키 → 도서.도서 아이디 — NOT NULL
  • 리뷰내용 (content) — text
  • 좋아요 수 (like_count) — integer
  • 댓글 수 (comment_count) — integer
  • 별점 (rating) — numeric(2,1)
  • 생성 날짜 (created_at) — timestamp with time zone
  • 업데이트 날짜 (updated_at) — timestamp with time zone
  • 삭제여부 (is_deleted) — boolean

리뷰 랭킹 (review_rankings)

  • 아이디 (id) — uuid — 기본 키 — NOT NULL
  • 책 제목 (book_title) — varchar
  • 책 연관url (book_thumbnail_url) — varchar
  • 유저 닉네임 (user_nickname) — varchar
  • 리뷰 별점 (review_rating) — numeric(2,1)
  • 기간 (period) — varchar
  • 랭크 (rank) — integer
  • 스코어 (score) — numeric(2,1)
  • 좋아요 수 (like_count) — integer
  • 댓글 수 (comment_count) — integer
  • 생성일 (created_at) — timestamp with time zone
  • 리뷰 아이디 (id2) — uuid — 외래 키 → 리뷰.리뷰 아이디 — NOT NULL
  • 도서 아이디 (book_id) — uuid — 외래 키 → 도서.도서 아이디 — NOT NULL
  • 사용자 아이디 (user_id) — uuid — 외래 키 → 사용자.사용자 아이디 — NOT NULL

리뷰 좋아요 (review _likes)

  • 아이디 (id) — uuid — 기본 키 — NOT NULL
  • 리뷰 아이디 (id2) — uuid — 외래 키 → 리뷰.리뷰 아이디 — NOT NULL
  • 사용자 아이디 (id3) — uuid — 외래 키 → 사용자.사용자 아이디 — NOT NULL
  • 생성일 (created_at) — timestamp with time zone

사용자 (users)

  • 사용자 아이디 (id) — uuid — 기본 키 — NOT NULL
  • 이메일 (email) — varchar(100)
  • 닉네임 (nickname) — varchar(50)
  • 비밀번호 (password) — varchar(60)
  • 생성일 (created_at) — timestamp with time zone
  • 수정일 (updated_at) — timestamp with time zone
  • 삭제여부 (is_deleted) — boolean

알림 (notifications)

  • 알림 아이디 (id) — UUID — 기본 키 — NOT NULL
  • 사용자 아이디 (user_id) — uuid — 외래 키 → 사용자.사용자 아이디 — NOT NULL
  • 리뷰 아이디 (id2) — uuid — 외래 키 → 리뷰.리뷰 아이디 — NOT NULL
  • 내용 (content) — TEXT
  • 읽음여부 (confirmed) — boolean
  • 생성일 (created_at) — timestamp with time zone
  • 수정일 (updated_at) — timestamp with time zone

유저 랭킹 (user_rankings)

  • 유저랭킹 아이디 (id) — uuid — 기본 키 — NOT NULL
  • 기간 (period) — varchar(20)
  • 랭크 (rank) — integer
  • 스코어 (score) — numeric(10,2)
  • 좋아요 수 (like_count) — integer
  • 댓글 수 (comment_count) — integer
  • 리뷰 스코어 합 (review_score_sum) — numeric(10,2)
  • 사용자 아이디 (user_id2) — uuid — 외래 키 → 사용자.사용자 아이디 — NOT NULL

책 랭킹 (book_rankings)

  • 유저랭킹 아이디 (id) — uuid — 기본 키 — NOT NULL
  • 기간 (period) — varchar(20)
  • 랭크 (rank) — integer
  • 스코어 (score) — numeric(10,2)
  • 댓글 수 (comment_count) — integer
  • 별점 (rating) — numeric(10,2)
  • 관련 url (thumbnail_url) — varchar
  • 제목 (title) — varchar
  • 도서 아이디 (book_id) — uuid — 외래 키 → 도서.도서 아이디 — NOT NULL