Added queue logs.
This commit is contained in:
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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user