From 643c5cc695db23751da4e2af9391425a64b514d4 Mon Sep 17 00:00:00 2001 From: Frederick Holland Date: Sun, 19 Oct 2025 15:16:45 +1100 Subject: [PATCH] Changed breakdown to use a composite PK --- models/formatter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"`