identificationOfCultivatedL.../OpenAuth.Repository/Domain/workflow/FlowTemplate.cs

46 lines
1.3 KiB
C#
Raw Normal View History

2026-02-04 21:43:24 +08:00
using SqlSugar;
namespace OpenAuth.Repository.Domain.workflow;
2026-02-05 09:08:32 +08:00
/// <summary>
/// 流程模板表zy_flow_template
/// </summary>
[SugarTable("zy_flow_template")]
public class ZyFlowTemplate
2026-02-04 21:43:24 +08:00
{
2026-02-05 09:08:32 +08:00
/// <summary>
/// 模板ID主键自增
/// </summary>
[SugarColumn(ColumnName = "template_id", IsPrimaryKey = true, IsIdentity = true, IsNullable = false)]
2026-02-04 21:43:24 +08:00
public long TemplateId { get; set; }
2026-02-05 09:08:32 +08:00
/// <summary>
/// 流程名称
/// </summary>
[SugarColumn(ColumnName = "flow_name", IsNullable = false)]
public string FlowName { get; set; } = string.Empty;
/// <summary>
/// 流程编码(唯一)
/// </summary>
2026-02-04 21:43:24 +08:00
[SugarColumn(ColumnName = "flow_code", IsNullable = false)]
public string FlowCode { get; set; } = string.Empty;
2026-02-05 09:08:32 +08:00
/// <summary>
/// 是否启用默认true
/// </summary>
[SugarColumn(ColumnName = "is_enabled", IsNullable = true)]
public bool? IsEnabled { get; set; } = true;
/// <summary>
/// 创建时间(默认当前时间)
/// </summary>
[SugarColumn(ColumnName = "create_time", IsNullable = true)]
public DateTime? CreateTime { get; set; } = DateTime.Now;
2026-02-04 21:43:24 +08:00
2026-02-05 09:08:32 +08:00
/// <summary>
/// 备注
/// </summary>
[SugarColumn(ColumnName = "remark", IsNullable = true)]
public string? Remark { get; set; }
2026-02-04 21:43:24 +08:00
}