Changed amendment and amendment log ID fields to auto incrementing integers

This commit is contained in:
Frederick Holland 2025-07-04 11:26:56 +10:00
parent b52f1cd80d
commit aa15b86efd

View File

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