To-do List

테이블 (5)

리스트 (Untitled3)

  • 고유아이디 (_id) — ObjectId — 기본 키 — NOT NULL
  • 소속 프로젝트 (projectId) — ObjectId — 외래 키 → 프로젝트.고유 아이디 — NOT NULL
  • 유저아이디 (userId) — ObjectId
  • 리스트명 (name) — String
  • 설명 (description) — String
  • 전체 할일 수 (stats.totalTodos) — Number
  • 완료 할일 수 (stats.completedTodos) — Number
  • 완료율 (stats.completionRate) — Number
  • 삭제 여부 (isDeleted) — Boolean
  • 순서 (order) — Number
  • 생성일시 (createdAt) — Date
  • 수정일시 (updatedAt)

습관 (Untitled5)

  • 고유 아이디 (_id) — ObjectId — 기본 키 — NOT NULL
  • 유저 아이디 (userId) — ObjectId — 외래 키 → 유저 정보.고유아이디 — NOT NULL
  • 습관명 (title) — String
  • 설명 (description) — String
  • 우선순위 (priority) — Number(1-3)
  • 반복주기형식 (repeatType) — String(enum: daily/weekly/monthly/custom)
  • 데일리 (reapeatConfig.everydays) — Boolean
  • 매주(특정 요일) (repeatConfig.weekdays) — Number(요일 배열 인덱스)
  • 매월(특정 일자) (repeatConfig.monthdays) — Number(날짜 배열 인덱스)
  • 시작일 (startDate) — Date
  • 종료일 (endDate) — Date
  • D+/D-day (habitType) — String(enum: D+/D-day)
  • 전체일수 (stats.totalDays) — Number
  • 완료일수 (stats.completedDays) — Number
  • 현재연속 (stats.currentStreak) — Number
  • 최장연속 (stats.longestStreak) — Number
  • 마지막 완료일 (stats.lastCompletedAt) — Date
  • 활성화 여부 (isActive) — Boolean
  • 삭제 여부 (isDeleted) — Boolean
  • 순서 (order) — Number
  • 생성일시 (createdAt) — Date
  • 수정일시 (updatedAt) — Date
  • Field

유저 정보 (Untitled)

  • 고유아이디 (_id) — ObjectId — 기본 키 — NOT NULL
  • 이메일 (email) — String
  • 비밀번호 (password) — String
  • 사용자 이름 (username) — String
  • 프로필 이름 (profile.name) — String
  • 프로필 이미지 URL (profile.profileImage) — String
  • 활성화 여부 (isActive) — Boolean
  • 마지막 로그인 (lastLoginAt) — Date
  • 생성 일시 (createdAt) — Date
  • 수정 일시 (updatedAt)

프로젝트 (Untitled2)

  • 고유 아이디 (_id) — ObjectId — 기본 키 — NOT NULL
  • 유저 아이디 — ObjectId — 외래 키 → 유저 정보.고유아이디 — NOT NULL
  • 프로젝트명 (name) — String
  • 설명 (description) — String
  • 시작일 (startDate) — Date
  • 종료일 (endDate) — Date
  • 전체 할일 수 (stats.totalTodos) — Number
  • 완료 할일 수 (stats.completedTodos) — Number
  • 완료율 (stats.completionRate) — Number
  • 활성화 여부 (isActive) — Boolean
  • 보관 여부 (isArchived) — Boolean
  • 순서 (order) — Number
  • 생성일시 (createdAt) — Date
  • 수정일시 (updatedAt) — Date
  • 삭제 여부 (isDeleted) — Boolean

할 일 (Untitled4)

  • 고유 아이디 (_id) — ObjectId — 기본 키 — NOT NULL
  • 유저 아이디 (userId) — ObjectId — 외래 키 → 유저 정보.고유아이디 — NOT NULL
  • 소속 프로젝트 (projectId) — ObjectId — 외래 키 → 프로젝트.고유 아이디 — NOT NULL
  • 소속 리스트 (listId) — ObjectId — 외래 키 → 리스트.고유아이디 — NOT NULL
  • 소속 습관 (habitId) — ObjectId — 외래 키 → 습관.고유 아이디 — NOT NULL
  • 할일 제목 (title) — String
  • 설명 (description) — String
  • 우선순위 (priority) — Number(1-3)
  • 라벨 (label) — String
  • 마감일 (dueDate) — Date
  • 완료일시 (completedAt) — Date
  • 완료 여부 (isCompleted) — Boolean
  • 습관 자동생성 여부 (isFromHabit) — Boolean
  • 삭제 여부 (isDeleted) — Boolean
  • 순서 (order) — Number
  • 생성일시 (createdAt) — Date
  • 수정일시 (updatedAt) — Date