fix: oplog gorm type

This commit is contained in:
loveuer 2024-07-25 14:04:03 +08:00
parent dac1f65fc2
commit 1b1143e93e

View File

@ -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:"-"`
}