book

Tables (7)

Address (주소)

  • 회원 고유 번호 (변수 이름) — null or not null — Primary key
  • 회원 고유 번호 (변수 이름2) — null or not null — Foreign key → CartItem.회원 고유 번호
  • 회원 고유 번호 (변수 이름22) — null or not null — Foreign key → CartItem.회원 고유 번호
  • 세부주소 (detailName) — not null
  • 주소 (addressName) — not null — NOT NULL
  • 국가명 (country) — not null
  • 우편번호 (zipCode) — not null

Cart (장바구니)

  • 회원 고유 번호 (변수 이름) — null or not null — Primary key
  • 장바구니 ID (cartId) — not null — Primary key
  • 장바구니 항목 (cartItems) — null — NOT NULL
  • 총액 (grandTotal) — null

CartItem (장바구니 항목)

  • 회원 고유 번호 (변수 이름) — null or not null — Primary key
  • 회원 고유 번호 (변수 이름2) — null or not null — Foreign key → Shipping.회원 고유 번호
  • 도서 (book) — not null
  • 도서 개수 (quantity) — null — NOT NULL
  • 도서가격 (totalPrice) — null
  • 회원 고유 번호 (변수 이름3) — null or not null — Foreign key → Cart.회원 고유 번호
  • 장바구니 ID (cartId) — not null — Foreign key → Cart.장바구니 ID

Customer (고객)

  • 회원 고유 번호 (변수 이름) — null or not null — Primary key
  • 고객 ID (customerId) — not null — Primary key
  • 회원 고유 번호 (변수 이름2) — null or not null — Foreign key → CartItem.회원 고유 번호
  • 회원 고유 번호 (변수 이름22) — null or not null — Foreign key → CartItem.회원 고유 번호
  • 고객명 (Name) — not null — NOT NULL
  • 고객 주소 (address) — not null
  • 휴대전화 (phone) — not null

Shipping (영수증)

  • 회원 고유 번호 (변수 이름) — null or not null — Primary key
  • 배송 고객명 (name) — not null
  • 배송일 (date) — not null — NOT NULL
  • 배송 주소 객체 (address) — not null

book (책)

  • 회원 고유 번호 (변수 이름) — null or not null — Primary key
  • 책 이름 (name) — not null — Primary key
  • 책 ID (bookId) — not null — Primary key
  • 회원 고유 번호 (변수 이름2) — null or not null — Foreign key → login.회원 고유 번호
  • 가격 (unitPrice) — not null
  • 저자 (author) — null — NOT NULL
  • 설명 (description) — null
  • 출판사 (publisher) — null
  • 분류 (category) — null — NOT NULL
  • 재고수 (unitsInStock) — null
  • 출판일 (releaseDate) — not null
  • 도서상태 (condition) — not null
  • 도서이미지 (bookImage) — null
  • 파일이름 (fileName) — not null
  • 회원 고유 번호 (변수 이름3) — null or not null — Foreign key → Cart.회원 고유 번호
  • 장바구니 ID (cartId) — not null — Foreign key → Cart.장바구니 ID
  • 회원 고유 번호 (변수 이름4) — null or not null — Foreign key → CartItem.회원 고유 번호
  • 회원 고유 번호 (변수 이름22) — null or not null — Foreign key → CartItem.회원 고유 번호

login (로그인)

  • 회원 고유 번호 (변수 이름) — null or not null — Primary key
  • 로그인 id (admin) — not null — NOT NULL
  • 로그인 pw (1234) — not null