36 lines
880 B
Go
36 lines
880 B
Go
|
|
package models
|
||
|
|
|
||
|
|
import (
|
||
|
|
"time"
|
||
|
|
|
||
|
|
"gorm.io/gorm"
|
||
|
|
)
|
||
|
|
|
||
|
|
type DBCall struct {
|
||
|
|
gorm.Model
|
||
|
|
AfterCallWorkRequired bool
|
||
|
|
Confined bool
|
||
|
|
ConnectedTime *time.Time `gorm:"index"`
|
||
|
|
Direction string
|
||
|
|
DisconnectReasons string `gorm:"type:json"`
|
||
|
|
DisconnectType string
|
||
|
|
DisconnectedTime *time.Time `gorm:"index"`
|
||
|
|
Held bool
|
||
|
|
Id string `gorm:"primaryKey;index"`
|
||
|
|
InitialState string
|
||
|
|
Muted bool
|
||
|
|
Other string `gorm:"type:json"`
|
||
|
|
ParticipantId string `gorm:"foreignKey;index"`
|
||
|
|
PeerId string
|
||
|
|
Provider string
|
||
|
|
Recording bool
|
||
|
|
RecordingState string
|
||
|
|
SecurePause bool
|
||
|
|
Self string `gorm:"type:json"`
|
||
|
|
State string
|
||
|
|
}
|
||
|
|
|
||
|
|
func (DBCall) TableName() string {
|
||
|
|
return "gc_calls"
|
||
|
|
}
|