umm

Tables (5)

category

  • category_id — BIGINT — Primary key — NOT NULL
  • user_id — BIGINT — Foreign key → user.유저ID — NOT NULL
  • name — VARCHAR(50) — NOT NULL — 카테고리명
  • color — VARCHAR(7) — NOT NULL — 색상 HEX (#RRGGBB)
  • created_at — DATETIME — NOT NULL

daily_stat

  • stat_id — BIGINT — Primary key — NOT NULL
  • user_id — BIGINT — Foreign key → user.유저ID — NOT NULL
  • stat_date — DATE — NOT NULL — 통계 날짜
  • total_count — INT — NOT NULL — 전체 할 일 수
  • done_count — INT — NOT NULL — 완료 수
  • completion_rate — FLOAT — NOT NULL — 달성률 (%)

subtask

  • subtask_id — BIGINT — Primary key — NOT NULL
  • todo_id — BIGINT — Foreign key → todo.todo_id — NOT NULL
  • title — VARCHAR(255) — NOT NULL — 세부 항목
  • is_completed — TINYINT(1) — NOT NULL
  • sort_order — INT — NOT NULL

todo

  • todo_id — BIGINT — Primary key — NOT NULL
  • user_id — BIGINT — Foreign key → user.유저ID — NOT NULL
  • category_id — BIGINT — Foreign key → category.category_id — 미분류 허용
  • title — VARCHAR(255) — NOT NULL — 할 일 제목
  • memo — TEXT — 메모
  • due_date — DATE — 마감/표시일 (캘린더)
  • due_time — TIME — 시간 (선택)
  • is_completed — TINYINT(1) — NOT NULL — 완료 여부
  • priority — INT — NOT NULL — 우선순위
  • is_repeat — TINYINT(1) — NOT NULL — 반복 여부
  • repeat_rule — VARCHAR(100) — 반복 규칙 (예: DAILY, WEEKLY)
  • completed_at — DATETIME — 완료 시각
  • created_at — DATETIME — NOT NULL
  • updated_at — DATETIME — NOT NULL

user

  • 유저ID (user_id) — bigint — Primary key — NOT NULL
  • 아이디 (id) — VARCHAR(255) — NOT NULL — 로그인 이메일
  • 비밀번호 (password) — VARCHAR(255) — NOT NULL — 해시된 비밀번호
  • nickname — VARCHAR(50) — NOT NULL — 닉네임
  • profile_image — VARCHAR(500) — 프로필 이미지 URL
  • created_at — DATETIME — NOT NULL
  • updated_at — DATETIME — NOT NULL