From 8b2b31ef3fee024b9eb79912f15d87df1c9a2153 Mon Sep 17 00:00:00 2001 From: Frederick Holland Date: Sun, 19 Oct 2025 15:02:27 +1100 Subject: [PATCH] Added call breakdown model --- models/formatter.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/models/formatter.go b/models/formatter.go index c06eaab..10cb769 100644 --- a/models/formatter.go +++ b/models/formatter.go @@ -91,3 +91,17 @@ type CallStat struct { func (CallStat) TableName() string { return "gc_call_stats" } + +type Breakdown struct { + ClientConversationId string `gorm:"primaryKey;index"` + InterpreterConversationId string `gorm:"index"` + Timestamp time.Time `gorm:"index"` + Task string + Duration int + Message string + Metadata *string `gorm:"type:json"` +} + +func (Breakdown) TableName() string { + return "gc_call_breakdown" +}