DigitalFactory/Admin.NET/Admin.NET.Application/Entity/Employee.cs

78 lines
2.1 KiB
C#

using Admin.NET.Core;
namespace Admin.NET.Application.Entity;
/// <summary>
/// 员工
/// </summary>
[SugarTable("employee","员工")]
public class Employee : EntityBase
{
/// <summary>
/// 名字
/// </summary>
[SugarColumn(ColumnName = "Name", ColumnDescription = "名字", Length = 32)]
public string? Name { get; set; }
/// <summary>
/// 职务
/// </summary>
[SugarColumn(ColumnName = "Job", ColumnDescription = "职务", Length = 32)]
public string? Job { get; set; }
/// <summary>
/// 性别
/// </summary>
[SugarColumn(ColumnName = "Sex", ColumnDescription = "性别", Length = 32)]
public string? Sex { get; set; }
/// <summary>
/// 联系方式
/// </summary>
[SugarColumn(ColumnName = "Tel", ColumnDescription = "联系方式", Length = 32)]
public string? Tel { get; set; }
/// <summary>
/// 邮箱
/// </summary>
[SugarColumn(ColumnName = "Email", ColumnDescription = "邮箱", Length = 32)]
public string? Email { get; set; }
/// <summary>
/// 地址
/// </summary>
[SugarColumn(ColumnName = "Address", ColumnDescription = "地址", Length = 64)]
public string? Address { get; set; }
/// <summary>
/// 年龄
/// </summary>
[SugarColumn(ColumnName = "Age", ColumnDescription = "年龄")]
public int? Age { get; set; }
/// <summary>
/// 身份证号
/// </summary>
[SugarColumn(ColumnName = "IDNumber", ColumnDescription = "身份证号", Length = 32)]
public string? IDNumber { get; set; }
/// <summary>
/// 部门ID
/// </summary>
[SugarColumn(ColumnName = "DepartmentId", ColumnDescription = "部门ID")]
public long? DepartmentId { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(ColumnName = "Remarks", ColumnDescription = "备注", Length = 32)]
public string? Remarks { get; set; }
/// <summary>
/// 入职日期
/// </summary>
[SugarColumn(ColumnName = "DateOnBoard", ColumnDescription = "入职日期")]
public DateTime? DateOnBoard { get; set; }
}