md5.go 599 B

123456789101112131415
  1. package md5
  2. import "github.com/kamva/mgm/v3"
  3. type MD5 struct {
  4. mgm.DefaultModel `bson:",inline" json:"id"`
  5. Channel string `bson:"channel,omitempty" json:"channel,omitempty"` // Legacy only; new uploads do not set it.
  6. Platform string `bson:"platform" json:"platform"`
  7. Version string `bson:"version" json:"version"`
  8. Value string `bson:"value" json:"value"`
  9. EnvVersions []string `bson:"envVersions" json:"envVersions"`
  10. External bool `bson:"external" json:"external"`
  11. }
  12. func (MD5) CollectionName() string { return "version_md5s" }