package models import "time" type DBAmendment struct { Id int `gorm:"primaryKey;index"` ConversationId string `gorm:"index"` AmendmentColumn string AmendmentValue string Requestor string RequestedAt time.Time } func (DBAmendment) TableName() string { return "gc_amendments" } type DBAmendmentLog struct { Id int `gorm:"primaryKey;index"` ConversationId string `gorm:"index"` AmendmentColumn string OldValue string NewValue string Requestor string RequestedAt time.Time AmendedAt time.Time } func (DBAmendmentLog) TableName() string { return "gc_amendment_logs" }