namespace Admin.NET.Core; /// /// 系统作业信息表 /// [SugarTable(null, "系统作业信息表")] [SystemTable] public class SysJobDetail : EntityBaseId { /// /// 作业Id /// [SugarColumn(ColumnDescription = "作业Id", Length = 64)] [Required, MaxLength(64)] public virtual string JobId { get; set; } /// /// 组名称 /// [SugarColumn(ColumnDescription = "组名称", Length = 128)] [MaxLength(128)] public string? GroupName { get; set; } = "default"; /// /// 作业类型FullName /// [SugarColumn(ColumnDescription = "作业类型", Length = 128)] [MaxLength(128)] public string? JobType { get; set; } /// /// 程序集Name /// [SugarColumn(ColumnDescription = "程序集", Length = 128)] [MaxLength(128)] public string? AssemblyName { get; set; } /// /// 描述信息 /// [SugarColumn(ColumnDescription = "描述信息", Length = 128)] [MaxLength(128)] public string? Description { get; set; } /// /// 是否并行执行 /// [SugarColumn(ColumnDescription = "是否并行执行")] public bool Concurrent { get; set; } = true; /// /// 是否扫描特性触发器 /// [SugarColumn(ColumnDescription = "是否扫描特性触发器", ColumnName = "annotation")] public bool IncludeAnnotations { get; set; } = false; /// /// 额外数据 /// [SugarColumn(ColumnDescription = "额外数据", ColumnDataType = StaticConfig.CodeFirst_BigString)] public string? Properties { get; set; } = "{}"; /// /// 更新时间 /// [SugarColumn(ColumnDescription = "更新时间")] public DateTime? UpdatedTime { get; set; } /// /// 作业创建类型 /// [SugarColumn(ColumnDescription = "作业创建类型")] public JobCreateTypeEnum CreateType { get; set; } = JobCreateTypeEnum.BuiltIn; /// /// 脚本代码 /// [SugarColumn(ColumnDescription = "脚本代码", ColumnDataType = StaticConfig.CodeFirst_BigString)] public string? ScriptCode { get; set; } }