You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
1008 B

using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WoodWood.Util.Validations;
namespace Wood.Entity.SystemManage
{
/// <summary>
/// 职位表
/// </summary>
[SugarTable("SysPosition", "职位表")]
public class PositionEntity : EntityTenantBaseExtra
{
/// <summary>
/// 职位名
/// </summary>
[SugarColumn(ColumnDescription = "职位名", Length = 32)]
[Required]
public string PositionName { get; set; } = "";
/// <summary>
/// 职位编码
/// </summary>
[SugarColumn(ColumnDescription = "职位编码", Length = 32)]
[Required]
[UniqueValue(ErrorMessage ="职位编码不能重复!")]
public string FormCode { get; set; } = "";
/// <summary>
/// 排序
/// </summary>
[SugarColumn(ColumnDescription = "排序",DefaultValue ="0")]
public int Sort { get; set; } = 0;
}
}