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.
71 lines
1.7 KiB
71 lines
1.7 KiB
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Znyc.Admin.Commons.Entitys;
|
|
|
|
namespace Znyc.Admin.Security.Entitys.Dispatching
|
|
{
|
|
/// <summary>
|
|
/// 员工表
|
|
/// </summary>
|
|
[Table("dc_employee")]
|
|
[Comment("员工表")]
|
|
public class Employee : BaseEntity
|
|
{
|
|
/// <summary>
|
|
/// 用户Id
|
|
/// </summary>
|
|
public long UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 员工名
|
|
/// </summary>
|
|
[Comment("员工名")]
|
|
[MaxLength(8)]
|
|
public string EmployeeName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 手机号
|
|
/// </summary>
|
|
[Comment("手机号")]
|
|
[MaxLength(11)]
|
|
public string EmployeePhone { get; set; }
|
|
|
|
/// <summary>
|
|
/// 机构Id
|
|
/// </summary>
|
|
[Comment("所属公司")]
|
|
public long CompanyId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 机构名称
|
|
/// </summary>
|
|
[Comment("所属公司名称")]
|
|
[MaxLength(50)]
|
|
public string CompanyName { get; set; }
|
|
|
|
/// <summary>
|
|
/// CommonStatus
|
|
/// </summary>
|
|
[Comment("状态")]
|
|
public int Status { get; set; }
|
|
|
|
/// <summary>
|
|
/// RoleStatus
|
|
/// </summary>
|
|
[Comment("角色")]
|
|
public long RoleId { get; set; }
|
|
|
|
/// <summary>
|
|
/// RoleStatus
|
|
/// </summary>
|
|
[Comment("角色名称")]
|
|
public string RoleName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否默认登录
|
|
/// </summary>
|
|
[Comment("是否默认登录")]
|
|
public bool IsDefault { get; set; }
|
|
}
|
|
}
|