using ERP.Core.Enums; using ERP.Framework.Enum; using ERP.Framework.WebApi; using System.ComponentModel.DataAnnotations.Schema; namespace ERP.Core.Entities { [Table("sys_user")] public class SysUser : BaseEntity { public override long Id { get => base.Id; set => base.Id = value; } /// /// 部门Id /// public virtual long DeptId { get; set; } /// /// 用户名 /// public virtual string UserName { get; set; } = string.Empty; /// /// 昵称 /// public virtual string NickName { get; set; } = string.Empty; /// /// 邮箱 /// public virtual string? Email { get; set; } /// /// 电话号码 /// public virtual string? PhoneNumber { get; set; } /// /// 性别 /// public virtual SexEnum? Sex { get; set; } /// /// 头像 /// public virtual string? Avatar { get; set; } /// /// 密码 /// public virtual string Password { get; set; } = string.Empty; /// /// 用户状态 /// public virtual StatusEnum UserStatus { get; set; } /// /// 数据状态 0正常 1已删除 /// public virtual StatusEnum DataStatus { get; set; } } }