同步数据模型和数据库对应关系2
continuous-integration/drone/push Build is passing

This commit is contained in:
hang
2024-09-19 23:45:43 +08:00
parent 19f4385055
commit 42e4fe59ec
73 changed files with 1760 additions and 1934 deletions
+19 -22
View File
@@ -7,28 +7,25 @@ using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
using Microsoft.EntityFrameworkCore;
namespace IRaCIS.Core.Domain.Models;
[Comment("受试者 - 阅片标准取消分配医生记录")]
[Table("SubjectCanceDoctor")]
public class SubjectCanceDoctor : BaseAddAuditEntity
{
///<summary>
///SubjectCanceDoctor
///</summary>
[Table("SubjectCanceDoctor")]
public class SubjectCanceDoctor : BaseAddAuditEntity
{
#region
[JsonIgnore]
public Subject Subject { get; set; }
#endregion
#region
[JsonIgnore]
public Subject Subject { get; set; }
#endregion
[StringLength(512)]
public string Note { get; set; } = null!;
public Guid SubjectId { get; set; }
public Guid? TrialReadingCriterionId { get; set; }
}
public Guid SubjectId { get; set; }
public string Note { get; set; } = string.Empty;
public Guid? TrialReadingCriterionId { get; set; }
}
}
@@ -3,30 +3,29 @@
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2021-12-23 15:37:48
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("项目配置 - 访视计划调整不一致数量记录表")]
[Table("VisitPlanInfluenceStat")]
public class VisitPlanInfluenceStat : BaseAddAuditEntity
{
///<summary>
///VisitPlanInfluenceStudystat
///</summary>
[Table("VisitPlanInfluenceStat")]
public class VisitPlanInfluenceStat : BaseAddAuditEntity
{
#region
#region
[JsonIgnore]
public List<VisitPlanInfluenceStudy> InfluenceStudyList { get; set; } = new List<VisitPlanInfluenceStudy>();
[JsonIgnore]
public List<VisitPlanInfluenceStudy> InfluenceStudyList { get; set; } = new List<VisitPlanInfluenceStudy>();
#endregion
#endregion
public Guid TrialId { get; set; }
public Guid TrialId { get; set; }
public int InconsistentCount { get; set; }
public int InconsistentCount { get; set; }
}
}
}
@@ -3,45 +3,42 @@
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2021-12-20 16:42:26
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("项目配置 - 访视计划调整影像检查")]
[Table("VisitPlanInfluenceStudy")]
public class VisitPlanInfluenceStudy : BaseAddAuditEntity
{
///<summary>
///VisitPlanInfluenceSubjectVisit
///</summary>
[Table("VisitPlanInfluenceStudy")]
public class VisitPlanInfluenceStudy : BaseAddAuditEntity
{
#region
[JsonIgnore]
[ForeignKey("VisitPlanInfluenceStatId")]
public VisitPlanInfluenceStat VisitPlanInfluenceStat { get; set; }
[JsonIgnore]
public SubjectVisit SubjectVisit { get; set; }
#endregion
#region
[JsonIgnore]
[ForeignKey("VisitPlanInfluenceStatId")]
public VisitPlanInfluenceStat VisitPlanInfluenceStat { get; set; }
[JsonIgnore]
public SubjectVisit SubjectVisit { get; set; }
#endregion
public Guid SubjectVisitId { get; set; }
public Guid SubjectVisitId { get; set; }
public Guid StudyId { get; set; }
public Guid StudyId { get; set; }
public Guid TrialId { get; set; }
public Guid TrialId { get; set; }
public bool IsDicomStudy { get; set; }
public bool IsDicomStudy { get; set; }
public string Modality { get; set; } = string.Empty;
public string Modality { get; set; } = string.Empty;
public bool IsOverWindowNowNotOverWindow { get; set; }
public bool IsOverWindowNowNotOverWindow { get; set; }
public DateTime? StudyTime { get; set; }
public DateTime? StudyTime { get; set; }
public string HistoryWindow { get; set; } = string.Empty;
public string HistoryWindow { get; set; } = string.Empty;
public string NowWindow { get; set; } = string.Empty;
public string NowWindow { get; set; } = string.Empty;
public Guid VisitPlanInfluenceStatId { get; set; }
}
public Guid VisitPlanInfluenceStatId { get; set; }
}
+25 -23
View File
@@ -1,38 +1,40 @@
using System;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("项目配置 - 访视记录")]
[Table("VisitStage")]
public class VisitStage : BaseFullDeleteAuditEntity
{
[Table("VisitStage")]
public class VisitStage : BaseFullDeleteAuditEntity
{
#region
[JsonIgnore]
public Trial Trial { get; set; }
#endregion
#region
[JsonIgnore]
public Trial Trial { get; set; }
#endregion
public Guid TrialId { get; set; }
public Guid TrialId { get; set; }
public string BlindName { get; set; } = string.Empty;
public string BlindName { get; set; } = string.Empty;
[Column(TypeName = "decimal(18,1)")]
public decimal VisitNum { get; set; }
public string VisitName { get; set; } = string.Empty;
public int VisitDay { get; set; }
public string Description { get; set; } = string.Empty;
[DecimalPrecision(18, 1)]
public decimal VisitNum { get; set; }
public string VisitName { get; set; } = string.Empty;
public int VisitDay { get; set; }
public string Description { get; set; } = string.Empty;
public bool IsConfirmed { get; set; }=false;
public bool IsConfirmed { get; set; } = false;
public bool NeedGlobal { get; set; } = false;
public bool NeedGlobal { get; set; } = false;
public bool IsBaseLine { get; set; } = false;
public bool IsBaseLine { get; set; } = false;
public int VisitWindowLeft { get; set; }
public int VisitWindowRight { get; set; }
public int VisitWindowLeft { get; set; }
public int VisitWindowRight { get; set; }
public bool IsHaveFirstConfirmed { get; set; }
public bool IsHaveFirstConfirmed { get; set; }
}
}