Compare commits

..

6 Commits

5 changed files with 28 additions and 2 deletions

View File

@@ -9,8 +9,10 @@ type BaseCall struct {
CallType string `gorm:"index"`
GenderPreference string
ClientId int `gorm:"index"`
LanguageId int
CustomerDnis string
CustomerAni string
SearchStartTime *time.Time
P1ConnectTime time.Time `gorm:"index"`
P1DisconnectTime time.Time `gorm:"index"`
P3ConnectTime *time.Time

View File

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

View File

@@ -0,0 +1,23 @@
package models
import (
"time"
)
type InterpreterAttempt struct {
InterpreterConversationId string `gorm:"primaryKey;index"`
InterpreterResponseTime time.Time
InterpreterAccepted bool
InterpreterId int `gorm:"index"`
CallType string
CallConnected string
ClientConversationId string `gorm:"index"`
LanguageId int
InterpreterPhone string
ConversationStart time.Time
ConversationEnd time.Time
}
func (InterpreterAttempt) TableName() string {
return "gc_interpreter_attempts"
}

View File

@@ -8,6 +8,7 @@ type DBQueueLog struct {
Start time.Time `gorm:"index"`
End time.Time `gorm:"index"`
Duration float64
NextQueue string
Result string `gorm:"type:json"`
}

View File

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