@@ -5,12 +5,25 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace IRaCIS.Core.Domain.Models
|
||||
{
|
||||
public class QCChallenge : BaseAuditAddEntity
|
||||
public class QCChallenge : BaseAddAuditEntity
|
||||
{
|
||||
#region 导航属性
|
||||
[JsonIgnore]
|
||||
[ForeignKey("CreateUserId")]
|
||||
|
||||
public User CreateUser { get; set; }
|
||||
[JsonIgnore]
|
||||
[ForeignKey("LatestReplyUserId")]
|
||||
public User LatestReplyUser { get; set; }
|
||||
[JsonIgnore]
|
||||
//导航属性
|
||||
[ForeignKey("SubjectVisitId")]
|
||||
public SubjectVisit SubjectVisit { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public List<QCChallengeDialog> DialogList { get; set; } = new List<QCChallengeDialog>();
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -36,13 +49,10 @@ namespace IRaCIS.Core.Domain.Models
|
||||
|
||||
public DateTime? LatestMsgTime { get; set; }
|
||||
|
||||
//public int ChallengeState { get; set; }
|
||||
|
||||
public Guid? LatestReplyUserId { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("LatestReplyUserId")]
|
||||
public User LatestReplyUser { get; set; }
|
||||
|
||||
public string ChallengeCode { get; set; }
|
||||
|
||||
public int Code { get; set; }
|
||||
@@ -68,15 +78,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||
|
||||
public string ChallengeType { get; set; } = string.Empty;
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
//导航属性
|
||||
[ForeignKey("SubjectVisitId")]
|
||||
public SubjectVisit SubjectVisit { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public List<QCChallengeDialog> DialogList { get; set; } = new List<QCChallengeDialog>();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user