using SqlSugar; namespace dy.net.model { [SugarTable(TableName = "dy_app_config")] public class AppConfig { /// /// /// [SugarColumn(IsPrimaryKey = true,Length =100)] public string Id { get; set; } [SugarColumn(Length =200,IsNullable =true)] public string Cron { get; set; } /// /// 每次查询数量 /// public int BatchCount { get; set; } = 10; /// /// 是否启用自动下载(默认false,不自动下载) /// [SugarColumn(IsNullable = true)] public bool? EnableAutoDownload { get; set; } = false; /// /// 下载时间范围(天数,例如:30表示只下载最近30天的视频,0表示不限制) /// [SugarColumn(IsNullable = true)] public int? DownloadDaysRange { get; set; } = 0; /// /// 作者白名单(JSON数组,例如:["作者1","作者2"],为空则不限制) /// [SugarColumn(Length = 2000, IsNullable = true)] public string AuthorWhitelist { get; set; } /// /// 作者黑名单(JSON数组,例如:["作者1","作者2"],为空则不限制) /// [SugarColumn(Length = 2000, IsNullable = true)] public string AuthorBlacklist { get; set; } /// /// 是否下载喜欢的视频(默认false) /// [SugarColumn(IsNullable = true)] public bool? DownloadFavorite { get; set; } = false; /// /// 是否下载收藏的视频(默认false) /// [SugarColumn(IsNullable = true)] public bool? DownloadCollect { get; set; } = false; } }