한술담

테이블 (8)

결제 (payment)

  • 결제방법 (method) — String
  • 상세내용 (detail) — String
  • 카드번호 (number) — String

댓글 (comments)

  • 댓글ID (_id) — ObjectId — 기본 키 — NOT NULL
  • 상품ID (productId) — ObjectId — NOT NULL — ref : products
  • 유저 ID (userId) — ObjectId — NOT NULL — ref: users
  • 내용 (content) — String — NOT NULL
  • 이미지 (image) — String — NOT NULL

상품 (products)

  • 상품ID (_id) — ObjectId — 기본 키 — NOT NULL
  • 카테고리 (category) — String — NOT NULL
  • 제조사 (brand) — String — NOT NULL
  • 이름 (name) — String — NOT NULL — index, unique
  • 가격 (price) — Number — NOT NULL
  • 용량 (volume) — Number
  • 이미지 (image) — String
  • 설명 (description) — String
  • 재고 (stock) — Number
  • 판매량 (sales) — Number
  • 주종 (alcoholType) — String
  • 도수 (alcoholDegree) — Number
  • 제조일 (manufacturedDate) — Date

유저 (users)

  • 유저 ID (_id) — ObjectId — 기본 키 — NOT NULL
  • 소셜가입여부 (auth) — Boolean
  • 이메일 (email) — String — NOT NULL — unique
  • 이름 (fullName) — String — NOT NULL
  • 비밀번호 (password) — String — NOT NULL
  • 핸드폰 번호 (phoneNumber) — String
  • 주소 (address) — address
  • 권한 (role) — String
  • 주문ids (orders) — [String]
  • 장바구니 상품 (productsInCart) — [Cart]

장바구니 (cart)

  • 상품 id (id) — String — NOT NULL
  • 수량 (quantity) — Number — NOT NULL

주문 (orders)

  • 주문ID (_id) — ObjectId — 기본 키 — NOT NULL
  • 주문자ID (userId) — String — NOT NULL
  • 주문자이름 (fullName) — String — NOT NULL
  • 핸드폰 번호 (name) — String — NOT NULL
  • 주소 (address) — address — NOT NULL
  • 상태 (status) — String — NOT NULL — enum:["상품준비중", "상품배송중", "배송완료"]
  • 배송방법 (shipping) — String
  • 결제 (payment) — payment
  • 총가격 (totalPrice) — Number — NOT NULL
  • 주문상품목록 (productsInOrder) — [Cart]

주소 (adress)

  • 우편번호 (postalCode) — String — NOT NULL
  • 주소 (address1) — String — NOT NULL
  • 상세주소 (address2) — String

카테고리 (categories)

  • 카테고리ID (_id) — ObjectId — 기본 키 — NOT NULL
  • 이름 (name) — String — NOT NULL — unique
  • 상품 목록 (products) — [String]