52 lines
1.3 KiB
C#
52 lines
1.3 KiB
C#
|
|
|
|
namespace YY.Admin.Core;
|
|
|
|
/// <summary>
|
|
/// 系统职位表
|
|
/// </summary>
|
|
[SugarTable("sys_pos", "系统职位表")]
|
|
[SysTable]
|
|
[SugarIndex("index_{table}_N", nameof(Name), OrderByType.Asc)]
|
|
[SugarIndex("index_{table}_C", nameof(Code), OrderByType.Asc)]
|
|
public partial class SysPos : EntityBaseTenant
|
|
{
|
|
/// <summary>
|
|
/// 名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "名称", Length = 64)]
|
|
[Required, MaxLength(64)]
|
|
public virtual string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "编码", Length = 64)]
|
|
[MaxLength(64)]
|
|
public string? Code { get; set; }
|
|
|
|
/// <summary>
|
|
/// 排序
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "排序")]
|
|
public int OrderNo { get; set; } = 100;
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "备注", Length = 128)]
|
|
[MaxLength(128)]
|
|
public string? Remark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "状态")]
|
|
public StatusEnum Status { get; set; } = StatusEnum.Enable;
|
|
|
|
/// <summary>
|
|
/// 在职人员
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public List<SysUser> UserList { get; set; }
|
|
} |