gorm_models/models/amendment.go

32 lines
659 B
Go
Raw Normal View History

2025-06-27 15:05:06 +10:00
package models
import "time"
type DBAmendment struct {
Id int `gorm:"primaryKey;index"`
ConversationId string `gorm:"index"`
2025-06-27 15:05:06 +10:00
AmendmentColumn string
AmendmentValue string
Requestor string
RequestedAt time.Time
2025-06-27 15:05:06 +10:00
}
func (DBAmendment) TableName() string {
2025-06-27 15:05:06 +10:00
return "gc_amendments"
}
type DBAmendmentLog struct {
Id int `gorm:"primaryKey;index"`
ConversationId string `gorm:"index"`
AmendmentColumn string
OldValue string
NewValue string
Requestor string
RequestedAt time.Time
AmendedAt time.Time
}
func (DBAmendmentLog) TableName() string {
return "gc_amendment_logs"
}