Compare commits

...

2 Commits

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;autoIncrement"`
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;autoIncrement"`
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 {