MOIVE ERD
Tables (15)
ActivityPreference (활동 선호)
- id (활동선호 ID) — NOT NULL — Primary key — NOT NULL
- condition_id (참가조건 ID) — NOT NULL — Foreign key → ParticipantCondition.id — NOT NULL
- activity_type (활동 유형) — NOT NULLL
Meeting (모임)
- id (모임 ID) — NOT NULL — Primary key — NOT NULL
- creator_id (개설자 ID) — NOT NULL — Foreign key → User.id
- confirmed_place_id (확정 장소 ID) — NULL — Foreign key → PlaceCandidate.id — NOT NULL
- name (모임명) — NOT NULL
- meeting_date (모임 날짜) — NOT NULL
- start_time (시작시간) — NOT NULL
- end_time (종료 시간) — NULL
- status (진행상태) — NOT NULL
- created_at (생성 일시) — NOT NULL
- updated_at (수정 일시) — NOT NULL
MeetingInvite (초대 링크)
- id (초대링크 ID) — NOT NULL — Primary key — NOT NULL
- meeting_id (모임 ID) — NOT NULL — Foreign key → Meeting.id — NOT NULL
- invite_code (초대코드) — NOT NULL,UNIQUE
- expired_at (만료 일시) — NULL
- created_at (생성 일시) — NOT NULL
MeetingParticipant (모임참가자)
- id (모임참가자 ID) — NOT NULL — Primary key — NOT NULL
- meeting_id (모임 ID) — NOT NULL — Foreign key → Meeting.id — NOT NULL
- user_id (회원ID) — NOT NULL — Foreign key → User.id
- condition_completed (조건입력 완료 여부) — NOT NULL
- joined_at (참여 일시) — NOT NULL
- left_at (나간 일시) — NULL
MeetingPurpose (모임 목적)
- id (모임 목적 ID) — NOT NULL — Primary key — NOT NULL
- meeting_id (모임 ID) — NOT NULL
- purpose_type (목적 유형) — NOT NULL
ParticipantCondition (참가조건)
- id (참가조건 ID) — NOT NULL — Primary key — NOT NULL
- participant_id (모임참가자 ID) — NOT NULL,UNIQUE — Foreign key → MeetingParticipant.id — NOT NULL
- departure_name (출발 위치명) — NOT NULL
- departure_latitude (출발 위도) — NOT NULL
- departure_longitude (출발 경도) — NOT NULL
- max_travel_minutes (최대 이동 시간) — NOT NULL
- budget_type (예산 범위) — NOT NULL
- created_at (생성일시) — NOT NULL
- updated_at (수정 일시) — NOT NULL
ParticipantRoute (참가자이동경로)
- id (이동경로 ID) — NOT NULL — Primary key — NOT NULL
- region_candidate_id (지역후보 ID) — NOT NULL — Foreign key → RegionCandidate.id — NOT NULL
- participant_id (모임참가자 ID) — NOT NULL — Foreign key → MeetingParticipant.id — NOT NULL
- total_minutes (총 이동 시간) — NOT NULL
- walking_minutes (도보 시간) — NOT NULL
- transfer_count (환승 횟수) — NOT NULL
- created_at (생성 일시) — NOT NULL
PlaceCandidate (장소후보)
- id (장소후보 ID) — NOT NULL — Primary key — NOT NULL
- region_candidate_id (지역후보 ID) — NOT NULL — Foreign key → RegionCandidate.id — NOT NULL
- kakao_place_id (카카오 장소 ID) — NOT NULL
- name (장소명) — NOT NULL
- category (장소 카테고리) — NOT NULL
- address (주소) — NOT NULL
- latitude (위도) — NOT NULL
- longitude (경도) — NOT NULL
- place_url (카카오맵 URL) — NULL
- total_score (추천 점수) — NULL
- created_at (생성 일시) — NOT NULL
- status (후보 상태) — NOT NULL
PlaceVote (장소투표)
- id (장소투표 ID) — NOT NULL — Primary key — NOT NULL
- participant_id (모임참가자 ID) — NOT NULL — Foreign key → MeetingParticipant.id — NOT NULL
- place_candidate_id (장소후보 ID) — NOT NULL — Foreign key → PlaceCandidate.id — NOT NULL
- created_at (투표 일시) — NOT NULL
RegionCandidate (추천지역후보)
- id (지역후보 ID) — NOT NULL — Primary key — NOT NULL
- recommendation_id (지역추천 ID) — NOT NULL — Foreign key → RegionRecommendation.id — NOT NULL
- region_name (지역명) — NOT NULL
- latitude (지역 중심 위도) — NOT NULL
- longitude (지역 중심 경도) — NOT NULL
- rank (추천 순위) — NOT NULL
- average_travel_minutes (평균 이동 시간) — NOT NULL
- created_at (생성 일시) — NOT NULL
- max_travel_minutes (최대 이동 시간) — NOT NULL
- min_travel_minutes (최소 이동 시간) — NOT NULL
- travel_time_gap (이동 시간 차이) — NOT NULL
RegionRecommendation (지역추천)
- id (지역추천 ID) — NOT NULL — Primary key — NOT NULL
- meeting_id (모임 ID) — NOT NULL — Foreign key → Meeting.id — NOT NULL
- status (추천상태) — NOT NULL
- created_at (생성 일시) — NOT NULL
TravelPreference (이동선호)
- id (이동선호 ID) — NOT NULL — Primary key — NOT NULL
- condition_id (참가조건 ID) — NOT NULL — Foreign key → ParticipantCondition.id — NOT NULL
- preference_type (이동선호 유형) — NOT NULL
User (회원)
- id (회원ID) — NOT NULL — Primary key
- kakao_member_id (카카오 회원 ID) — NOT NULL,UNIQUE — NOT NULL
- nickname (닉네임) — NOT NULL
- profile_image_url (프로밀 이미지) — NOT NULL
- email (카카오 이메일) — NOT NULL
- introduction (한 줄 소개) — NULL — NOT NULL
- status (회원 상태) — NOT NULL
- created_at (생성 일시) — NOT NULL
- updated_at (수정 일시) — NOT NULL
UserAgreement (약관 동의)
- id (약관동의 ID) — NOT NULL — Primary key — NOT NULL
- user_id (회원ID) — NOT NULL — Foreign key → User.id
- terms_type (약관 유형) — NOT NULL
- terms_version (약관 버전) — NOT NULL
- agreed (동의 여부) — NOT NULL
- agreed_at (동의 일시) — NOT NULL
UserNotification (알림 설정)
- id (알림설정 ID) — NOT NULL — Primary key — NOT NULL
- user_id (회원ID) — NOT NULL,UNIQUE — Foreign key → User.id
- push_enabled (푸시 알림 여부) — NOT NULL
- marketing_enabled (마케팅 알림 여부) — NOT NULL
- updated_at (수정 일시) — NOT NULL