A302_ERD

테이블 (6)

반숙이 종류 (Character)

  • 반숙이 Id (bansoogiId) — Int — 기본 키 — NOT NULL
  • 이름(타이틀) (title) — String — NOT NULL
  • 이미지 (imageUrl) — String — NOT NULL
  • 실루엣 이미지 (silhouetteImageUrl) — String — NOT NULL
  • 움짤 (gifUrl) — String — NOT NULL
  • 설명 (description) — String — NOT NULL

오늘 활동 현황 (TodayRecord)

  • 활동 리포트 ID (recordId) — ObjectId — 기본 키 — NOT NULL
  • 누적 점수 (energyPoint) — Int — NOT NULL
  • 기상 이벤트 (standupCnt) — Int — NOT NULL
  • 스트레칭 이벤트 (stretchCnt) — Int — NOT NULL
  • 휴대폰 미사용 이벤트 (phoneOffCnt) — Int — NOT NULL
  • 누워있던 시간 (lyingTime) — Int — NOT NULL — 분 단위
  • 앉아있던 시간 (sittingTime) — Int — NOT NULL — 분 단위
  • 휴대폰 사용 시간 (phoneTime) — Int — NOT NULL — 분 단위
  • 아침 식사 여부 (breakfast) — Boolean — NOT NULL
  • 점심 식사 여부 (lunch) — Boolean — NOT NULL
  • 저녁 식사 여부 (dinner) — Boolean — NOT NULL
  • 상호작용 횟수 (interactionCnt) — Int — NOT NULL
  • 최근 상호작용 일시 (interactionLatestTime) — RealmInstant
  • 결산 페이지 확인 (isViewed) — Boolean — NOT NULL
  • 활동 종료 (isClosed) — Boolean — NOT NULL
  • 생성 일시 (createdAt) — RealmInstant — NOT NULL
  • 수정 일시 (updatedAt) — RealmInstant — NOT NULL

유저 (User)

  • 유저 ID (userId) — ObjectId — 기본 키 — NOT NULL
  • 닉네임 (nickname) — String — NOT NULL
  • 생일 (birthDate) — String — NOT NULL — "yyyy-MM-dd"의 format을 가짐
  • 프로필 이미지 (profileBansoogiId) — Int — 외래 키 → 반숙이 종류.반숙이 Id — NOT NULL
  • 희망 기상 시간 (wakeupTime) — String — NOT NULL — "HH:mm"의 format을 가짐
  • 희망 취침 시간 (sleepTime) — String — NOT NULL — "HH:mm"의 format을 가짐
  • 희망 아침 시간 (breakfastTime) — String — "HH:mm"의 format을 가짐
  • 희망 점심 시간 (lunchTime) — String — "HH:mm"의 format을 가짐
  • 희망 저녁 시간 (dinnerTime) — String — "HH:mm"의 format을 가짐
  • 상태 지속 알림 시간 (notificationDuration) — Int — NOT NULL — 5이상 60이하의 값을 가짐
  • 알림 설정 (notificationEnabled) — Boolean — NOT NULL
  • 배경음 설정 (bgSoundEnabled) — Boolean — NOT NULL
  • 효과음 설정 (effectSoundEnabled) — Boolean — NOT NULL

활동 로그 (ActivityLog)

  • 로그 ID (logId) — ObjectId — 기본 키 — NOT NULL
  • 어떤 행동을 했는지 (type) — String — NOT NULL
  • 어떤 상태에서 변화를 했는가 (fromState) — String — NOT NULL
  • 행동을 지속한 시간 (duration) — Int
  • 행동 일어난 날 (reactedDate) — String — NOT NULL — "yyyy-MM-dd"의 format을 가짐
  • 행동 일어난 시간 (reactedTime) — String — NOT NULL — "HH:mm"의 format을 가짐

활동 리포트 (RecordedReport)

  • 활동 리포트 ID (reportId) — ObjectId — 기본 키 — NOT NULL
  • 최종 점수 (finalEnergyPoint) — Int — NOT NULL
  • 획득한 반숙이 ID (bansoogiId) — Int — 외래 키 → 반숙이 종류.반숙이 Id — NOT NULL
  • 기상 이벤트 (standupCount) — Int — NOT NULL
  • 스트레칭 이벤트 (stretchCount) — Int — NOT NULL
  • 휴대폰 미사용 이벤트 (phoneOffCount) — Int — NOT NULL
  • 누워있던 시간 (lyingTime) — Int — NOT NULL
  • 앉아있던 시간 (sittingTime) — Int — NOT NULL
  • 휴대폰 사용 시간 (phoneTime) — Int — NOT NULL
  • 걸음 수 (walkCount) — Int — NOT NULL
  • 계단 오르기 (stairsClimbed) — Int — NOT NULL
  • 수면 시간 (sleepTime) — Int
  • 운동 시간 (exerciseTime) — Int — NOT NULL
  • 아침 식사 여부 (breakfast) — Boolean
  • 점심 식사 여부 (lunch) — Boolean
  • 저녁 식사 여부 (dinner) — Boolean
  • 기록 일시 (reportedDate) — String — NOT NULL — "yyyy-MM-dd"의 format을 가짐

획득한 반숙이 정보 (UnlockedCharacter)

  • 정보 ID (unlockId) — ObjectId — 기본 키 — NOT NULL — "$infoId-$bansoogiId" 형태로 저장
  • 반숙이 Id (bansoogiId) — Int — 외래 키 → 반숙이 종류.반숙이 Id — NOT NULL
  • 획득 횟수 (acquisitionCount) — Int — NOT NULL
  • 생성 일시 (createdAt) — RealmInstant — NOT NULL — 최초 획득일
  • 수정 일시 (updatedAt) — RealmInstant — NOT NULL — 최근 획득일