개선관리 요구사항과 Google 로그인을 완료

This commit is contained in:
Yun Chan 2026-08-28 16:07:09 +09:00
parent cc0a15b7c6
commit 2a39636163
112 changed files with 10166 additions and 527 deletions

View file

@ -34,6 +34,7 @@ CREATE TABLE IF NOT EXISTS app.app_user (
account_status TEXT NOT NULL DEFAULT 'approved'
CHECK (account_status IN ('pending','approved','suspended')),
admin_access BOOLEAN NOT NULL DEFAULT FALSE,
learner_feedback_enabled BOOLEAN NOT NULL DEFAULT TRUE,
affiliation TEXT NOT NULL DEFAULT '',
legal_name TEXT NOT NULL DEFAULT '',
department TEXT NOT NULL DEFAULT '',
@ -175,6 +176,7 @@ CREATE TABLE IF NOT EXISTS app.sessions (
theory_mode TEXT, -- 'humanistic'|'cbt'|'integrative'
stage_path JSONB NOT NULL DEFAULT '[]', -- 단계 전이 이력
session_goals JSONB NOT NULL DEFAULT '[]', -- 이번 회기 목표 단계(학습자 선택, 최대 4)
learner_feedback_enabled BOOLEAN NOT NULL DEFAULT TRUE, -- 회기 시작 시 계정 정책 스냅샷
started_at TIMESTAMPTZ NOT NULL DEFAULT now(),
ended_at TIMESTAMPTZ,
FOREIGN KEY (persona_id, persona_version)