Timo
Tables (9)
calendar_connections (구글 캘린더 연동)
- id (캘린더 ID) — BIGINT — Primary key — NOT NULL
- user_id (사용자 ID) — BIGINT — Foreign key → users.user_id — NOT NULL
- calendar_email (연동된 구글 계정 이메일) — VARCHAR(255) — NOT NULL
- access_token (구글 API access token) — VARCHAR(2048) — NOT NULL
- refresh_token (구글 API refresh token) — VARCHAR(2048)
- token_expires_at (access token 만료 시각) — DATETIME
- connected_at (연동 일시) — DATETIME — NOT NULL
repeat_rules
- repeat_rule_id — BIGINT — Primary key — NOT NULL
- todo_id (투두 id) — BIGINT — Foreign key → todos.todo_id — NOT NULL
- repeat_type (반복 유형(매일, 매주, 매달)) — VARCHAR(10) — NOT NULL
- weekdays (반복 요일) — VARCHAR(10)
- day_of_month (반복 날짜) — INT
subtasks
- subtask_id (하위 태스크 id) — BIGINT — Primary key — NOT NULL
- todo_id (투두 id) — BIGINT — Foreign key → todos.todo_id — NOT NULL
- content (하위 태스크 내용) — VARCHAR(50) — NOT NULL
- created_at (생성된 시각) — DATETIME — NOT NULL
- updated_at (수정된 시각) — DATETIME
tags (태그)
- tag_id (태그 id) — BIGINT — Primary key — NOT NULL
- user_id (사용자 id) — BIGINT — Foreign key → users.user_id
- tag_name (태그 이름) — VARCHAR(20) — NOT NULL
- is_default (기본 태그 여부) — BOOLEAN — NOT NULL
terms (이용 약관)
- id (약관 ID) — BIGINT — Primary key — NOT NULL
- type (약관 종류) — VARCHAR(20) — NOT NULL
- title (약관 제목) — VARCHAR(100) — NOT NULL
- content (약관 전문) — TEXT — NOT NULL
- created_at (등록 일시) — DATETIME — NOT NULL
timer_records (타이머 기록)
- id (타이머 기록 ID) — BIGINT — Primary key — NOT NULL
- todo_id (투두 id) — BIGINT — Foreign key → todos.todo_id — NOT NULL
- user_id (사용자 ID) — BIGINT — Foreign key → users.user_id — NOT NULL
- planned_seconds (시작 시점의 예상 소요 시간 스냅샷 (초)) — INT — NOT NULL
- extended_seconds (연장 누적 시간 (초)) — INT — NOT NULL
- started_at (타이머 최초 시작 시각) — DATETIME — NOT NULL
- ended_at (타이머 최종 종료 시각) — DATETIME
- actual_seconds (실제 수행 시간 (초)) — INT
- status (타이머 상태) — VARCHAR(20) — NOT NULL
- created_at (생성 일시) — DATETIME — NOT NULL
- ai_feedback (ai 피드백 정보) — VARCHAR(500)
timer_sessions (타이머 세션)
- id (타이머 세션 ID) — BIGINT — Primary key — NOT NULL
- timer_records_id (타이머 기록 ID) — BIGINT — Foreign key → timer_records.id — NOT NULL
- started_at ((시작) 시각) — DATETIME — NOT NULL
- paused_at (일시 정지 시각) — DATETIME — NOT NULL
todos (투두)
- todo_id (투두 id) — BIGINT — Primary key — NOT NULL
- user_id (사용자 id) — BIGINT — Foreign key → users.user_id — NOT NULL
- tag_id (태그 id) — BIGINT — Foreign key → tags.tag_id
- sorted_order (정렬 순서) — INT — NOT NULL
- memo (메모) — VARCHAR(300)
- scheduled_date (날짜) — DATE
- priority (우선순위) — VARCHAR(10)
- duration_time (예상 소요시간) — INT
- icon (아이콘) — VARCHAR(30)
- is_completed (완료 여부) — Boolean — NOT NULL
- created_at (생성된 시각) — DATETIME — NOT NULL
- updated_at (수정된 시각) — DATETIME
users (사용자)
- user_id (사용자 ID) — BIGINT — Primary key — NOT NULL
- provider (소셜 로그인 제공자) — VARCHAR(20) — NOT NULL
- provider_id (제공자별 고유 식별자) — VARCHAR(255) — NOT NULL
- name (이름) — VARCHAR(50) — NOT NULL
- email (이메일) — VARCHAR(255) — NOT NULL
- profile_image_url (구글 프로필 이미지 URL) — VARCHAR(255)
- wake_up_time (기상 시간) — TIME — NOT NULL
- bed_time (취침 시간) — TIME — NOT NULL
- prediction_accuracy (작업 시간 예측 정확도) — BIGINT — NOT NULL
- onboarding_completed (온보딩 완료 여부) — BOOLEAN — NOT NULL
- created_at (가입 일시) — DATETIME — NOT NULL
- language (서비스 언어) — VARCHAR(5) — NOT NULL
- updated_at (수정 일시) — DATETIME
- calender_connected (구글 캘린더 연동 여부) — BOOLEAN — NOT NULL
- calendar_email (연동한 구글 캘린더 이메일) — VARCHAR(255)