Added unique index to DBAmendment
This commit is contained in:
@@ -17,8 +17,8 @@ import "time"
|
||||
// Indexes: Id, ConversationId, RequestedAt
|
||||
type DBAmendment struct {
|
||||
Id int `gorm:"primaryKey;autoIncrement"`
|
||||
ConversationId string `gorm:"index"`
|
||||
AmendmentColumn string
|
||||
ConversationId string `gorm:"uniqueIndex:idx_amendment_conv_column"`
|
||||
AmendmentColumn string `gorm:"uniqueIndex:idx_amendment_conv_column"`
|
||||
AmendmentValue string
|
||||
Requestor string
|
||||
RequestedAt time.Time `gorm:"index"`
|
||||
|
||||
Reference in New Issue
Block a user