DSC
Tables (4)
Block (세션 블록)
- id (세션블록 id) — UUID — Primary key — NOT NULL
- content (내용) — TEXT
- order_index (블록 순서) — bigint(20) — NOT NULL
- created_at (생성일) — TIMESTAMP — NOT NULL
- updated_at (수정일) — TIMESTAMP
- id (세션 id) — UUID — Foreign key → EditSession.id — NOT NULL
EditEvent (편집 이벤트 로그)
- id (기록 id) — bigint(20) — Primary key — NOT NULL
- server_seq (세션 내 순서 번호) — bigint(20)
- type (수정 타입) — varchar(20) — NOT NULL — INSERT, DELETE, UPDATE
- content (삽입/수정 내용) — TEXT
- created_at (생성일) — TIMESTAMP — NOT NULL
- id (사용자 id) — bigint(20) — Foreign key → User.id — NOT NULL
- id (세션 id) — UUID — Foreign key → EditSession.id — NOT NULL
- id (세션블록 id) — UUID — Foreign key → Block.id — NOT NULL
EditSession (편집 세션)
- id (세션 id) — UUID — Primary key — NOT NULL
- title (문서 제목) — varchar(20)
- owner_id (생성자) — varchar(20)
- last_seq (Field)
- created_at (생성일) — TIMESTAMP — NOT NULL
- updated_at (수정일) — TIMESTAMP
- id (사용자 id) — bigint(20) — Foreign key → User.id — NOT NULL
User (사용자)
- id (사용자 id) — bigint(20) — Primary key — NOT NULL
- username (이름) — varchar(20)
- password (비밀번호) — varchar(20)
- created_at (생성일) — TIMESTAMP — NOT NULL
- updated_at (수정일) — TIMESTAMP