Files
2022-07-24 14:48:54 +08:00

60 lines
1.7 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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