Compare commits

..

4 Commits

2 changed files with 29 additions and 21 deletions

View File

@@ -19,6 +19,7 @@ type BaseCall struct {
IvrData *int IvrData *int
UtsEntries int UtsEntries int
InterpreterCount int InterpreterCount int
Status string
} }
func (BaseCall) TableName() string { func (BaseCall) TableName() string {
@@ -61,25 +62,32 @@ func (InterpreterConnection) TableName() string {
} }
type CallStat struct { type CallStat struct {
ClientConversationId string `gorm:"primaryKey;index"` ClientConversationId string `gorm:"primaryKey;index"`
CallType string `gorm:"index"` CallType string `gorm:"index"`
ClientId int `gorm:"index"` ClientId int `gorm:"index"`
CustomerDnis string CustomerDnis string
CustomerAni string CustomerAni string
SearchStartTime *time.Time ConversationStart time.Time `gorm:"index"`
P1ConnectTime time.Time `gorm:"index"` ConversationEnd time.Time `gorm:"index"`
P1DisconnectTime time.Time `gorm:"index"` SearchStartTime *time.Time
BookingRequestNumber *int `gorm:"index"` P1ConnectTime time.Time `gorm:"index"`
UtsQueue bool P1DisconnectTime time.Time `gorm:"index"`
InterpreterCount int BookingRequestNumber *int `gorm:"index"`
InterpreterConnected bool UtsQueue bool
ClientDisconnected bool InterpreterAcceptedCount int
UtsDuration int InterpreterAccepted bool
UtsEntries int InterpreterConnectedCount int
Status string InterpreterConnected bool
FirstLanguageId int // InterpreterCount int
LastLanguageId int // InterpreterConnected bool
FirstInterpreter string ClientDisconnected bool
UtsDuration int
UtsEntries int
Status string
SubStatus string
FirstLanguageId int
LastLanguageId int
FirstInterpreter string
} }
func (CallStat) TableName() string { func (CallStat) TableName() string {

View File

@@ -20,7 +20,7 @@ type DBClientProcessed struct {
// --- // ---
BuggedCall bool BuggedCall bool
Amended bool Amended bool
CreatedAt time.Time CreatedAt time.Time `gorm:"autoCreateTime"`
ModifiedAt time.Time ModifiedAt time.Time
CustomData *string `gorm:"type:json"` CustomData *string `gorm:"type:json"`
InternalUse *string `gorm:"type:json"` InternalUse *string `gorm:"type:json"`
@@ -85,7 +85,7 @@ type DBInterpreterProcessed struct {
// --- // ---
BuggedCall bool BuggedCall bool
Amended bool Amended bool
CreatedAt time.Time CreatedAt time.Time `gorm:"autoCreateTime"`
ModifiedAt time.Time ModifiedAt time.Time
CustomData *string `gorm:"type:json"` CustomData *string `gorm:"type:json"`
InternalUse *string `gorm:"type:json"` InternalUse *string `gorm:"type:json"`