初步版本251204
This commit is contained in:
@@ -3,8 +3,8 @@ using FreeSql.DataAnnotations;
|
||||
namespace FATrace.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 下载任务实体(持久化队列项)。
|
||||
/// 表示一条从海康 NVR 下载视频的计划与执行状态。
|
||||
/// 下载任务实体(持久化队列项)
|
||||
/// 表示一条从海康 NVR 下载视频的计划与执行状态
|
||||
/// </summary>
|
||||
[Table(Name = "DownloadTask")]
|
||||
public class DownloadTask
|
||||
@@ -25,8 +25,8 @@ namespace FATrace.Model
|
||||
/// <summary>
|
||||
/// 原料名称
|
||||
/// </summary>
|
||||
[Column(StringLength = 100, IsNullable = false)]
|
||||
public string? RawName { get; set; }
|
||||
[Column(StringLength = 100, IsNullable = true)]
|
||||
public string? RawName { get; set; }="";
|
||||
|
||||
/// <summary>
|
||||
/// 原料条码
|
||||
@@ -62,7 +62,7 @@ namespace FATrace.Model
|
||||
/// 失败时的错误信息
|
||||
/// </summary>
|
||||
[Column(StringLength = 500)]
|
||||
public string? Error { get; set; }
|
||||
public string? Error { get; set; }="";
|
||||
|
||||
/// <summary>
|
||||
/// 已尝试次数(每次 Running 前加一)
|
||||
|
||||
@@ -33,10 +33,34 @@ namespace FATrace.Model
|
||||
public string? RawCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 视频链接
|
||||
/// Video 开始时间(默认当前时间 - 30秒)
|
||||
/// </summary>
|
||||
[Column(Name = "VideoUrl", IsNullable = false, StringLength = 500)]
|
||||
public string? VideoUrl{ get; set; }
|
||||
[Column(IsNullable = false)]
|
||||
public DateTime VideoStartTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Video 结束时间(默认当前时间)
|
||||
/// </summary>
|
||||
[Column(IsNullable = false)]
|
||||
public DateTime VideoEndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 视频本地保存路径
|
||||
/// </summary>
|
||||
[Column(Name = "VideoFilePath", IsNullable = false, StringLength = 500)]
|
||||
public string? VideoFilePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 视频名称
|
||||
/// </summary>
|
||||
[Column(Name = "VideoName", IsNullable = false, StringLength = 100)]
|
||||
public string? VideoName { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 视频链接
|
||||
///// </summary>
|
||||
//[Column(Name = "VideoUrl", IsNullable = false, StringLength = 500)]
|
||||
//public string? VideoUrl{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户信息
|
||||
@@ -44,11 +68,11 @@ namespace FATrace.Model
|
||||
[Column(Name = "User", IsNullable = false, StringLength = 100)]
|
||||
public string? User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// URl状态
|
||||
/// </summary>
|
||||
[Column(Name = "UrlState", IsNullable = false)]
|
||||
public bool UrlState { get; set; }
|
||||
///// <summary>
|
||||
///// URl状态
|
||||
///// </summary>
|
||||
//[Column(Name = "UrlState", IsNullable = false)]
|
||||
//public bool UrlState { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 视频信息
|
||||
@@ -62,15 +86,15 @@ namespace FATrace.Model
|
||||
[Column(ServerTime = DateTimeKind.Local, CanUpdate = true)]
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ///////////////////////////////////////////导航属性 LIN 一对一///////////////////////////////////////////////////////
|
||||
/// </summary>
|
||||
public long VideoActionId { get; set; } // 外键字段,必要
|
||||
///// <summary>
|
||||
///// ///////////////////////////////////////////导航属性 LIN 一对一///////////////////////////////////////////////////////
|
||||
///// </summary>
|
||||
//public long VideoActionId { get; set; } // 外键字段,必要
|
||||
|
||||
/// <summary>
|
||||
/// 视频信息
|
||||
/// </summary>
|
||||
public VideoAction? VideoAction { get; set; }
|
||||
///// <summary>
|
||||
///// 视频信息
|
||||
///// </summary>
|
||||
//public VideoAction? VideoAction { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user