package models 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 `gorm:"autoCreateTime"` 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 PartnerRate 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 `gorm:"autoCreateTime"` 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"` 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" } */