cs agent

Tables (4)

Documents (문서(노드))

  • id (식별자) — String(uuid) — Primary key — NOT NULL
  • writer (작성자 id) — long — Foreign key → Users.id — NOT NULL
  • title (제목) — varchar(100)
  • contents (본문) — json (문단별로 배열로 저장합니다.)
  • depth (노드 깊이) — int
  • position_x (x 좌표)
  • position_y (y좌표)
  • created_at (생성일) — datetime
  • updated_at (수정일) — datetime

Edges (문서 간 관계)

  • id (식별자) — long — Primary key — NOT NULL
  • source (부모문서) — String(uuid) — Foreign key → Documents.id — NOT NULL
  • target (자식문서) — String(uuid) — Foreign key → Documents.id — NOT NULL
  • created_at (생성일) — datetime
  • updated_at (수정일) — datetime

Keywords (문서와 관련된 학습 컨텐츠 추천)

  • id (식별자) — long — Primary key — NOT NULL
  • id (연관된 문서 id) — String(uuid) — Foreign key → Documents.id — NOT NULL
  • keywords (학습 추천 개념) — String

Users (유저(목))

  • id (식별자) — long — Primary key — NOT NULL