Compare commits

...

2 Commits

Author SHA1 Message Date
ed3f089736 Added index to segment.SessionId 2025-07-22 11:47:03 +10:00
d862a79c0f Changed participant_id to id 2025-07-17 16:18:27 +10:00
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ type AnalyticsConversationWithAttributes struct {
OriginatingDirection string `json:"originatingDirection"` OriginatingDirection string `json:"originatingDirection"`
Participants []struct { Participants []struct {
ExternalContactId string `json:"externalContactId"` ExternalContactId string `json:"externalContactId"`
ParticipantId string `json:"participantId"` ParticipantId string `json:"id"`
ParticipantName string `json:"participantName"` ParticipantName string `json:"participantName"`
Purpose string `json:"purpose"` Purpose string `json:"purpose"`
Sessions []struct { Sessions []struct {

View File

@@ -12,7 +12,7 @@ type DBSegment struct {
SegmentEnd time.Time `gorm:"index"` SegmentEnd time.Time `gorm:"index"`
SegmentStart time.Time `gorm:"index"` SegmentStart time.Time `gorm:"index"`
SegmentType string `gorm:"index"` SegmentType string `gorm:"index"`
SessionId string `gorm:"foreignKey"` SessionId string `gorm:"index;foreignKey"`
WrapUpCode string WrapUpCode string
} }