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