Shopping

Tables (6)

cart

  • id (cart_id) — INT — Primary key — NOT NULL
  • 유저아이디 (user_id) — VARCHAR(20) — Foreign key → user.유저아이디 — NOT NULL
  • 상품아이디 (product_id) — INT — NOT NULL
  • 수량 (count) — INT — NOT NULL

comment

  • id (comment_id) — INT — Primary key — NOT NULL
  • 내용 (content) — TEXT — NOT NULL
  • 상품아이디 (product_id) — INT — NOT NULL
  • 가입일 (created_at) — DATETIME — NOT NULL
  • 수정일 (updated_at) — DATETIME — NOT NULL
  • 유저아이디 (user_id) — VARCHAR(20) — Foreign key → user.유저아이디 — NOT NULL

likes

  • 상품아이디 (product_id) — INT — NOT NULL
  • 유저아이디 (user_id) — VARCHAR(20) — Foreign key → user.유저아이디 — NOT NULL

order

  • id (order_id) — INT — Primary key — NOT NULL
  • 유저아이디 (user_id) — VARCHAR(20) — Foreign key → user.유저아이디 — NOT NULL
  • 주문일 (created_at) — DATETIME — NOT NULL

order_detail

  • id (order_detail) — INT — Primary key — NOT NULL
  • id (order_id) — INT — Foreign key → order.id — NOT NULL
  • 상품아이디 (product_id) — VARCHAR(20) — NOT NULL
  • 수량 (count) — INT — NOT NULL
  • 주문액 (price) — INT — NOT NULL

user

  • 유저아이디 (user_id) — VARCHAR(20) — Primary key — NOT NULL
  • 비밀번호 (password) — VARCHAR(50) — NOT NULL
  • 회원명 (user_name) — VARCHAR(20) — NOT NULL
  • 가입일 (created_at) — DATETIME — NOT NULL
  • 수정일 (updated_at) — DATETIME — NOT NULL