11 lines
390 B
Go
11 lines
390 B
Go
|
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"`
|
|||
|
}
|