Added interpreter and client processed models.
This commit is contained in:
parent
f5db0a0179
commit
24d4ab7bd0
@ -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"
|
||||
}
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user