2025-06-16 17:49:27 +10:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type DBConversation struct {
|
|
|
|
|
Address *string
|
|
|
|
|
DivisionIds *string `gorm:"type:json"`
|
|
|
|
|
End *time.Time `gorm:"index"`
|
|
|
|
|
ExternalTag *string
|
|
|
|
|
Id string `gorm:"primaryKey;index"`
|
|
|
|
|
MinMos *float32
|
|
|
|
|
MinRFactor *float32
|
|
|
|
|
OriginatingDirection *string
|
|
|
|
|
RecentTransfers *string `gorm:"type:json"`
|
|
|
|
|
RecordingState *string
|
|
|
|
|
SecurePause *bool
|
|
|
|
|
Start *time.Time `gorm:"index"`
|
|
|
|
|
UtilizationLabelId *string
|
|
|
|
|
LiveUpdate *time.Time
|
2025-06-18 10:23:34 +10:00
|
|
|
DetailsUpdate *time.Time
|
2025-06-16 17:49:27 +10:00
|
|
|
SemiLiveUpdate *time.Time
|
|
|
|
|
JobUpdate *time.Time
|
2025-06-19 14:45:58 +10:00
|
|
|
|
|
|
|
|
Participants []DBParticipant `gorm:"foreignKey:ConversationId;references:Id"`
|
2025-06-16 17:49:27 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (DBConversation) TableName() string {
|
|
|
|
|
return "gc_conversations"
|
|
|
|
|
}
|