namespace OpenAuth.Repository.Domain.workflow; using SqlSugar; using System; /// /// 流程节点表(zy_flow_node) /// [SugarTable("zy_flow_node")] public class ZyFlowNode { /// /// 节点ID(主键,自增) /// [SugarColumn(ColumnName = "node_id", IsPrimaryKey = true, IsIdentity = true, IsNullable = false)] public long NodeId { get; set; } /// /// 模板ID(外键关联zy_flow_template) /// [SugarColumn(ColumnName = "template_id", IsNullable = false)] public long TemplateId { get; set; } /// /// 节点名称 /// [SugarColumn(ColumnName = "node_name", IsNullable = false)] public string NodeName { get; set; } = string.Empty; /// /// 节点类型(Start/Common/Parallel/Branch/End) /// [SugarColumn(ColumnName = "node_type", IsNullable = false)] public string NodeType { get; set; } = string.Empty; /// /// 角色ID /// [SugarColumn(ColumnName = "role_id", IsNullable = false)] public long RoleId { get; set; } /// /// 下一节点IDs(逗号分隔) /// [SugarColumn(ColumnName = "next_node_ids", IsNullable = true)] public string? NextNodeIds { get; set; } /// /// 是否可回退(默认true) /// [SugarColumn(ColumnName = "is_backable", IsNullable = true)] public bool? IsBackable { get; set; } = true; /// /// 排序号(默认0) /// [SugarColumn(ColumnName = "sort_no", IsNullable = true)] public int? SortNo { get; set; } = 0; }