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 Logs sql.NullString ErrorMessage sql.NullString PresetID sql.NullInt64 FormatOverride string CustomFlags string OutputDir sql.NullString StartedAt sql.NullTime CompletedAt sql.NullTime CreatedAt time.Time } type Settings struct { RefreshInterval int AutoRefreshLibrary bool AutoRefreshDownloads bool Cookies string } type FormatInfo struct { ID string Ext string Resolution string FPS string Channels string FileSize string Codec string Note string } type SubtitleTrack struct { Lang string Label string Src string }