diff --git a/models/formatter.go b/models/formatter.go index 10cb769..d1a4df9 100644 --- a/models/formatter.go +++ b/models/formatter.go @@ -95,8 +95,8 @@ func (CallStat) TableName() string { type Breakdown struct { ClientConversationId string `gorm:"primaryKey;index"` InterpreterConversationId string `gorm:"index"` - Timestamp time.Time `gorm:"index"` - Task string + Timestamp time.Time `gorm:"primaryKey;index"` + Task string `gorm:"primaryKey"` Duration int Message string Metadata *string `gorm:"type:json"`