Added CRM modules and tickets
This commit is contained in:
45
models/processed.go
Normal file
45
models/processed.go
Normal file
@@ -0,0 +1,45 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Processed struct {
|
||||
ClientConversationId string `gorm:"index"`
|
||||
InterpreterConversationId string `gorm:"primaryKey;index"`
|
||||
CallType string `gorm:"index"`
|
||||
GenderPreference string
|
||||
LanguageId int
|
||||
ClientId int `gorm:"index"`
|
||||
CustomerDnis string
|
||||
CustomerAni string
|
||||
InterpreterId int
|
||||
SearchStartTime time.Time `gorm:"index"`
|
||||
ClientIndex int
|
||||
NesIndex int
|
||||
P2ConnectTimeUtc time.Time `gorm:"index"`
|
||||
P2DisconnectTimeUtc time.Time `gorm:"index"`
|
||||
P1ConnectTimeUtc time.Time `gorm:"index"`
|
||||
P1DisconnectTimeUtc time.Time `gorm:"index"`
|
||||
P3ConnectTimeUtc *time.Time
|
||||
P3DisconnectTimeUtc *time.Time
|
||||
BookingRequestNumber *int `gorm:"index"`
|
||||
IvrData *int
|
||||
UtsEntries int
|
||||
InterpreterCount int
|
||||
Flags *string `gorm:"type:json"`
|
||||
Metadata *string `gorm:"type:json"`
|
||||
// Client data
|
||||
ClientCrmData string `gorm:"type:json"`
|
||||
InvoiceConfigCrmData string `gorm:"type:json"`
|
||||
LanguageCrmData string `gorm:"type:json"`
|
||||
InterpreterCrmData string `gorm:"type:json"`
|
||||
LanguageLookupCrmData string `gorm:"type:json"`
|
||||
VicTimezoneData string `gorm:"type:json"`
|
||||
NzTimezoneData string `gorm:"type:json"`
|
||||
LocalTimezoneData string `gorm:"type:json"`
|
||||
}
|
||||
|
||||
func (Processed) TableName() string {
|
||||
return "gc_processed"
|
||||
}
|
||||
Reference in New Issue
Block a user