TOKI Database ERD
Tables (7)
Courses
- 과목아이디 (courser_id) — PK — Primary key — NOT NULL
- 유저아이디 (user_id) — PK — Foreign key → Users.유저아이디 — NOT NULL
- 과목이름 (course_name)
- 교수 (professor)
- 학기 (semester)
- 색 (color)
Documents
- 문서아이디 (document_id) — PK — Primary key — NOT NULL
- 과목아이디 (courser_id) — PK — Foreign key → Courses.과목아이디 — NOT NULL
- 유저아이디 (user_id) — PK — Foreign key → Courses.유저아이디 — NOT NULL
- 파일이름 (file_name)
- 파일타입 (file_type)
- 업로드 (uploaded_at)
- 요약 (summary)
- 분석 (analysis_status)
Extracted_Tasks
- 과제아이디 (task_id) — PK — Primary key — NOT NULL
- 문서아이디 (document_id) — PK — Foreign key → Documents.문서아이디 — NOT NULL
- 과목아이디 (courser_id) — PK — Foreign key → Documents.과목아이디 — NOT NULL
- 유저아이디 (user_id) — PK — Foreign key → Documents.유저아이디 — NOT NULL
- 과제제목 (task_title)
- 과제타입 (task_type)
- 마감기한 (due_date)
- 우선사항 (priority)
- 상태 (status)
- 인공지능사용여부 (is_ai_generated)
Focus_Sessions
- 세션아이디 (session_id) — PK — Primary key — NOT NULL
- 과목아이디 (courser_id) — PK — Foreign key → Courses.과목아이디 — NOT NULL
- 유저아이디 (user_id) — PK — Foreign key → Courses.유저아이디 — NOT NULL
- 시작시간 (start_time)
- 종료시간 (end_time)
- 목표점수 (focus_score)
- 메모 (memo)
Notifications (Nontifications)
- 알림아이디 (notifications) — PK — Primary key — NOT NULL
- 과제아이디 (task_id) — PK — Foreign key → Extracted_Tasks.과제아이디 — NOT NULL
- 문서아이디 (document_id) — PK — Foreign key → Extracted_Tasks.문서아이디 — NOT NULL
- 과목아이디 (courser_id) — PK — Foreign key → Extracted_Tasks.과목아이디 — NOT NULL
- 유저아이디 (user_id) — PK — Foreign key → Extracted_Tasks.유저아이디 — NOT NULL
- 메시지 (message)
- 알림타입 (notification_type)
- 알림방법 (notification_method)
- 읽음여부 (is_read)
- 전송시간 (sent_at)
Study_Reports
- 레포트아이디 (report_id) — PK — Primary key — NOT NULL
- 세션아이디 (session_id) — PK — Foreign key → Focus_Sessions.세션아이디 — NOT NULL
- 과목아이디 (courser_id) — PK — Foreign key → Focus_Sessions.과목아이디 — NOT NULL
- 유저아이디 (user_id) — PK — Foreign key → Focus_Sessions.유저아이디 — NOT NULL
- 레포트텍스트 (report_text)
- 약한주제 (weak_topic)
- 생성 (generated_at)
Users
- 유저아이디 (user_id) — PK — Primary key — NOT NULL
- 이름 (user_name)
- 이메일 (email)
- 비밀번호 (password)
- 전공 (major)
- 생성시간 (created_at)