Changed breakdown to use a composite PK
This commit is contained in:
parent
8b2b31ef3f
commit
643c5cc695
@ -95,8 +95,8 @@ func (CallStat) TableName() string {
|
|||||||
type Breakdown struct {
|
type Breakdown struct {
|
||||||
ClientConversationId string `gorm:"primaryKey;index"`
|
ClientConversationId string `gorm:"primaryKey;index"`
|
||||||
InterpreterConversationId string `gorm:"index"`
|
InterpreterConversationId string `gorm:"index"`
|
||||||
Timestamp time.Time `gorm:"index"`
|
Timestamp time.Time `gorm:"primaryKey;index"`
|
||||||
Task string
|
Task string `gorm:"primaryKey"`
|
||||||
Duration int
|
Duration int
|
||||||
Message string
|
Message string
|
||||||
Metadata *string `gorm:"type:json"`
|
Metadata *string `gorm:"type:json"`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user