diff --git a/model/model.go b/model/model.go index be43857..5cfa211 100644 --- a/model/model.go +++ b/model/model.go @@ -22,7 +22,7 @@ type Undo struct { ID int32 `json:"id" gorm:"column:id" sql:"id"` Content string `json:"content" gorm:"column:content" sql:"content"` SpendTime int32 `json:"spend_time" gorm:"column:spend_time" sql:"spend_time"` - Child int32 `json:"child" gorm:"column:child" sql:"child"` + Parent int32 `json:"parent" gorm:"column:parent" sql:"parent"` Level int32 `json:"level" gorm:"column:level" sql:"level"` Type int32 `json:"type" gorm:"column:type" sql:"type"` }