feat: add SessionResolutionOutput model and register all 4 branching models

Introduces the session_resolution_outputs table for the three resolve
deliverables (psa_ticket_notes, knowledge_base, client_summary) with
UNIQUE(session_id, output_type) for safe upsert on regeneration.
Also registers SessionBranch, ForkPoint, SessionHandoff, and
SessionResolutionOutput in models/__init__.py so Alembic and the app
pick them up automatically.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-24 08:23:48 +00:00
parent c72bf99dbd
commit c9798514a9
2 changed files with 47 additions and 0 deletions

View File

@@ -50,6 +50,10 @@ from .psa_activity_log import PsaActivityLog
from .file_upload import FileUpload
from .ai_session_embedding import AISessionEmbedding
from .beta_feedback import BetaFeedback
from .session_branch import SessionBranch
from .fork_point import ForkPoint
from .session_handoff import SessionHandoff
from .session_resolution_output import SessionResolutionOutput
__all__ = [
"User",
@@ -114,4 +118,8 @@ __all__ = [
"FileUpload",
"AISessionEmbedding",
"BetaFeedback",
"SessionBranch",
"ForkPoint",
"SessionHandoff",
"SessionResolutionOutput",
]