From 194cb5bbe6e0c3aa57429a1ef3194a12bd926587 Mon Sep 17 00:00:00 2001 From: Frederick Holland Date: Mon, 7 Jul 2025 15:54:02 +1000 Subject: [PATCH] Added base_call and interpreter_connection models --- models/base_call.go | 26 ++++++++++++++++++++++++++ models/interpreter_connection.go | 22 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 models/base_call.go create mode 100644 models/interpreter_connection.go diff --git a/models/base_call.go b/models/base_call.go new file mode 100644 index 0000000..d469600 --- /dev/null +++ b/models/base_call.go @@ -0,0 +1,26 @@ +package models + +import ( + "time" +) + +type BaseCall struct { + ClientConversationId string `gorm:"primaryKey;index"` + CallType string `gorm:"index"` + GenderPreference string + ClientId int `gorm:"index"` + CustomerDnis string + CustomerAni string + 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 +} + +func (BaseCall) TableName() string { + return "gc_base_calls" +} diff --git a/models/interpreter_connection.go b/models/interpreter_connection.go new file mode 100644 index 0000000..828a270 --- /dev/null +++ b/models/interpreter_connection.go @@ -0,0 +1,22 @@ +package models + +import ( + "time" +) + +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" +}