package registry import ( "time" "gorm.io/gorm" ) // Manifest manifest ?? type Manifest 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:"-"` Repository string `gorm:"index;not null" json:"repository"` // ???? Tag string `gorm:"index;not null" json:"tag"` // tag ?? Digest string `gorm:"uniqueIndex;not null" json:"digest"` // manifest digest MediaType string `json:"media_type"` // ???? Size int64 `gorm:"not null" json:"size"` // manifest ?? Content []byte `gorm:"type:blob" json:"-"` // manifest ???JSON? }