21 lines
454 B
Go
21 lines
454 B
Go
package system
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
"time"
|
|
)
|
|
|
|
// 字段变更记录表
|
|
type SysRecordLog struct {
|
|
gorm.Model
|
|
SysTableName string ``
|
|
FieldName string `gorm:"comment:字段名"`
|
|
OldValue string `gorm:"comment:旧值;type:text"`
|
|
NewValue string `gorm:"comment:新值;type:text"`
|
|
CreateTime time.Time `gorm:"comment:创建时间;autoCreateTime"`
|
|
}
|
|
|
|
func (s *SysRecordLog) TableName() string {
|
|
return "sys_record_logs"
|
|
}
|