Removed gorm.model from all models.;
This commit is contained in:
parent
c76a900b19
commit
746a492cd4
@ -2,12 +2,9 @@ package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type DBCall struct {
|
||||
gorm.Model
|
||||
AfterCallWorkRequired bool
|
||||
Confined bool
|
||||
ConnectedTime *time.Time `gorm:"index"`
|
||||
|
||||
@ -2,12 +2,9 @@ package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type DBConversation struct {
|
||||
gorm.Model
|
||||
Address *string
|
||||
DivisionIds *string `gorm:"type:json"`
|
||||
End *time.Time `gorm:"index"`
|
||||
|
||||
@ -2,12 +2,9 @@ package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type DBParticipant struct {
|
||||
gorm.Model
|
||||
Address *string
|
||||
Attributes *string `gorm:"type:json"`
|
||||
ConnectedTime *time.Time `gorm:"index"`
|
||||
|
||||
@ -2,12 +2,9 @@ package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type DBSegment struct {
|
||||
gorm.Model
|
||||
Id string `gorm:"primaryKey;index"`
|
||||
Conference bool
|
||||
DisconnectType string
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type DBSession struct {
|
||||
gorm.Model
|
||||
Ani string
|
||||
Direction string
|
||||
Dnis string
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user