비즈니스 데이터베이스 분석

테이블 (3)

book (Untitled)

  • book_id (책 아이디) — uuid — 기본 키 — NOT NULL
  • title (제목) — string
  • author (저자) — string
  • isExist (존재 여부) — boolean
  • price (가격) — int
  • publisher (출판사) — string

log (Untitled3)

  • id (아이디) — uuid — 기본 키 — NOT NULL
  • book_id (책 아이디) — uuid — 외래 키 → book.book_id — NOT NULL
  • user_id (유저 아이디) — uuid — 외래 키 → user.user_id — NOT NULL
  • date (구매 날짜) — Date

user (Untitled2)

  • user_id (유저 아이디) — uuid — 기본 키 — NOT NULL
  • name (이름) — string
  • age (나이) — int