Compare commits

...

10 Commits

4 changed files with 33 additions and 35 deletions

View File

@@ -9,23 +9,9 @@ type DBAmendment struct {
AmendmentValue string AmendmentValue string
Requestor string Requestor string
RequestedAt time.Time RequestedAt time.Time
Sequence string
} }
func (DBAmendment) TableName() string { func (DBAmendment) TableName() string {
return "gc_amendments" return "gc_amendments"
} }
type DBAmendmentLog struct {
Id int `gorm:"primaryKey;autoIncrement"`
ConversationId string `gorm:"index"`
AmendmentColumn string
OldValue string
NewValue string
Requestor string
RequestedAt time.Time
AmendedAt time.Time
}
func (DBAmendmentLog) TableName() string {
return "gc_amendment_logs"
}

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 {
@@ -66,16 +67,27 @@ type CallStat struct {
ClientId int `gorm:"index"` ClientId int `gorm:"index"`
CustomerDnis string CustomerDnis string
CustomerAni string CustomerAni string
ConversationStart *time.Time `gorm:"index"`
ConversationEnd *time.Time `gorm:"index"`
SearchStartTime *time.Time
P1ConnectTime time.Time `gorm:"index"` P1ConnectTime time.Time `gorm:"index"`
P1DisconnectTime time.Time `gorm:"index"` P1DisconnectTime time.Time `gorm:"index"`
BookingRequestNumber *int `gorm:"index"` BookingRequestNumber *int `gorm:"index"`
UtsQueue bool UtsQueue bool
InterpreterCount int InterpreterAcceptedCount int
InterpreterAccepted bool
InterpreterConnectedCount int
InterpreterConnected bool InterpreterConnected bool
// InterpreterCount int
// InterpreterConnected bool
ClientDisconnected bool ClientDisconnected bool
UtsDuration int UtsDuration int
UtsEntries int UtsEntries int
Status string 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"`
@@ -54,7 +54,7 @@ type DBClientProcessed struct {
// PARTNER DETAILS: // PARTNER DETAILS:
// --- // ---
PartnerBill float64 PartnerBill float64
ParnterRate float64 PartnerRate float64
// TIMESTAMP DETAILS: // TIMESTAMP DETAILS:
// --- // ---
@@ -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"`

View File

@@ -22,9 +22,9 @@ func ExtractWithoutAttributes(base models.AnalyticsConversationWithoutAttributes
var endTime *time.Time var endTime *time.Time
parsedEndTime, err := time.Parse(time.RFC3339, base.ConversationEnd) parsedEndTime, err := time.Parse(time.RFC3339, base.ConversationEnd)
if err != nil { if err != nil {
startTime = nil endTime = nil
} else { } else {
startTime = &parsedEndTime endTime = &parsedEndTime
} }
divisionIdsBytes, err := json.Marshal(base.DivisionIds) divisionIdsBytes, err := json.Marshal(base.DivisionIds)