Add support for persistent copilot messages and threads

This commit is contained in:
Pranav
2025-05-12 17:47:20 -07:00
parent 543dd1476d
commit 9e8ea5d2f8
16 changed files with 276 additions and 2 deletions
+1
View File
@@ -78,6 +78,7 @@ class User < ApplicationRecord
alias_attribute :conversations, :assigned_conversations
has_many :csat_survey_responses, foreign_key: 'assigned_agent_id', dependent: :nullify, inverse_of: :assigned_agent
has_many :conversation_participants, dependent: :destroy_async
has_many :copilot_threads, dependent: :destroy
has_many :participating_conversations, through: :conversation_participants, source: :conversation
has_many :inbox_members, dependent: :destroy_async