just plan

Tables (7)

Badge (Untitled3)

  • id — Primary key — NOT NULL
  • 뱃지명 (name)
  • 설명 (description)
  • 이미지 (image)
  • 날짜 타입 (period_type)
  • 달성조건 (min_minutes)
  • 생성일 (created_at)

Category (Untitled6)

  • id — Primary key — NOT NULL
  • 이름 (name)
  • badge — Foreign key → Badge.id — NOT NULL

Goal (Untitled2)

  • id — Primary key — NOT NULL
  • 목표제목 (title)
  • 카테고리 (category)
  • 목표 타입 (goal_type)
  • 날짜 타입 (period_type)
  • 목표값 (target)
  • 현재값 (current)
  • 시작일 (start_date)
  • 종료일 (end_date)
  • 생성일 (created_at)
  • 목표 완료 여부 (is_completed)
  • user — Foreign key → User.id — NOT NULL

Plan (Untitled5)

  • id — Primary key — NOT NULL
  • 날짜 (date)
  • 시작시간 (start_time)
  • 종료시간 (end_time)
  • 짧은 글 (label)
  • 설명 (description)
  • 색상 (color)
  • 중요 일정 (is_important)
  • 알림 여부 (notification_sent)
  • user — Foreign key → User.id — NOT NULL
  • category — Foreign key → Category.id — NOT NULL

PushNotification (Untitled7)

  • id — Primary key — NOT NULL
  • endpoint
  • p256dh
  • auth
  • user — Foreign key → User.id — NOT NULL

User (Untitled)

  • id — Primary key — NOT NULL
  • 이메일 (email) — unique
  • 공급자 (provider)
  • 활동유저여부 (is_active)
  • 스태프여부 (is_staff)
  • 슈퍼유저 권한 (is_superuser)
  • 생성일 (created_at)
  • 수정일 (updated_at)
  • 서비스 동의 (is_service_agree)
  • 서비스 동의 일자 (service_agree_at)
  • 푸시동의 (is_push_notification)
  • badge — Foreign key → Badge.id — NOT NULL
  • userBadge — Foreign key → UserBadge.id — NOT NULL

UserBadge (Untitled4)

  • id — Primary key — NOT NULL
  • 획득일 (achieved_at)
  • user — Foreign key → User.id — NOT NULL