Changed the structure slightly of Amendments

This commit is contained in:
Frederick Holland 2025-07-04 10:34:16 +10:00
parent abf0d6caf0
commit b52f1cd80d

View File

@ -3,14 +3,12 @@ package models
import "time"
type DBAmendment struct {
Id int `gorm:"index"`
IndexColumn string `gorm:"primaryKey;index"`
IndexId string `gorm:"primaryKey;index"`
Table string `gorm:"primaryKey;index"`
Id int `gorm:"primaryKey;index"`
ConversationId string `gorm:"index"`
AmendmentColumn string
AmendmentValue string
Requestor string
Timestamp time.Time
RequestedAt time.Time
}
func (DBAmendment) TableName() string {
@ -18,13 +16,14 @@ func (DBAmendment) TableName() string {
}
type DBAmendmentLog struct {
Id int `gorm:"index"`
Table string `gorm:"primaryKey;index"`
Id int `gorm:"primaryKey;index"`
ConversationId string `gorm:"index"`
AmendmentColumn string
OldValue string
NewValue string
Requestor string
Timestamp time.Time
RequestedAt time.Time
AmendedAt time.Time
}
func (DBAmendmentLog) TableName() string {