열졍콩

테이블 (17)

Product (상품)

  • PK (product_id) — int — 기본 키 — NOT NULL
  • 가격 (price) — int
  • 이름 (name) — varchar(50)
  • 성별 (gender) — varchar(1)
  • 분류 (type) — int
  • 상품 이미지경로 (image) — varchar(255)
  • 상품 출처 (origin) — varchar(255)
  • 조회수 (view) — int
  • 실시간 조회수 (time_view) — int
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME
  • 카테고리 ID (category_id) — int — 외래 키 → category.PK — NOT NULL
  • 쇼핑몰 ID (mall_id) — int — 외래 키 → mall.PK — NOT NULL
  • 최근 본 상품 ID (recent_id) — int — 외래 키 → recent.PK — NOT NULL
  • 유저 ID (user_id) — int — 외래 키 → user.PK — NOT NULL — 123
  • 최근 상품 기준 추천 상품 ID (recent_recommendation_id) — int — 외래 키 → recent_recommendation.PK — NOT NULL
  • 체형 기준 추천 상품 ID (user_recommendation_id) — int — 외래 키 → user_recommendation.PK — NOT NULL

bottom (하의)

  • PK (bottom_id) — int — 기본 키 — NOT NULL
  • 총장 (full) — double
  • 허리 (waist) — double
  • 허벅지 (thigh) — double
  • 밑위 (rise) — double
  • 밑단 (bottom_width) — double
  • 엉덩이단면 (hip_width) — double
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME

category (카테고리)

  • PK (category_id) — int — 기본 키 — NOT NULL
  • 이름 (name) — varchar(10)
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME
  • 세부 카테고리 ID (sub_cateogry_id) — int — 외래 키 → sub_category.PK — NOT NULL

dress (원피스)

  • PK (dress_id) — int — 기본 키 — NOT NULL
  • 총장 (full) — double
  • 어깨 너비 (shoulder) — double
  • 허리 (waist) — double
  • 허벅지 (thigh) — double
  • 암홀 (arm_hall) — double
  • 엉덩이단면 (hip) — double
  • 소매 (sleeve) — double
  • 소매 단면 (sleeve_width) — double
  • 밑단 (bottom_width) — double
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME

favorite (즐겨찾기 쇼핑몰)

  • PK (favorite_id) — int — 기본 키 — NOT NULL
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME
  • 즐겨찾기 쇼핑몰 (mall_id) — int — 외래 키 → mall.PK — NOT NULL
  • 유저 ID (user_id) — int — 외래 키 → user.PK — NOT NULL — 123

mall (쇼핑몰)

  • PK (mall_id) — int — 기본 키 — NOT NULL
  • 이름 (name) — varchar(30)
  • 링크 (url) — varchar(255)
  • 소개 (description) — varchar(255)
  • 이미지 (image) — varchar(255)
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME

measurement (치수)

  • PK (measurement_id) — int — 기본 키 — NOT NULL
  • 키 (height) — double
  • 몸무게 (weight) — double
  • 팔 길이 (arm) — double
  • 다리 길이 (leg) — double
  • 어깨 너비 (shoulder) — double
  • 허리 둘레 (waist) — double
  • 가슴 둘레 (chest) — double
  • 허벅지 둘레 (thigh) — double
  • 엉덩이 둘레 (hip) — double
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME
  • 유저 ID (user_id) — int — 외래 키 → user.PK — NOT NULL — 123

outer (아우터)

  • PK (outer_id) — int — 기본 키 — NOT NULL
  • 총장 (full) — double
  • 어깨 너비 (shoulder) — double
  • 가슴 단면 (chest) — double
  • 소매 (sleeve) — double
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME

product_description (상품 설명 이미지)

  • PK (product_description_id) — int — 기본 키 — NOT NULL
  • 이미지 경로 (url) — varchar(255)
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME
  • 상품 ID (product_id) — int — 외래 키 → Product.PK — NOT NULL

rank (개인별 쇼핑몰 랭킹)

  • PK (rank_id) — int — 기본 키 — NOT NULL
  • 조회수 (view) — int
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME
  • 쇼핑몰 ID (mall_id) — int — 외래 키 → mall.PK — NOT NULL
  • 유저 ID (user_id) — int — 외래 키 → user.PK — NOT NULL — 123

recent (최근 본 상품)

  • PK (recent_id) — int — 기본 키 — NOT NULL
  • 조회 시각 (timestamp) — DATETIME
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME
  • 유저 ID (user_id) — int — 외래 키 → user.PK — NOT NULL — 123

recent_recommendation (추천 상품 of 최근 본 상품)

  • PK (recent_recommendation_id) — int — 기본 키 — NOT NULL
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME
  • 유저 ID (user_id) — int — 외래 키 → user.PK — NOT NULL — 123

size (사이즈)

  • PK (size_id) — int — 기본 키 — NOT NULL
  • 사이즈명 (name) — varchar(10)
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME
  • 상체 ID (top_id) — int — 외래 키 → top.PK — NOT NULL
  • 하체 ID (bottom_id) — int — 외래 키 → bottom.PK — NOT NULL
  • 상품 ID (product_id) — int — 외래 키 → Product.PK — NOT NULL
  • 아우터 ID (outer_id) — int — 외래 키 → outer.PK — NOT NULL
  • 원피스 ID (dress_id) — int — 외래 키 → dress.PK — NOT NULL

sub_category (세부 카테고리)

  • PK (sub_cateogry_id) — int — 기본 키 — NOT NULL
  • 이름 (name) — varchar(10)
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME

top (상의)

  • PK (top_id) — int — 기본 키 — NOT NULL
  • 총장 (full) — double
  • 어깨 너비 (shoulder) — double
  • 가슴 단면 (chest) — double
  • 소매 (sleeve) — double
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME

user (유저)

  • PK (user_id) — int — 기본 키 — NOT NULL — 123
  • 닉네임 (username) — varchar(20)
  • 패스워드 (password) — varchar(15)
  • 이메일 (email) — varchar(64)
  • 성별 (gender) — varchar(1)
  • 태어난 년도 (year) — int
  • 나이대 (age_range) — int
  • 태어난 월 (month) — int
  • 태어난 일 (day) — int
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME
  • 치수 ID (measurement_id) — int — 외래 키 → measurement.PK — NOT NULL

user_recommendation (추천 상품 of 비슷한 체형 고객 pick)

  • PK (user_recommendation_id) — int — 기본 키 — NOT NULL
  • 생성 날짜 (created_at) — DATETIME
  • 최종 수정 날짜 (updated_at) — DATETIME
  • 유저 ID (user_id) — int — 외래 키 → user.PK — NOT NULL — 123