清理后端下载
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-20 11:47:02 +08:00
parent 97b28fd920
commit b90f5f2d85
15 changed files with 255 additions and 360 deletions
+54 -58
View File
@@ -1,95 +1,91 @@
using EntityFrameworkCore.Projectables;
using IRaCIS.Core.Domain.Share;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("后台 - 系统账户")]
[Table("User")]
public class User : BaseFullAuditEntity
{
[Table("User")]
public partial class User : BaseFullAuditEntity
{
#region
[ForeignKey("UserTypeId")]
public UserType UserTypeRole { get; set; }
#region
[JsonIgnore]
public List<SystemDocConfirmedUser> SystemDocConfirmedList { get; set; }
[ForeignKey("UserTypeId")]
public UserType UserTypeRole { get; set; }
[JsonIgnore]
public List<TrialUser> UserTrials { get; set; } = new List<TrialUser>();
[JsonIgnore]
public List<SystemDocConfirmedUser> SystemDocConfirmedList { get; set; }
[JsonIgnore]
public List<VisitTask> VisitTaskList { get; set; }
[JsonIgnore]
public List<TrialUser> UserTrials { get; set; } = new List<TrialUser>();
#endregion
[JsonIgnore]
public List<VisitTask> VisitTaskList { get; set; }
[Projectable]
public string FullName => LastName + " / " + FirstName;
#endregion
[StringLength(255)]
public string UserName { get; set; } = String.Empty;
[Comment(" 自动切换下一个任务")]
public bool AutoCutNextTask { get; set; }
[StringLength(255)]
public string Password { get; set; } = String.Empty;
[StringLength(255)]
public int Code { get; set; }
public string LastName { get; set; } = String.Empty;
public string FirstName { get; set; } = String.Empty;
[StringLength(400)]
public string DepartmentName { get; set; } = null!;
public string Phone { get; set; } = string.Empty;
public string EMail { get; set; } = string.Empty;
public int? Sex { get; set; }
public UserStateEnum Status { get; set; } = UserStateEnum.Enable;
[Comment(" 医生生成账号后,会有值")]
public Guid? DoctorId { get; set; }
public DateTime? LastLoginTime { get; set; }
public string EMail { get; set; } = null!;
public Guid UserTypeId { get; set; } = Guid.Empty;
[StringLength(1020)]
public string EmailToken { get; set; } = null!;
public string FirstName { get; set; } = null!;
// 内部用户 外部用户
public bool IsZhiZhun { get; set; }
[Comment(" 首次登录需要修改密码")]
public bool IsFirstAdd { get; set; }
public UserTypeEnum UserTypeEnum { get; set; }
public bool IsTestUser { get; set; }
public string OrganizationName { get; set; } = String.Empty;
[Comment(" 内部用户 外部用户")]
public bool IsZhiZhun { get; set; }
public bool PasswordChanged { get; set; }
[Comment(" 上一次修改密码的时间")]
public DateTime? LastChangePassWordTime { get; set; }
public string LastLoginIP { get; set; } = null!;
public string UserCode { get; set; } = string.Empty;
public DateTime? LastLoginTime { get; set; }
public int Code { get; set; }
[StringLength(510)]
public string LastName { get; set; } = null!;
public string OrganizationName { get; set; } = null!;
public string DepartmentName { get; set; } = String.Empty;
public string Password { get; set; } = null!;
public string PositionName { get; set; } = String.Empty;
public bool PasswordChanged { get; set; }
[StringLength(400)]
public string Phone { get; set; } = null!;
public bool IsFirstAdd { get; set; } = true;
[StringLength(400)]
public string PositionName { get; set; } = null!;
public string EmailToken { get; set; } = string.Empty;
public int? Sex { get; set; }
/// <summary>
/// 上一次修改密码的时间
/// </summary>
public DateTime? LastChangePassWordTime { get; set; }
public UserStateEnum Status { get; set; } = UserStateEnum.Enable;
/// <summary>
/// LastLoginIP
/// </summary>
public string LastLoginIP { get; set; } = string.Empty;
public bool SuperAdmin { get; set; }
//医生生成账号后,会有值
public Guid? DoctorId { get; set; }
[StringLength(400)]
public string UserCode { get; set; } = null!;
public bool IsTestUser { get; set; }
public string UserName { get; set; } = null!;
/// <summary>
/// 自动切换下一个任务
/// </summary>
public bool AutoCutNextTask { get; set; } = false;
public UserTypeEnum UserTypeEnum { get; set; }
[Projectable]
public string FullName => LastName + " / " + FirstName;
//[Projectable] public string FullName => $"{LastName} / {FirstName}";
}
public Guid UserTypeId { get; set; }
}