2025-06-27 15:05:06 +10:00
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-01 14:01:09 +10:00
|
|
|
func (DBAmendment) TableName() string {
|
2025-06-27 15:05:06 +10:00
|
|
|
return "gc_amendments"
|
|
|
|
|
}
|
2025-07-01 14:01:09 +10:00
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
}
|