using JNPF.TaskScheduler.Entitys.Enum; using SqlSugar; namespace JNPF.TaskScheduler.Entitys; [SugarTable("JobDetails", "作业信息表")] [Tenant("JNPF-Job")] public class JobDetails { /// /// Id. /// [SugarColumn(ColumnDescription = "Id", IsPrimaryKey = true, IsIdentity = true)] public virtual long Id { get; set; } /// /// 作业 Id. /// [SugarColumn(ColumnDescription = "作业Id")] public virtual string JobId { get; set; } /// /// 组名称. /// [SugarColumn(ColumnDescription = "组名称")] public string? GroupName { get; set; } /// /// 作业类型 FullName. /// [SugarColumn(ColumnDescription = "作业类型")] public string? JobType { get; set; } /// /// 程序集 Name. /// [SugarColumn(ColumnDescription = "程序集")] public string? AssemblyName { get; set; } /// /// 描述信息. /// [SugarColumn(ColumnDescription = "描述信息")] public string? Description { get; set; } /// /// 是否并行执行. /// [SugarColumn(ColumnDescription = "是否并行执行")] public bool Concurrent { get; set; } = true; /// /// 是否扫描特性触发器. /// [SugarColumn(ColumnDescription = "是否扫描特性触发器")] public bool IncludeAnnotations { get; set; } = false; /// /// 额外数据. /// [SugarColumn(ColumnDescription = "额外数据", ColumnDataType = "longtext,text,clob")] public string? Properties { get; set; } = "{}"; /// /// 更新时间. /// [SugarColumn(ColumnDescription = "更新时间")] public DateTime? UpdatedTime { get; set; } /// /// 作业创建类型. /// [SugarColumn(ColumnDescription = "作业创建类型")] public RequestTypeEnum CreateType { get; set; } = RequestTypeEnum.BuiltIn; /// /// 脚本代码. /// [SugarColumn(ColumnDescription = "脚本代码", ColumnDataType = StaticConfig.CodeFirst_BigString)] public string? ScriptCode { get; set; } }