mc-client-updater-server/pkg/dao/entity/update.go

11 lines
390 B
Go
Raw Normal View History

2022-10-04 00:36:01 +08:00
package entity
import "gorm.io/gorm"
type Update struct {
gorm.Model `json:"model"`
HashID string `gorm:"index;not null" json:"hash_id,omitempty"`
Comment string `gorm:"not null;default:'';comment:更新内容或注释" json:"comment,omitempty"`
Changes string `gorm:"not null;comment:更改的文件列表逗号分隔引用files(hash_id)" json:"changes,omitempty"`
}