2025-06-16 17:49:27 +10:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
type DBSession struct {
|
|
|
|
|
Ani string
|
|
|
|
|
Direction string
|
|
|
|
|
Dnis string
|
|
|
|
|
EdgeId string
|
|
|
|
|
Id string `gorm:"primaryKey;index"`
|
|
|
|
|
MediaEndpointStats string `gorm:"type:json"`
|
|
|
|
|
MediaType string
|
|
|
|
|
Metrics string `gorm:"type:json"`
|
|
|
|
|
ParticipantId string `gorm:"foreignKey;index"`
|
|
|
|
|
ProtocolCallId string
|
|
|
|
|
Provider string
|
|
|
|
|
Recording bool
|
|
|
|
|
RemoteNameDisplayable string
|
|
|
|
|
SessionDnis string
|
2025-06-20 09:31:21 +10:00
|
|
|
Flow string `gorm:"type:json"`
|
2025-06-19 14:45:58 +10:00
|
|
|
|
|
|
|
|
Segments []DBSegment `gorm:"foreignKey:SessionId;references:Id"`
|
2025-06-16 17:49:27 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (DBSession) TableName() string {
|
|
|
|
|
return "gc_sessions"
|
|
|
|
|
}
|