2025-06-17 09:26:18 +10:00
|
|
|
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"`
|
2025-06-17 11:37:23 +10:00
|
|
|
Duration float64
|
|
|
|
|
Result string `gorm:"type:json"`
|
2025-06-17 09:26:18 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (DBQueueLog) TableName() string {
|
|
|
|
|
return "gc_queue_logs"
|
|
|
|
|
}
|