simpleShop

Tables (8)

Cart (장바구니)

  • 장바구니 번호 (cart_no) — int — Primary key — NOT NULL
  • 아이템 번호 (item_no) — int — Foreign key → Item.아이템 번호 — NOT NULL
  • 유저 번호 (user_no) — int — Foreign key → User.user_no — NOT NULL
  • 장바구니 상품 (items) — JSON

Item (상품)

  • 아이템 번호 (item_no) — int — Primary key — NOT NULL
  • 상품 이름 (name) — int
  • 판매수 (sellCount) — int
  • 찜 수 (cartCount) — int
  • 등록자 (writer) — String
  • 가격 (price) — int
  • 상세 설명 (itemDetail) — String
  • 재고 (stock) — int
  • 등록일 (regDate) — Stirng
  • 수정일 (modifyDate) — String

Order (주문)

  • 주문 번호 (order_no) — int — Primary key — NOT NULL
  • 유저 아이디 (user_no) — int — Foreign key → User.user_no — NOT NULL
  • 주문 일자 (regDate) — String
  • 주문 상태 (status) — String
  • 주문 상품 품목 (items) — JSON

OrderItem (상품오더 조인 테이블)

  • 상품 오더 아이디 (orderItemId) — int — Primary key — NOT NULL
  • 아이템 번호 (item_no) — int — Foreign key → Item.아이템 번호 — NOT NULL
  • 주문 번호 (order_no) — int — Foreign key → Order.주문 번호 — NOT NULL
  • user_no (PK) — int — Foreign key → Order.유저 아이디 — NOT NULL

QnA

  • 질문번호 (qna_no) — int — Primary key — NOT NULL
  • user_no (PK) — int — Foreign key → User.user_no — NOT NULL
  • 아이템 번호 (item_no) — int — Foreign key → Item.아이템 번호 — NOT NULL
  • 제목 (title) — String
  • 내용 (content) — Stirng
  • 비밀번호 (password) — int

Review (리뷰)

  • 리뷰번호 (review_no) — int — Primary key — NOT NULL
  • 아이템 번호 (item_no) — int — Foreign key → Item.아이템 번호 — NOT NULL
  • 제목 (title) — String
  • 내용 (content) — String
  • FK (user_no) — int
  • 작성자 (writer) — String
  • 추천수 (recommandCount) — int

User (유저)

  • user_no (PK) — int — Primary key — NOT NULL
  • id (unique) — String
  • name (이름) — String
  • age (나이) — int
  • createDate (생성일) — String
  • grade (등급) — String
  • address (주소) — String
  • email (이메일) — String

UserReview (유저 리뷰 조인 테이블)

  • 유저 리뷰 조인 아이디 (userReviewId) — int — Primary key — NOT NULL
  • user_no — int — Foreign key → User.user_no — NOT NULL
  • 아이템 번호 (item_no) — int — Foreign key → Review.아이템 번호 — NOT NULL