Changed breakdown to use a composite PK

This commit is contained in:
Frederick Holland 2025-10-19 15:16:45 +11:00
parent 8b2b31ef3f
commit 643c5cc695

View File

@ -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"`