using Appointment.Entity.ValidateAttribute; using SqlSugar; using System; using System.Collections.Generic; using System.Text; namespace Appointment.Entity { /// /// 预订审核结构 /// [Serializable] [SugarTable("appt_auditor")] public class ApptAuditor { /// /// 递增主键 /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 审批类型[apptType.id] /// [SugarColumn(ColumnName = "Appt_type_id")] public int ApptTypeId { get; set; } /// /// 角色代码[uc_groupRes.op_group] /// [StringLength(50, MinLength = 2, ErrorMessage = "角色代码必须为2~50个字符")] [SugarColumn(ColumnName = "op_group")] public string OpGroup { get; set; } /// /// 角色名称[uc_groupRes.descript] /// [StringLength(50, MinLength = 2, ErrorMessage = "角色名称必须为2~50个字符")] [SugarColumn(ColumnName = "op_descript")] public string OpDescript { get; set; } /// /// 所属父级:0-首审, /// [SugarColumn(ColumnName = "pid")] public int Pid { get; set; } /// /// 是否支持转审:0-不支持,1-支持(当转审之后,不再回到审批流程) /// public int Custom { get; set; } /// /// 子结点 /// [SugarColumn(IsIgnore = true)] public ApptAuditor Child { get; set; } } }