package download import ( "time" "gorm.io/gorm" ) type Info struct { ID uint `json:"id" gorm:"primaryKey"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` URL string `json:"url" gorm:"not null"` Version string `json:"version" gorm:"not null"` FileName string `json:"fileName" gorm:"not null"` // FileSize is a human-readable string (e.g., "1.5 GB") for display purposes. // Programmatic size tracking uses os.Stat on the actual file. FileSize string `json:"fileSize" gorm:"not null"` FileHash string `json:"fileHash" gorm:"not null;default:''"` LauncherURL string `json:"launcherUrl" gorm:"not null;default:''"` // LauncherSize is a human-readable string (e.g., "25.3 MB") for display purposes. // Programmatic size tracking uses os.Stat on the actual file. LauncherSize string `json:"launcherSize" gorm:"not null;default:''"` }