Initial commit
This commit is contained in:
25
models/session.go
Normal file
25
models/session.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type DBSession struct {
|
||||
gorm.Model
|
||||
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
|
||||
}
|
||||
|
||||
func (DBSession) TableName() string {
|
||||
return "gc_sessions"
|
||||
}
|
||||
Reference in New Issue
Block a user