package registry import ( "time" "gorm.io/gorm" ) // Blob blob ?? type Blob struct { ID uint `gorm:"primarykey" json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` Digest string `gorm:"uniqueIndex;not null" json:"digest"` // SHA256 digest Size int64 `gorm:"not null" json:"size"` // ?????? MediaType string `json:"media_type"` // ???? Repository string `gorm:"index" json:"repository"` // ??????????????? }