diff --git a/internal/model/oplog.go b/internal/model/oplog.go index 4ea176e..d9a50ad 100644 --- a/internal/model/oplog.go +++ b/internal/model/oplog.go @@ -288,7 +288,7 @@ type OpLog struct { UserId uint64 `json:"user_id" gorm:"column:user_id"` Username string `json:"username" gorm:"column:username;varchar(128)"` - Type OpLogType `json:"type" gorm:"column:type;type:varchar(128)"` + Type OpLogType `json:"type" gorm:"column:type"` Content sqlType.JSONB `json:"content" gorm:"column:content;type:jsonb"` HTML string `json:"html" gorm:"-"` }