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