Compare commits

...

1 Commits

Author SHA1 Message Date
b52f1cd80d Changed the structure slightly of Amendments 2025-07-04 10:34:16 +10:00

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 {