package models import ( "database/sql" "time" ) type Preset struct { ID int64 Name string Description string IsDefault bool FormatMode string Format string Quality string CustomFormat string ExtractAudio bool AudioFormat string EmbedSubs bool SubLangs string EmbedThumbnail bool EmbedMetadata bool WriteInfoJSON bool OutputTemplate string CustomFlags string CreatedAt time.Time } type Media struct { ID int64 URL string Title string Description string Duration int Filepath string RelativePath string IsAudio bool HasEmbeddedThumbnail bool InfoJSONPath string PlaylistID sql.NullString PlaylistIndex sql.NullInt64 CreatedAt time.Time } type Download struct { ID int64 URL string Status string ProgressPercent int CurrentSpeed string ETA string Logs string ErrorMessage string PresetID sql.NullInt64 FormatOverride string CustomFlags string StartedAt sql.NullTime CompletedAt sql.NullTime CreatedAt time.Time } type Settings struct { RefreshInterval int AutoRefreshLibrary bool AutoRefreshDownloads bool } type FormatInfo struct { ID string Ext string Resolution string FPS string Channels string FileSize string Codec string Note string }