notai

Tables (16)

Folder (폴더)

  • ID (id) — bigint — Primary key — NOT NULL
  • 회원ID (member_id) — bigint — Foreign key → member.ID — NOT NULL
  • 부모ID (parent_forder_id) — bigint — Foreign key → Folder.ID — NOT NULL
  • 폴더 이름 (name) — varchar(50)
  • 생성 일자 (created_at) — datetime
  • 수정 일자 (update_at) — datetime

annotation (타이핑 필기)

  • ID (id) — bigint — Primary key — NOT NULL
  • 수업자료 ID (document_id) — bigint — Foreign key → document.ID — NOT NULL
  • 페이지 번호 (page_number) — int
  • x좌표 (x) — int
  • y좌표 (y) — int
  • 텍스트 area 넓이 (width) — int
  • 텍스트 area 높이 (height) — int
  • 내용 (content) — TEXT
  • 생성 일자 (created_at) — datetime
  • 수정 일자 (updated_at) — datetime

comment (댓글)

  • ID (id) — bigint — Primary key — NOT NULL
  • 작성자 (member_id) — bigint — Foreign key → member.ID — NOT NULL
  • 게시글 (post_id) — bigint — Foreign key → post.ID — NOT NULL
  • 부모댓글ID (parent_comment_id) — bigint — Foreign key → comment.ID — NOT NULL
  • 내용 (content) — varchar(255)
  • 생성일자 (created_at) — datetime
  • 수정일자 (updated_at) — datetime

document (수업자료)

  • ID (id) — bigint — Primary key — NOT NULL
  • 회원ID (member_id) — bigint — Foreign key → member.ID — NOT NULL
  • 폴더ID (folder_id) — bigint — Foreign key → Folder.ID — NOT NULL
  • 저장소 주소 (url) — varchar(255)
  • 파일 이름 (name) — varchar(50)
  • 페이지 수 (total_pages) — int
  • 생성 일자 (created_at) — datetime
  • 수정 일자 (updated_at) — datetime

llm_task (AI 기능 작업 기록)

  • AI 서버에서 받은 작업 UUID (id) — varchar(36) — Primary key — NOT NULL
  • 요약 ID (summary_id) — bigint — Foreign key → summary.ID — NOT NULL
  • 문제 ID (problem_id) — bigint — Foreign key → problem.ID — NOT NULL
  • 작업 상태 (status) — varchar(20)
  • 생성 일자 (created_at) — datetime
  • 수정 일자 (update_at) — datetime

member (회원)

  • ID (id) — bigint — Primary key — NOT NULL
  • OAuth ID (oauth_id) — varchar(255)
  • OAuth 타입 구분 (oauth_provider) — varchar(20)
  • 이메일 (email) — varchar(50)
  • 별명 (nickname) — varchar(20)
  • JWT 갱신 토큰 (refresh_token) — varchar(255)
  • 가입 일자 (created_at) — datetime
  • 수정 일자 (updated_at) — datetime

ocr (수업자료 OCR 데이터)

  • ID (id) — bigint — Primary key — NOT NULL
  • 수업자료ID (document_id) — bigint — Foreign key → document.ID — NOT NULL
  • 페이지 번호 (page_number) — int
  • ocr 내용 (content) — TEXT
  • 생성일자 (created_at) — datetime
  • 수정일자 (updated_at) — datetime

page_recording (페이지녹음정보)

  • ID (id) — bigint — Primary key — NOT NULL
  • 녹음ID (recording_id) — bigint — Foreign key → recording.ID — NOT NULL
  • 페이지번호 (page_number) — int
  • 시작시간(초 단위) (start_time) — double
  • 종료시간(초 단위) (end_time) — double
  • 생성일자 (created_at) — datetime
  • 수정일자 (updated_at) — datetime

post (게시글)

  • ID (id) — bigint — Primary key — NOT NULL
  • 작성자ID (member_id) — bigint — Foreign key → member.ID — NOT NULL
  • 제목 (title) — varchar(255)
  • 내용 (contents) — varchar(255)
  • 생성 일자 (created_at) — datetime
  • 수정 일자 (updated_at) — datetime

problem (AI 문제)

  • ID (id) — bigint — Primary key — NOT NULL
  • 문서 ID (document_id) — bigint — Foreign key → document.ID — NOT NULL
  • 페이지 번호 (page_number) — int
  • 문제 (content) — TEXT
  • 생성 일자 (created_at) — datetime
  • 수정 일자 (updated_at) — datetime

recording (녹음)

  • ID (id) — varchar(36) — Primary key — NOT NULL
  • 수업자료ID (document_id) — bigint — Foreign key → document.ID — NOT NULL
  • 저장소 주소 (file_path) — varchar(255)
  • 생성일자 (created_at) — datetime
  • 수정일자 (updated_at) — datetime

stt (녹음 STT 데이터)

  • ID (id) — bigint — Primary key — NOT NULL
  • 작업ID (stt_task_id) — bigint — Foreign key → stt_task.ID — NOT NULL
  • 페이지 번호 (page_number) — int
  • stt 내용 (content) — TEXT
  • 생성 일자 (created_at) — datetime
  • 수정 일자 (updated_at) — datetime
  • 시작시간 (startTime) — int
  • 종료시간 (endTime) — int

stt_task (CopyOf녹음 STT 데이터)

  • ID (id) — bigint — Primary key — NOT NULL
  • 녹음ID (recording_id) — varchar(36) — Foreign key → recording.ID — NOT NULL
  • 작업상태 (task_status) — varchar(20)
  • 생성 일자 (created_at) — datetime
  • 수정 일자 (updated_at) — datetime

subscription_history (요금제 기록)

  • ID (id) — bigint — Primary key — NOT NULL
  • 회원ID (member_id) — bigint — Foreign key → member.ID — NOT NULL
  • 요금제ID (subscription_plan_id) — bigint — Foreign key → subscription_plan.ID — NOT NULL
  • 시작날짜 (start_date) — datetime
  • 종료날짜 (end_date) — datetime
  • 상태 (status) — varchar(20)

subscription_plan (요금제)

  • ID (id) — bigint — Primary key — NOT NULL
  • 요금제 이름 (name) — varchar(20)
  • 요금제 가격 (price) — int
  • 요금제 설명 (description) — varchar(255)

summary (AI 요약)

  • ID (id) — bigint — Primary key — NOT NULL
  • 문서 ID (document_id) — bigint — Foreign key → document.ID — NOT NULL
  • 페이지 번호 (page_number) — int
  • 요약 내용 (content) — TEXT
  • 생성 일자 (created_at) — datetime
  • 수정 일자 (updated_at) — datetime