Backpacking_ERD

테이블 (13)

가이드 권한 테이블 (guide_roles)

  • guide_roles_id (가이드 권한 식별자) — not null — 기본 키 — NOT NULL
  • roles (가이드 권한) — not null

가이드 상세 정보 (guide_profile)

  • guide_profile_id (가이드 상세 정보 식별자) — not null — 기본 키 — NOT NULL
  • starRating (별점) — not null
  • tour_theme (메인 여행 테마) — not null
  • cumulated_proposal (누적 여행 계획 제안 수) — not null

가이드 제안 로그 테이블 (guide_log)

  • guide_log_id (회원 로그 식별자) — not null — 기본 키 — NOT NULL
  • reservation_date (여행 일정 예약 일자) — not null
  • guide_city (가이드한 도시) — not null
  • tour_duration (가이드 기간) — not null
  • reservation_status (예약 상태) — not null
  • guide_id (가이드 정보 식별자) — not null — 외래 키 → 가이드 테이블.guide_id — NOT NULL

가이드 테이블 (guide)

  • guide_id (가이드 정보 식별자) — not null — 기본 키 — NOT NULL
  • email (이메일) — not null
  • phone_number (전화번호) — not null
  • name (이름) — not null
  • nation (거주 국가) — not null
  • city (거주 도시) — not null
  • detail_address (상세 주소) — not null
  • roles (가이드 권한) — not null
  • guide_roles_id (가이드 권한 식별자) — not null — 외래 키 → 가이드 권한 테이블.guide_roles_id — NOT NULL
  • guide_profile_id (가이드 상세 정보 식별자) — not null — 외래 키 → 가이드 상세 정보.guide_profile_id — NOT NULL

관광 테이블 (tour)

  • tour_id (관광 식별자) — not null — 기본 키 — NOT NULL
  • destination (관광지 이름) — not null
  • expected_tour_time (예상 관광 시간) — not null
  • daily_tour_id (알일 여행 계획 식별자) — not null — 외래 키 → 일일 여행 계획.daily_tour_id — NOT NULL
  • tour_start_time (희망 관광 시작 시간) — not null
  • tour_end_time (희망 관광 종료 시간) — not null

메인 여행 테마 (main_theme)

  • main_theme_id (메인 여행 테마 식별자) — not null — 기본 키 — NOT NULL
  • theme_name (테마) — not null
  • guide_profile_id (가이드 상세 정보 식별자) — not null — 외래 키 → 가이드 상세 정보.guide_profile_id — NOT NULL

여행 계획 제안 테이블 (tour_proposal)

  • proposal_id (여행 계획 제안 식별자) — not null — 기본 키 — NOT NULL
  • tour_start_date (여행 시작 날짜) — not null
  • tour_end_date (여행 종료 날짜) — not null
  • tour_city (관광 도시) — not null
  • stay_duration (여행 기간) — not null
  • proposal_state (제안 상태) — not null
  • number_of_party (일행 수) — not null
  • reservation_status (예약 상태) — not null
  • tourist_name (여행객 이름) — not null
  • guide_id (가이드 정보 식별자) — not null — 외래 키 → 가이드 테이블.guide_id — NOT NULL
  • member_id (회원 식별자) — not null — 외래 키 → 여행객 테이블.member_id — NOT NULL

여행 후기 테이블 (tour_plan_review)

  • tour_plan_review_id (여행 계획 후기 식별자) — not null — 기본 키 — NOT NULL
  • content (여행 후기 글) — not null
  • star_rating (별점) — not null
  • like_count (좋아요 갯수) — not null
  • member_id (회원 식별자) — not null — 외래 키 → 여행객 테이블.member_id — NOT NULL

여행객 테이블 (member)

  • member_id (회원 식별자) — not null — 기본 키 — NOT NULL
  • phone_number (전화번호) — not null
  • name (이름) — not null
  • email (이메일) — not null
  • nation (거주국가) — not null
  • city (거주 도시) — not null
  • password (비밀번호) — not null
  • detail address (상세 주소) — not null
  • Key (유저 권한 식별자) — not null — 외래 키 → 유저 권한 테이블.user_roles_id — NOT NULL
  • createdAt (회원 가입 일자) — not null
  • modifiedAt (회원 정보 수정 일자) — not null

유저 권한 테이블 (user_roles)

  • user_roles_id (유저 권한 식별자) — not null — 기본 키 — NOT NULL
  • roles (유저 권한) — not null

일일 여행 계획 (daily_tour)

  • daily_tour_id (알일 여행 계획 식별자) — not null — 기본 키 — NOT NULL
  • day_of_tour (여행 일) — not null
  • date (여행 일자) — not null
  • proposal_id (여행 계획 제안 식별자) — not null — 외래 키 → 여행 계획 제안 테이블.proposal_id — NOT NULL

좋아요 기록 테이블 (like_log)

  • like_log_id (좋아요 기록 식별자) — not null — 기본 키 — NOT NULL
  • createdAt (좋아요 누른 일자) — not null
  • modifiedAt (좋아요 변경 일자) — not null
  • like_status (좋아요 누른 상태) — not null
  • tour_plan_review_id (여행 계획 후기 식별자) — not null — 외래 키 → 여행 후기 테이블.tour_plan_review_id — NOT NULL

회원 로그 테이블 (user_log)

  • user_log_id (회원 로그 식별자) — not null — 기본 키 — NOT NULL
  • destination (여행 목적지) — not null
  • guide_name (가이드 이름) — not null
  • stay_duration (여행 기간) — not null
  • member_id (회원 식별자) — not null — 외래 키 → 여행객 테이블.member_id — NOT NULL