Compare commits

..

1 Commits

View File

@@ -3,7 +3,7 @@ package models
import "time" import "time"
type DBAmendment struct { type DBAmendment struct {
Id int `gorm:"primaryKey;index"` Id int `gorm:"primaryKey;autoIncrement"`
ConversationId string `gorm:"index"` ConversationId string `gorm:"index"`
AmendmentColumn string AmendmentColumn string
AmendmentValue string AmendmentValue string
@@ -16,7 +16,7 @@ func (DBAmendment) TableName() string {
} }
type DBAmendmentLog struct { type DBAmendmentLog struct {
Id int `gorm:"primaryKey;index"` Id int `gorm:"primaryKey;autoIncrement"`
ConversationId string `gorm:"index"` ConversationId string `gorm:"index"`
AmendmentColumn string AmendmentColumn string
OldValue string OldValue string