Initial commit

This commit is contained in:
2025-06-16 17:49:27 +10:00
commit 34beb51c2c
7 changed files with 164 additions and 0 deletions

24
models/segment.go Normal file
View File

@@ -0,0 +1,24 @@
package models
import (
"time"
"gorm.io/gorm"
)
type DBSegment struct {
gorm.Model
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"
}