From 24d4ab7bd03f5bcb93cf66b1a8e139d053bc55d2 Mon Sep 17 00:00:00 2001 From: Frederick Holland Date: Fri, 1 Aug 2025 09:59:33 +1000 Subject: [PATCH] Added interpreter and client processed models. --- models/processed.go | 139 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) diff --git a/models/processed.go b/models/processed.go index 709d557..319c1f3 100644 --- a/models/processed.go +++ b/models/processed.go @@ -4,6 +4,144 @@ import ( "time" ) +type DBClientProcessed struct { + + // CALL DETAILS + // --- + ClientConversationId string `gorm:"primaryKey"` + CallType string + GenderPreference string + BookingReference *int + IvrData *int + BillableClient bool + CallOutcome string + + // FLAGS / METADATA: + // --- + BuggedCall bool + Amended bool + CreatedAt time.Time + ModifiedAt time.Time + CustomData *string `gorm:"type:json"` + InternalUse *string `gorm:"type:json"` + + // LANGUAGE DETAILS: + // --- + LanguageId int + LanguageCrmId string + LanguageName string + + // CLIENT DETAILS: + // --- + ClientId int + CustomerDnis string + CustomerAni string + ClientName string + ClientState string + ClientFunding bool + ClientGroupId int + ClientGroupName string + ClientPoReference string + InvoiceConfigCrmId string + InvoiceConfigName string + InvoiceConfigUsed string + ClientCallDuration int + ClientTimeOfDay string + ClientBill float64 + ClientRate float64 + ClientTaxStatus string + + // PARTNER DETAILS: + // --- + PartnerBill float64 + ParnterRate float64 + + // TIMESTAMP DETAILS: + // --- + P1SearchStartTime *time.Time + P1ConnectTime time.Time + P1DisconnectTime time.Time + P3ConnectTime *time.Time + P3DisconnectTime *time.Time +} + +func (DBClientProcessed) TableName() string { + return "gc_client_processed" +} + +type DBInterpreterProcessed struct { + + // CALL DETAILS + // --- + ClientConversationId string + InterpreterConversationId string `gorm:"primaryKey"` + CallType string + GenderPreference string + BookingReference *int + BillableInterpreter bool + BillableTpa bool + + // FLAGS / METADATA: + // --- + BuggedCall bool + Amended bool + CreatedAt time.Time + ModifiedAt time.Time + CustomData *string `gorm:"type:json"` + InternalUse *string `gorm:"type:json"` + + // LANGUAGE DETAILS: + // --- + LanguageId int + LanguageCrmId string + LanguageName string + + // CLIENT DETAILS: + // --- + ClientId int + ClientName string + ClientState string + + // INTERPRETER DETAILS: + // --- + InterpreterId int + InterpreterCrmId string + InterpreterName string + InterpreterPhone string + InterpreterGst bool + InterpreterNaatiId string + InterpreterGender string + InterpreterState string + InterpreterPaymentState string + InterpreterEmployer string + InterpreterLanguagePriority int + InterpreterLanguageNaatiLevel int + InterpreterLanguageNaatiDescription string + InterpreterLanguageWtn bool + InterpreterCallDuration int + InterpreterTimeOfDay string + InterpreterPayment float64 + InterpreterRate float64 + PaymentConfigCrmId string + PaymentConfigName string + PaymentConfigUsed string + + // TIMESTAMP DETAILS: + // --- + P1SearchStartTime *time.Time + P1ConnectTime time.Time + P1DisconnectTime time.Time + P2SearchStartTime *time.Time + P2AcceptanceTime time.Time + P2ConferenceTime time.Time + P2DisconnectTime time.Time +} + +func (DBInterpreterProcessed) TableName() string { + return "gc_interpreter_processed" +} + +/* type Processed struct { ClientConversationId string `gorm:"index"` InterpreterConversationId string `gorm:"primaryKey;index"` @@ -43,3 +181,4 @@ type Processed struct { func (Processed) TableName() string { return "gc_processed" } +*/