fix: oplog gorm type
This commit is contained in:
parent
dac1f65fc2
commit
1b1143e93e
@ -288,7 +288,7 @@ type OpLog struct {
|
|||||||
|
|
||||||
UserId uint64 `json:"user_id" gorm:"column:user_id"`
|
UserId uint64 `json:"user_id" gorm:"column:user_id"`
|
||||||
Username string `json:"username" gorm:"column:username;varchar(128)"`
|
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"`
|
Content sqlType.JSONB `json:"content" gorm:"column:content;type:jsonb"`
|
||||||
HTML string `json:"html" gorm:"-"`
|
HTML string `json:"html" gorm:"-"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user