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