캡스톤 ERD

테이블 (8)

리뷰 (review)

  • 리뷰번호 (review_id) — primary key — 기본 키 — NOT NULL
  • 회원아이디 (member_id) — primary key — 외래 키 → 회원.회원아이디 — NOT NULL
  • 상품아이디 (item_id) — primary key — 외래 키 → 상품.상품아이디 — NOT NULL
  • 리뷰 제목 (title) — not null
  • 리뷰 내용 (content) — not null
  • 리뷰 별점 (star) — null
  • 리뷰 사진 (review_image) — null
  • 리뷰 개수 (review_count) — null

상품 (item)

  • 상품아이디 (item_id) — primary key — 기본 키 — NOT NULL
  • 회사명 (company) — not null
  • 상품명 (item_name) — not null
  • 가격 (price) — not null
  • 사이트 (site_url) — not null
  • 제품성별 (item_gender) — not null
  • 카테고리 (category) — not null

신체정보 (body)

  • 회원아이디 (member_id) — primary key — 외래 키 → 회원.회원아이디 — NOT NULL
  • 어깨 (shoulder) — null
  • 허리 (waist) — null
  • 힙 (hip) — null
  • 팔 (arms) — null
  • 다리 (legs) — null
  • 촬영아이디 (picture_id) — 외래 키 → 촬영.촬영아이디 — NOT NULL

장바구니 (cart)

  • 장바구니번호 (cart_id) — primary key — 기본 키 — NOT NULL
  • 상품아이디 (item_id) — not null — 외래 키 → 상품.상품아이디 — NOT NULL
  • 회원아이디 (member_id) — not null — 외래 키 → 회원.회원아이디 — NOT NULL

찜 (wish)

  • 찜아이디 (wish_id) — primary key — 기본 키 — NOT NULL
  • 회원아이디 (member_id) — not null — 외래 키 → 회원.회원아이디 — NOT NULL
  • 상품아이디 (item_id) — not null — 외래 키 → 상품.상품아이디 — NOT NULL

촬영 (picture)

  • 촬영아이디 (picture_id) — primary key — 기본 키 — NOT NULL
  • 사진 (picture)
  • 회원아이디 (member_id) — 외래 키 → 회원.회원아이디 — NOT NULL

추천 (recommend)

  • 추천고유번호 (recom_id) — primary key — 기본 키 — NOT NULL
  • 회원아이디 (member_id) — 외래 키 → 회원.회원아이디 — NOT NULL
  • 상품아이디 (item_id) — 외래 키 → 상품.상품아이디 — NOT NULL

회원 (member)

  • 회원아이디 (member_id) — primary key — 기본 키 — NOT NULL
  • 이메일 (email) — unique
  • 비밀번호 (password) — not null
  • 이름 (username) — not null
  • 성별 (gender) — not null
  • 나이 (age) — not null