From f5db0a0179edd44ac97ca099b6328bb8987fe039 Mon Sep 17 00:00:00 2001 From: Frederick Holland Date: Wed, 23 Jul 2025 14:55:03 +1000 Subject: [PATCH] Added call stats model --- models/call_stat.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 models/call_stat.go diff --git a/models/call_stat.go b/models/call_stat.go new file mode 100644 index 0000000..7b80994 --- /dev/null +++ b/models/call_stat.go @@ -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" +}