BOOK

테이블 (8)

구매 (purchase)

  • 식별자 (id) — not null — 기본 키 — NOT NULL
  • 유저 (user_id) — not null — 외래 키 → 유저.식별자 — NOT NULL
  • 책 (book_id) — not null — 외래 키 → 책.식벌자 — NOT NULL
  • 생성일자 (date_created) — NOT NULL

껍데기 (단행본)

  • 식별자 (id) — NOT NULL — 기본 키 — NOT NULL
  • 가격 (price) — not null
  • 목차 (content) — not null
  • 페이지 수 (page_number) — not null
  • 작가 소개 (author_description) — not null
  • 책소개 (book_description) — not null
  • 작가 (author_id) — not null
  • 사진 (image) — not null
  • 카테고리 (Field) — not null

껍데기 (연재본)

  • Key (id) — NOT NULL — 기본 키 — NOT NULL
  • 제목 (title) — NOT NULL
  • 연재주기 (serialization_day) — not null
  • 가격 (price) — not null
  • 작가 소개 (author_description) — not null
  • 책 소개 (book_description) — not null
  • 작가 (author_id) — not null
  • 사진 (image) — not null
  • 카테고리 (category_id) — not null
  • 연재완료 여부 (is_finished_serialization) — NOT NULL

단행본 좋아하는 책 (one_favorite_book)

  • 식별자 (id) — not null — 기본 키 — NOT NULL
  • 유저 (user_id) — not null — 외래 키 → 유저.식별자 — NOT NULL
  • 책 (book_id) — NOT NULL — 외래 키 → 껍데기.식별자 — NOT NULL

리뷰 (review)

  • 식별자 (id) — not null — 기본 키 — NOT NULL
  • 유저 (user_id) — not null — 외래 키 → 유저.식별자 — NOT NULL
  • 책 (book_id) — not null — 외래 키 → 책.식벌자 — NOT NULL
  • 별점 (score) — not null
  • 평가 (description)

연재본 좋아하는 책 (favorite_serialization_book)

  • 식별자 (id) — not null — 기본 키 — NOT NULL
  • 유저 (user_id) — not null — 외래 키 → 유저.식별자 — NOT NULL
  • 책 (book_id) — NOT NULL — 외래 키 → 껍데기.Key — NOT NULL

유저 (USER)

  • 식별자 (id) — not null — 기본 키 — NOT NULL
  • 이메일 (email) — not null
  • 비밀번호 (password) — not nul
  • 닉네임 (nickname) — not nul
  • 소개 (description) — not nul
  • 활성화 여부 (active) — NOT NULL
  • 사진 주소 (image) — not nul
  • 회원_형태 (TYPE) — not null

책 (Book)

  • 식벌자 (id) — not null — 기본 키 — NOT NULL
  • 연재본 (serialization_book_id) — 외래 키 → 껍데기.Key — NOT NULL
  • 단행본 (id3) — 외래 키 → 껍데기.식별자 — NOT NULL
  • 파일 경로 (file) — not null
  • 생성일자 (date_created) — NOT NULL
  • 발간여부 (is_approved) — NOT NULL
  • 제목 (title) — not null
  • 종류 (type) — NOT NULL