Compare commits

...

2 Commits

2 changed files with 7 additions and 1 deletions

View File

@@ -7,7 +7,8 @@ type DBQueueLog struct {
ConversationId string `gorm:"primaryKey"` ConversationId string `gorm:"primaryKey"`
Start time.Time `gorm:"index"` Start time.Time `gorm:"index"`
End time.Time `gorm:"index"` End time.Time `gorm:"index"`
Result string `gorm:"type:json"` Duration float64
Result string `gorm:"type:json"`
} }
func (DBQueueLog) TableName() string { func (DBQueueLog) TableName() string {

View File

@@ -1,5 +1,10 @@
package models package models
type AnalyticsConversationWithAttributesQuery struct {
Conversations []AnalyticsConversationWithAttributes `json:"conversations"`
Cursor *string `json:"cursor"`
}
type AnalyticsConversationWithAttributes struct { type AnalyticsConversationWithAttributes struct {
ConversationEnd string `json:"conversationEnd"` ConversationEnd string `json:"conversationEnd"`
ConversationId string `json:"conversationId"` ConversationId string `json:"conversationId"`