using SqlSugar; using System.ComponentModel.DataAnnotations; namespace Admin.NET.Core { /// /// 系统职位表 /// [SugarTable("sys_pos", "系统职位表")] [SqlSugarEntity] public class SysPos : EntityTenant { /// /// 名称 /// [SugarColumn(ColumnDescription = "名称", Length = 20)] [Required, MaxLength(20)] public string Name { get; set; } /// /// 编码 /// [SugarColumn(ColumnDescription = "编码", Length = 50)] [MaxLength(50)] public string Code { get; set; } /// /// 排序 /// [SugarColumn(ColumnDescription = "排序")] public int Order { get; set; } /// /// 备注 /// [SugarColumn(ColumnDescription = "备注", Length = 100)] [MaxLength(100)] public string Remark { get; set; } /// /// 状态 /// [SugarColumn(ColumnDescription = "状态")] public StatusEnum Status { get; set; } = StatusEnum.Enable; } }