32 lines
760 B
Go
32 lines
760 B
Go
|
|
package models
|
||
|
|
|
||
|
|
import (
|
||
|
|
"time"
|
||
|
|
|
||
|
|
"gorm.io/gorm"
|
||
|
|
)
|
||
|
|
|
||
|
|
type DBConversation struct {
|
||
|
|
gorm.Model
|
||
|
|
Address *string
|
||
|
|
DivisionIds *string `gorm:"type:json"`
|
||
|
|
End *time.Time `gorm:"index"`
|
||
|
|
ExternalTag *string
|
||
|
|
Id string `gorm:"primaryKey;index"`
|
||
|
|
MinMos *float32
|
||
|
|
MinRFactor *float32
|
||
|
|
OriginatingDirection *string
|
||
|
|
RecentTransfers *string `gorm:"type:json"`
|
||
|
|
RecordingState *string
|
||
|
|
SecurePause *bool
|
||
|
|
Start *time.Time `gorm:"index"`
|
||
|
|
UtilizationLabelId *string
|
||
|
|
LiveUpdate *time.Time
|
||
|
|
SemiLiveUpdate *time.Time
|
||
|
|
JobUpdate *time.Time
|
||
|
|
}
|
||
|
|
|
||
|
|
func (DBConversation) TableName() string {
|
||
|
|
return "gc_conversations"
|
||
|
|
}
|