Changed the structure slightly of Amendments
This commit is contained in:
parent
abf0d6caf0
commit
b52f1cd80d
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user