store DB

테이블 (5)

결재내역 (Payment)

  • Key — 기본 키 — NOT NULL
  • Field
  • Field2
  • Field3
  • Field4
  • Field5

댓글 (Comment)

  • Key — int — 기본 키 — NOT NULL
  • Key (postId) — int — 외래 키 → 상품글.Key — NOT NULL
  • Key (Key2) — id — 외래 키 → 상품글.Key — NOT NULL
  • Key (Key3) — id — 외래 키 → 유저목록.Key — NOT NULL
  • 작성자 (author) — string
  • 내용 (content) — string
  • 사진 (imgUrl) — string

상품글 (Post)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key — id — 외래 키 → 유저목록.Key — NOT NULL
  • 상품명 (name) — string
  • 가격 (price) — int
  • 원산지 (origin) — string
  • 배송 방법 (dilivery) — string
  • 배송비 (deliveryCost) — int
  • 사진 (imgUrl) — string
  • 제목 (title) — string
  • 내용 (content) — string
  • 태그 (tag) — string
  • 좋아요 (like) — int
  • 할인율 (discount) — int

유저목록 (User)

  • Key — int — 기본 키 — NOT NULL
  • 아이디 (id) — string
  • 비밀번호 (password) — string

주문내역 (Order)

  • Key — int — 기본 키 — NOT NULL
  • 주문자 (userId) — int
  • 상품명 (productId) — int
  • 결재내역 (paymentId) — int