52 lines
1.4 KiB
C#
52 lines
1.4 KiB
C#
using SqlSugar;
|
|
using System;
|
|
|
|
using VideoAnalysisCore.Model.Interface;
|
|
|
|
namespace VideoAnalysisCore.Model
|
|
{
|
|
/// <summary>
|
|
/// 任务工作流状态表
|
|
/// <para>用于记录单个任务在不同工作流中的执行状态</para>
|
|
/// </summary>
|
|
[SugarTable("videotask_workflow")]
|
|
public class VideoTaskWorkflow : IDB
|
|
{
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 关联的任务ID
|
|
/// </summary>
|
|
public long VideoTaskId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 工作流名称 (e.g. "VideoSlice", "Upload")
|
|
/// </summary>
|
|
[SugarColumn(Length = 50)]
|
|
public string WorkflowName { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 当前步骤 (枚举的字符串表示)
|
|
/// </summary>
|
|
[SugarColumn(Length = 50)]
|
|
public string CurrentStep { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 当前步骤 (枚举的整数值)
|
|
/// </summary>
|
|
public int CurrentStepValue { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态信息/错误信息
|
|
/// </summary>
|
|
[SugarColumn(Length = 500, IsNullable = true)]
|
|
public string? Message { get; set; }
|
|
|
|
/// <summary>
|
|
/// 更新时间
|
|
/// </summary>
|
|
public DateTime UpdateTime { get; set; } = DateTime.Now;
|
|
}
|
|
}
|