diff --git a/models/queue_log.go b/models/queue_log.go new file mode 100644 index 0000000..65d0b2d --- /dev/null +++ b/models/queue_log.go @@ -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" +}