CapstonDesign

Tables (5)

category (카테고리)

  • category_id (카테고리 ID) — Primary key — NOT NULL
  • name (카테고리 이름)
  • is_custom (사용자 입력 여부)

interaction (통합 ( 북마크 / 좋아요 ))

  • interaction_id (통합 ID) — Primary key — NOT NULL
  • spot_id (명소 ID) — Foreign key → spot.spot_id — NOT NULL
  • user_id (회원 ID) — Foreign key → user.user_id — NOT NULL
  • type (타입( like / bookmark ))

spot (명소)

  • spot_id (명소 ID) — Primary key — NOT NULL
  • user_id (회원 ID) — Foreign key → user.user_id — NOT NULL
  • spot_name (명소 이름)
  • like (좋아요 수)
  • imageUrl (사진)
  • extraInfo (특이사항)
  • created_at (생성일)
  • updated_at (수정일)

spot-category (명소-카테고리 연결)

  • spot_category_id (명소-카테고리 연결 ID) — Primary key — NOT NULL
  • spot_id (명소 ID) — Foreign key → spot.spot_id — NOT NULL
  • category_id (카테고리 ID) — Foreign key → category.category_id — NOT NULL

user (유저)

  • user_id (회원 ID) — Primary key — NOT NULL
  • name (이름)
  • email (이메일)
  • password (비밀번호)
  • nickname (별명)
  • profile (프로필 이미지)
  • created_at (생성일)
  • updated_at (수정일)