msg_metadata maps to the 'metadata' DB column ('metadata' is reserved by SQLAlchemy Declarative API). to_dict() exposes the key as 'metadata' for frontend compatibility. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>