package models import "time" type BaseCall struct { ClientConversationId string `gorm:"primaryKey;index"` 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 P3DisconnectTime *time.Time BookingRequestNumber *int `gorm:"index"` IvrData *int UtsEntries int InterpreterCount int Status string } func (BaseCall) TableName() string { return "gc_base_calls" } 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" } type InterpreterConnection struct { InterpreterConversationId string `gorm:"primaryKey;index"` InterpreterAccepted bool InterpreterId int `gorm:"index"` CallType string CallConnected string ClientConversationId string `gorm:"index"` LanguageId int InterpreterPhone string ConferenceStart time.Time ConferenceEnd time.Time } func (InterpreterConnection) TableName() string { return "gc_interpreter_connections" } type CallStat struct { ClientConversationId string `gorm:"primaryKey;index"` CallType string `gorm:"index"` ClientId int `gorm:"index"` CustomerDnis string CustomerAni string ConversationStart *time.Time `gorm:"index"` ConversationEnd *time.Time `gorm:"index"` SearchStartTime *time.Time P1ConnectTime time.Time `gorm:"index"` P1DisconnectTime time.Time `gorm:"index"` BookingRequestNumber *int `gorm:"index"` UtsQueue bool InterpreterAcceptedCount int InterpreterAccepted bool InterpreterConnectedCount int InterpreterConnected bool ClientDisconnected bool UtsDuration int UtsEntries int Status string SubStatus string FirstLanguageId int LastLanguageId int FirstInterpreter string } func (CallStat) TableName() string { return "gc_call_stats" } type Breakdown struct { ClientConversationId string `gorm:"primaryKey;index"` InterpreterConversationId string `gorm:"index"` Timestamp time.Time `gorm:"primaryKey;index"` Task string `gorm:"primaryKey"` Duration int Message string Metadata *string `gorm:"type:json"` } func (Breakdown) TableName() string { return "gc_call_breakdown" } type CallMetrics struct { ClientConversationId string `gorm:"primaryKey;index"` // TotalDuration int TotalClientResponseDuration int TotalSystemDuration int TotalTalkDuration int // AgentAlertDuration int AgentHoldDuration int AgentTalkDuration int // SearchingDuration int ConfigurationDuration int QueueDuration int // Metadata *string `gorm:"type:json"` } func (CallMetrics) TableName() string { return "gc_call_metrics" }