Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ab6b36c12c | |||
| f69b849ed7 | |||
| 3e103f18a5 | |||
| 746a492cd4 | |||
| c76a900b19 |
@@ -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"`
|
||||
|
||||
15
models/queue_log.go
Normal file
15
models/queue_log.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type DBQueueLog struct {
|
||||
Queue string `gorm:"primaryKey"`
|
||||
ConversationId string `gorm:"primaryKey"`
|
||||
Start time.Time `gorm:"index"`
|
||||
End time.Time `gorm:"index"`
|
||||
Result string `gorm:"type:json"`
|
||||
}
|
||||
|
||||
func (DBQueueLog) TableName() string {
|
||||
return "gc_queue_logs"
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
package models
|
||||
|
||||
type AnalyticsConversationWithAttributesQuery struct {
|
||||
Conversations []AnalyticsConversationWithAttributes `json:"conversations"`
|
||||
Cursor *string `json:"cursor"`
|
||||
}
|
||||
|
||||
type AnalyticsConversationWithAttributes struct {
|
||||
ConversationEnd string `json:"conversationEnd"`
|
||||
ConversationId string `json:"conversationId"`
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user