This commit is contained in:
2025-10-29 11:42:58 +08:00
parent 7f6f84cd0e
commit a178c3550e
190 changed files with 81361 additions and 92 deletions

View File

@@ -0,0 +1,56 @@
using FreeSql.DataAnnotations;
namespace FATrace.Model
{
[Table(Name = "JellyfinMonitorTask")]
public class JellyfinMonitorTask
{
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
[Column(IsNullable = false)]
public long OemRawUseId { get; set; }
[Column(StringLength = 256, IsNullable = false)]
public string? LocalFileNameOrPath { get; set; }
[Column(StringLength = 100, IsNullable = false)]
public string? Code { get; set; }
[Column(StringLength = 100, IsNullable = false)]
public string? RawName { get; set; }
[Column(StringLength = 100, IsNullable = false)]
public string? User { get; set; }
[Column(IsNullable = false)]
public TaskStatus Status { get; set; } = TaskStatus.Pending;
[Column(IsNullable = false)]
public int TryCount { get; set; } = 0;
/// <summary>
/// 对应下载任务的时间窗口:开始时间(用于 VideoAction.StartTime
/// </summary>
[Column(IsNullable = true)]
public DateTime? NvrStartTime { get; set; }
/// <summary>
/// 对应下载任务的时间窗口:结束时间(用于 VideoAction.EndTime
/// </summary>
[Column(IsNullable = true)]
public DateTime? NvrEndTime { get; set; }
[Column(StringLength = 100)]
public string? FoundItemId { get; set; }
[Column(StringLength = 500)]
public string? Error { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = true)]
public DateTime CreateTime { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = true)]
public DateTime UpdateTime { get; set; }
}
}