Added call stats model
This commit is contained in:
parent
c36c9eb809
commit
f5db0a0179
27
models/call_stat.go
Normal file
27
models/call_stat.go
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
package models
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
type CallStat struct {
|
||||||
|
ClientConversationId string `gorm:"primaryKey;index"`
|
||||||
|
CallType string `gorm:"index"`
|
||||||
|
ClientId int `gorm:"index"`
|
||||||
|
CustomerDnis string
|
||||||
|
CustomerAni string
|
||||||
|
P1ConnectTime time.Time `gorm:"index"`
|
||||||
|
P1DisconnectTime time.Time `gorm:"index"`
|
||||||
|
BookingRequestNumber *int `gorm:"index"`
|
||||||
|
UtsQueue bool
|
||||||
|
InterpreterCount int
|
||||||
|
InterpreterConnected bool
|
||||||
|
ClientDisconnected bool
|
||||||
|
UtsDuration int
|
||||||
|
UtsEntries int
|
||||||
|
Status string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (CallStat) TableName() string {
|
||||||
|
return "gc_call_stats"
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user