드개자

테이블 (6)

User (사용자)

  • user_id (사용자) — 기본 키
  • email (이메일) — Char
  • birthday (생일) — Date
  • gender (성별) — Char
  • image (프로필사진) — ProcessedImage
  • username (이름) — Char
  • created_at (생성일) — DateTime
  • updated_at (수정일) — DateTime

comment (댓글)

  • id (댓글) — 기본 키
  • product_id (제품) — 외래 키 → products.product_id
  • user_id (사용자) — 외래 키 → User.user_id
  • content (댓글내용) — Text
  • star (별점) — Integer
  • create_at (생성일) — DateTime
  • updated_at (수정일) — DateTime
  • image (리뷰사진) — ProcessedImage

follow (팔로우)

  • from_user_id (팔로잉) — 기본 키
  • to_user_id (팔로우) — 기본 키
  • user_id (사용자) — 외래 키 → User.user_id

perchase (구매)

  • id (구매) — 기본 키
  • user_id (사용자) — 외래 키 → User.user_id
  • product_id (제품) — 외래 키 → products.product_id
  • title (제품이름) — Char
  • count (수량) — Integer
  • price (가격) — Integer
  • created_time (구매시간) — DateTime

products (제품)

  • product_id (제품) — 기본 키
  • user_id (사용자) — 외래 키 → User.user_id
  • content (설명) — Text
  • star (별점) — Decimal
  • price (원가) — Integer
  • discount_rate (할인율) — Integer
  • discount_price (할인가) — Integer
  • volume (용량) — Integer
  • delivery_date (걸리는시간) — Integer
  • created_at (등록일) — DateTime
  • updated_at (업로드일) — DateTime
  • image (제품사진) — ProcessedImage
  • alcohol_percentage (도수) — Decimal
  • sweetness (단맛) — Char
  • sourness (신맛) — Char
  • bitterness (쓴맛) — Char
  • Field (탄산) — Boolean

products_like_users (관심상품)

  • id (관심상품) — 기본 키 — NOT NULL
  • product_id (제품) — 외래 키 → products.product_id
  • user_id (사용자) — 외래 키 → User.user_id