KOSMI
Tables (6)
MEMBER (Untitled)
- id (Key) — Primary key — NOT NULL
- pwd (Field)
- email (Field2)
- created_at (Field3)
- delete_at (Field4)
- is_delete (Field5)
- name (Field6)
brush_goal (Untitled6)
- member_id (Key) — Foreign key → MEMBER.id — NOT NULL
- update_at (Field2)
- morning_goal (아침 목표 시간)
- evening_goal (저녁 목표 시간)
- afternoon_goal (점심 목표 시간)
brush_streak (Untitled4)
- member_id (Key) — Foreign key → MEMBER.id — NOT NULL
- current_streak_days (현재 연속 일수)
- best_streak_days (최고 연속 일수)
- as_of_date (계산 기준일)
report (Untitled3)
- member_id (Key) — Foreign key → MEMBER.id — NOT NULL
- date (Field)
- sessions (일일 세션)
- completed_sessions (완주 세션)
- avg_active_seconds (평균 재생 시간)
- avg_completion_rate (평균 완주율)
- total_pause_count (하루 일시 정지 누적)
- adherence_hit (하루 목표 달성 여부)
- first_session_at (최초 세션)
- last_session_at (최종 세션)
- calc_at (리포트 업데이트)
time_session (Untitled2)
- session_id (Key) — Primary key — NOT NULL
- member_id (Key2) — Foreign key → MEMBER.id — NOT NULL
- goal_seconde (목표 양치 시간)
- started_at (타이머 시작 시간)
- ended_at (타이머 종료/이탈)
- status (완료/중단/시간초과 등)
- active_seconds (재생 중 누적 시간)
- pause_count (정지 횟수)
- resume_count (재개 횟수)
- exit_reason (나가기 원인)
- is_completed (완주 여부)
- created_at (Field10)
- updated_at (Field11)
timer_event (Untitled5)
- event_id (Key) — Primary key — NOT NULL
- event_type (이벤트 종류)
- event_at (이벤트 시각)
- position_seconds (타이머 상 진행 위치)
- session_id (Key2) — Foreign key → time_session.session_id — NOT NULL