2025-06-27 15:05:06 +10:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
type DBAmendment struct {
|
2025-07-04 10:34:16 +10:00
|
|
|
Id int `gorm:"primaryKey;index"`
|
|
|
|
|
ConversationId string `gorm:"index"`
|
2025-06-27 15:05:06 +10:00
|
|
|
AmendmentColumn string
|
|
|
|
|
AmendmentValue string
|
|
|
|
|
Requestor string
|
2025-07-04 10:34:16 +10:00
|
|
|
RequestedAt time.Time
|
2025-06-27 15:05:06 +10:00
|
|
|
}
|
|
|
|
|
|
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 {
|
2025-07-04 10:34:16 +10:00
|
|
|
Id int `gorm:"primaryKey;index"`
|
|
|
|
|
ConversationId string `gorm:"index"`
|
2025-07-01 14:01:09 +10:00
|
|
|
AmendmentColumn string
|
|
|
|
|
OldValue string
|
|
|
|
|
NewValue string
|
|
|
|
|
Requestor string
|
2025-07-04 10:34:16 +10:00
|
|
|
RequestedAt time.Time
|
|
|
|
|
AmendedAt time.Time
|
2025-07-01 14:01:09 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (DBAmendmentLog) TableName() string {
|
|
|
|
|
return "gc_amendment_logs"
|
|
|
|
|
}
|