전 저장소 리팩터링과 SSOT 정비

This commit is contained in:
Yun Chan 2026-07-15 21:31:30 +09:00
parent 14ecbd4e7d
commit 3dfddcac6f
173 changed files with 19679 additions and 6952 deletions

View file

@ -174,6 +174,7 @@ CREATE TABLE IF NOT EXISTS app.sessions (
session_no INT, -- 케이스 내 N번째 회기
theory_mode TEXT, -- 'humanistic'|'cbt'|'integrative'
stage_path JSONB NOT NULL DEFAULT '[]', -- 단계 전이 이력
session_goals JSONB NOT NULL DEFAULT '[]', -- 이번 회기 목표 단계(학습자 선택, 최대 4)
started_at TIMESTAMPTZ NOT NULL DEFAULT now(),
ended_at TIMESTAMPTZ,
FOREIGN KEY (persona_id, persona_version)
@ -189,6 +190,9 @@ CREATE TABLE IF NOT EXISTS app.session_review_status (
status TEXT NOT NULL DEFAULT 'pending'
CHECK (status IN ('pending','viewed','closed')),
note TEXT NOT NULL DEFAULT '',
worksheet_status TEXT NOT NULL DEFAULT 'pending',
worksheet_note TEXT NOT NULL DEFAULT '',
worksheet_reviewed_at TIMESTAMPTZ,
reviewed_at TIMESTAMPTZ,
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);