22 lines
482 B
Go
22 lines
482 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type DBSegment struct {
|
|
Id string `gorm:"primaryKey;index"`
|
|
Conference bool
|
|
DisconnectType string
|
|
Q850ResponseCodes string `gorm:"type:json"`
|
|
SegmentEnd time.Time `gorm:"index"`
|
|
SegmentStart time.Time `gorm:"index"`
|
|
SegmentType string `gorm:"index"`
|
|
SessionId string `gorm:"foreignKey"`
|
|
WrapUpCode string
|
|
}
|
|
|
|
func (DBSegment) TableName() string {
|
|
return "gc_segments"
|
|
}
|