위밋플레이스

테이블 (17)

공지사항 (notices)

  • _id — 기본 키 — NOT NULL
  • author (작성자) — default = '운영자'
  • title (제목) — required
  • content (내용) — required
  • htmlContent (HTML 콘텐츠) — default = ''
  • type (유형) — default = 'normal'
  • validDate (유효 기간)
  • createdAt
  • updatedAt

랭킹 정보 (RankingDetail)

  • email (이메일)
  • arrivalTime (도착 시간)

로그인 정보 (logins)

  • _id — 기본 키 — NOT NULL
  • email (이메일) — required — 외래 키 → 유저._id — NOT NULL
  • status (상태) — required
  • createdAt
  • updatedAt

메타데이터 (meta)

  • _id — 기본 키 — NOT NULL
  • key (키) — required, unique
  • value (값) — required

모임 (meetings)

  • _id — 기본 키 — NOT NULL
  • title (제목)
  • meetingDatetime (모임 시간)
  • members (참여자 목록) — 우측 참고
  • type (모임 유형) — default = 'none'
  • place (모임 장소) — 우측 참고
  • status (상태) — default = 'active'
  • ranking (랭킹) — 우측 참고
  • createdAt
  • updatedAt

문의사항 (contacts)

  • _id — 기본 키 — NOT NULL
  • email (이메일) — required — 외래 키 → 유저._id — NOT NULL
  • content (문의 내용)
  • replyInfo.date (답장 시간)
  • replyInfo.replyContent (답장 내용)

수신인 정보 (ReceiverSchema)

  • email (이메일) — 외래 키 → 유저._id — NOT NULL
  • isChecked (알람 확인 여부) — default: false

알람 (alarms)

  • _id — 기본 키 — NOT NULL
  • sender.email (발신자 이메일) — required — 외래 키 → 유저._id — NOT NULL
  • sender.thumbnail (발신자 썸네일 URL) — 외래 키 → 유저._id — NOT NULL
  • receiver (수신인 정보) — 하단 참고
  • type (알람 종류)
  • message (알람 메시지)
  • detail.id (알람 상세 정보의 id) — default = 'none'
  • detail.type (알람 상세 정보의 종류) — default = 'none'
  • createdAt
  • updatedAt

위치 (locations)

  • _id — 기본 키 — NOT NULL
  • email (이메일) — required
  • coord.latitude (좌표 위도 값)
  • coord.longitude (좌표 경고 값)
  • speed (속도) — default = '0'
  • battery (배터리)
  • createdAt
  • updatedAt

유저 (users)

  • _id — 기본 키 — NOT NULL
  • email (이메일) — required, unique
  • password.salt (비밀번호 salt) — required
  • password.key (비밀번호 암호화 값) — required
  • mobilephone.countryCode (전화번호 국가번호)
  • mobilephone.globalPhone (전화번호 국제번호)
  • mobilephone.localPhone (전화번호 지역번호)
  • searchId (검색 ID) — default: null
  • nickname (닉네임) — required
  • thumbnail (썸네일 URL(작은 이미지)) — default: null
  • profile (프로필 URL(큰 이미지)) — default: null
  • version (사용하고 있는 버전)
  • push.type (사용하고 있는 OS)
  • push.token (PUSH에 사용하는 토큰) — default: null
  • deviceId (로그인 된 Device ID 값) — default: null
  • status (유저 현재 상태(로그아웃 등)) — default: 'active'
  • places (즐겨찾기 한 장소(현재 사용 X))
  • lastLoginDate (최종 로그인 시간(현재 사용 X))
  • lastPushDate (최종 Silent Push 수신 시간(추후 삭제))
  • setting.shareLocation (위치 공유 여부(현재는 사용 안해서 기본값 X)) — default: false
  • setting.transportation (사용하는 교통수단) — default: 'public'
  • setting.alarm (알람 수신 여부) — default: true
  • createdAt
  • updatedAt

유저 기본 정보 (UserDefault)

  • email (이메일)
  • thumbnail (썸네일 URL)
  • nickname (닉네임) — required, unique, index

유저토큰 (usertokens)

  • _id — 기본 키 — NOT NULL
  • email (이메일) — required
  • mobilephone (지역번호)
  • requestTime (요청 시간)
  • token (암호화 된 인증번호)
  • createdAt
  • updatedAt

인증토큰 (authtokens)

  • _id — 기본 키 — NOT NULL
  • email (이메일) — required
  • mobilephone.countryCode (전화번호 국가번호)
  • mobilephone.globalPhone (전화번호 국제번호)
  • mobilephone.localPhone (전화번호 지역번호)
  • requestTime (요청 시간)
  • token (암호화 된 인증번호)
  • type (계정 찾기 유형)
  • createdAt
  • updatedAt

장소 정보 (PlaceDetail)

  • name (장소명) — required
  • coordinates.latitude (장소의 위도)
  • coordinates.longitude (장소의 경도)
  • address (장소의 주소)

참여자 상세 정보 (MemberDetail)

  • email (이메일) — required — 외래 키 → 유저._id — NOT NULL
  • thumbnail (썸네일 URL) — default = 'null'
  • nickname (닉네임) — required
  • startingLocation.latitude (출발위치 위도 값)
  • startingLocation.longitude (출발위치 경도 값)
  • transportation (사용하는 교통수단)
  • direction.totalDistance (총 이동 거리)
  • direction.totalTime (총 이동 시간)
  • steps (상세 이동 경로(대중교통))
  • coordinates (상세 이동 경로 좌표(polyline))
  • grade (모임 등급) — default = 'member'

친구 (friends)

  • _id — 기본 키 — NOT NULL
  • email (이메일) — required, unique — 외래 키 → 유저._id — NOT NULL
  • friends (친구 목록) — 좌측 참고
  • blocked (차단 당한 목록) — 좌측 참고
  • blocking (차단 중인 목록) — 좌측 참고
  • requested (요청 받은 목록) — 좌측 참고
  • requesting (요청 중인 목록) — 좌측 참고

친구 상세 정보 (FriendDetail)

  • email (이메일) — required
  • thumbnail (썸네일 URL)
  • nickname (닉네임)
  • mobilephone.countryCode (전화번호 국가번호)
  • mobilephone.globalPhone (전화번호 국제번호)
  • mobilephone.localPhone (전화번호 지역번호)
  • searchId (검색 ID) — default: null
  • addedTime (친구 추가 시간) — required
  • transportation (사용하는 교통수단) — required, unique, index