ProductERD

Tables (3)

member (회원테이블)

  • id (식별값) — bigint — Primary key — NOT NULL
  • email (이메일) — string
  • password (비밀번호) — string
  • gender (성별) — string
  • phone_number (전화번호) — string
  • address (주소) — string
  • auth (권한) — string

product (상품 테이블)

  • id (식별값) — bigint — Primary key — NOT NULL
  • member_id (회원 식별값) — bigint — Foreign key → member.id — NOT NULL
  • title (상품명) — string
  • price (상품 가격) — bigint
  • quantity (상품 수량) — bigint
  • intro (상품 소개) — string
  • category (상품 카테고리) — string
  • img_url (상품 이미지 주소) — string

shoppingCart (장바구니)

  • id (식별값) — bigint — Primary key — NOT NULL
  • member_id (회원 식별값) — bigint — Foreign key → member.id — NOT NULL
  • product_id (상품 식별값) — bigint — Foreign key → product.id — NOT NULL
  • quantity (상품 수량) — bigint