using SqlSugar; namespace OpenAuth.Repository.Domain.workflow; /// /// 流程实例表(zy_flow_instance) /// [SugarTable("zy_flow_instance")] public class ZyFlowInstance { /// /// 实例ID(主键,自增) /// [SugarColumn(ColumnName = "instance_id", IsPrimaryKey = true, IsIdentity = true, IsNullable = false)] public long InstanceId { get; set; } /// /// 模板ID(外键关联zy_flow_template) /// [SugarColumn(ColumnName = "template_id", IsNullable = false)] public long TemplateId { get; set; } /// /// 流程编码 /// [SugarColumn(ColumnName = "flow_code", IsNullable = false)] public string FlowCode { get; set; } = string.Empty; /// /// 业务编号(唯一) /// [SugarColumn(ColumnName = "business_no", IsNullable = false)] public string BusinessNo { get; set; } = string.Empty; /// /// 流程状态 /// [SugarColumn(ColumnName = "status", IsNullable = false)] public string Status { get; set; } = string.Empty; /// /// 当前节点ID /// [SugarColumn(ColumnName = "current_node_id", IsNullable = false)] public long CurrentNodeId { get; set; } /// /// 发起人ID /// [SugarColumn(ColumnName = "initiator_id", IsNullable = false)] public long InitiatorId { get; set; } /// /// 发起人姓名 /// [SugarColumn(ColumnName = "initiator_name", IsNullable = false)] public string InitiatorName { get; set; } = string.Empty; /// /// 创建时间(默认当前时间) /// [SugarColumn(ColumnName = "create_time", IsNullable = true)] public DateTime? CreateTime { get; set; } = DateTime.Now; /// /// 完成时间 /// [SugarColumn(ColumnName = "finish_time", IsNullable = true)] public DateTime? FinishTime { get; set; } }