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"` AmendmentColumn string AmendmentValue string Requestor string Timestamp time.Time } func (DBAmendment) TableName() string { return "gc_amendments" } type DBAmendmentLog struct { Id int `gorm:"index"` Table string `gorm:"primaryKey;index"` AmendmentColumn string OldValue string NewValue string Requestor string Timestamp time.Time } func (DBAmendmentLog) TableName() string { return "gc_amendment_logs" }