增加操作历史model
This commit is contained in:
@@ -27,6 +27,9 @@ type User struct {
|
||||
|
||||
// DeletedAt 删除时间(用于软删除)
|
||||
DeletedAt gorm.DeletedAt `gorm:"index;column:deleted_at" json:"-"`
|
||||
|
||||
// OperationHistories 用户的操作历史记录
|
||||
OperationHistories []OperationHistory `gorm:"foreignKey:UserID" json:"-"`
|
||||
}
|
||||
|
||||
// TableName 指定User模型对应的数据库表名
|
||||
|
||||
Reference in New Issue
Block a user